Revert "Try to select dropdown item by xpath selector"

This reverts commit 8eb42a64e2.
This commit is contained in:
Laurent Nguyen 2024-07-08 13:12:26 +02:00
parent 8eb42a64e2
commit 5316ae1002
1 changed files with 1 additions and 2 deletions

View File

@ -9,8 +9,7 @@ test("Self Serve", async ({ page }) => {
const regionDropdown = explorer.frame.getByText("Select a region");
await regionDropdown.click();
await page.waitForSelector("xpath=//button[@role='option'");
const firstOption = explorer.frame.locator("xpath=//button[@role='option'").first();
const firstOption = explorer.frame.getByRole("option").first();
await firstOption.waitFor();
await firstOption.click();