Skip to content

Commit 08259bd

Browse files
author
Dimitar Todorov
committed
Update element locator for continue button on android
1 parent b59cae0 commit 08259bd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

demo-vue/e2e/test.e2e.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,13 @@ describe("Facebook tests", async function () {
9696
await logInButton.click();
9797
await driver.wait(2000);
9898
}
99-
const continueButton = await driver.findElementByText("Continue", SearchOptions.exact);
99+
let continueButton;
100+
if(driver.isAndroid){
101+
continueButton = await driver.findElementByAccessibilityId("Continue")
102+
}
103+
else{
104+
continueButton = await driver.findElementByText("Continue", SearchOptions.exact);
105+
}
100106
await continueButton.click();
101107
await driver.wait(1000);
102108
const userNameLabel = await driver.findElementByText("Nativescript User", SearchOptions.contains);

0 commit comments

Comments
 (0)