Issue with Submitting Category and Subcategory Values via Automation in Retool

Hello @Nutan_Vyavahare,

There is a known bug where .click() event does not work for Retool apps in Playwright. There is a workaround, where another user was able to replicate the click event on a button by switching from

await button.click();

to:
await button.focus(); await page.keyboard.press("Enter");

So you might need to await your .locator() call and potentially save that to a variable to them focus and then call await page.keyboard.press("Enter").

Hopefully that works, if not, here are some steps to test out in your Playwright script to see if you are able to get the values into the API payload.

// Ensure the page and selector are correctly loaded
const status = await page.locator('select#status-selector');
// Change the selector to match yours

// Select the option by its value or label
await status.selectOption({ label: 'AwaitingAnalyst' });
// or use { value: 'option_value' }

Make sure to adjust the selector (select#status-selector) to correctly target your select element. You can select by value, label, etc.