Skip to content

Commit

Permalink
Replace xpath selector so WD.io can run in BiDi mode
Browse files Browse the repository at this point in the history
  • Loading branch information
NoelLH committed Aug 25, 2024
1 parent 39bd20f commit f74cb8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/src/app.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ export class AppPage {
possibleRadio.click();

// ion-select OK button, inside the alert group overlay, now has its copy in an inner span.
await $('span*=OK').parentElement().click();
// But Webdriver.io v9+ is smart enough that we can just click whatever has 'OK' text.
await $('=OK').click();

await browser.pause(200); // Wait for overlay's close animation so it doesn't steal focus
resolve(true);
Expand Down

0 comments on commit f74cb8e

Please sign in to comment.