I’m trying to target a select dropdown and am getting an error when running the script:
page.locator(‘select[name=“ctl00$attendeeContent$amstate”]’).selectOption({value: ‘CA’});
The example code sets fields just fine but I don’t see an example for select dropdowns.
The selectOption is how it’s done in Playwright but I’m assuming that some Playwright things might not be supported fully in k6 browser.
I also seem to run into an issue with radio boxes using the .click() method like so:
page.locator(‘input[name=“ctl00$surveyContent$q2$0”]’).click();