From 5316ae1002d9cc6ce102ee957723c99108b49f3b Mon Sep 17 00:00:00 2001 From: Laurent Nguyen Date: Mon, 8 Jul 2024 13:12:26 +0200 Subject: [PATCH] Revert "Try to select dropdown item by xpath selector" This reverts commit 8eb42a64e23cee589a7c0a809c039ecc7867b7ba. --- test/sql/selfServeExample.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/sql/selfServeExample.spec.ts b/test/sql/selfServeExample.spec.ts index 9768d830a..24f89200c 100644 --- a/test/sql/selfServeExample.spec.ts +++ b/test/sql/selfServeExample.spec.ts @@ -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();