File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ describe("Facebook tests", async function () {
4646 if ( isAndroid ) {
4747 await driver . wait ( 1000 ) ;
4848 const allFields = await driver . findElementsByClassName ( "android.widget.EditText" ) ;
49- // driver.locators.getElementByName("android.widget.EditText")
5049 const wd = driver . wd ( ) ;
5150 const action = new wd . TouchAction ( driver . driver ) ;
5251 action
@@ -75,14 +74,13 @@ describe("Facebook tests", async function () {
7574 if ( isAndroid ) {
7675 const logInButton = await driver . findElementByClassName ( driver . locators . button ) ;
7776 await logInButton . click ( ) ;
78- const continueButton = await driver . findElementByAccessibilityId ( "Continue" ) ;
79- await continueButton . click ( ) ;
77+ await driver . wait ( 500 ) ;
8078 } else {
8179 const logInButton = await driver . findElementByText ( "Log In" ) ;
8280 await logInButton . click ( ) ;
83- const continueButton = await driver . findElementByText ( "Continue" ) ;
84- await continueButton . click ( ) ;
8581 }
82+ const continueButton = await driver . findElementByText ( "Continue" , SearchOptions . exact ) ;
83+ await continueButton . click ( ) ;
8684 await driver . wait ( 1000 ) ;
8785 const userNameLabel = await driver . findElementByText ( "Nativescript User" , SearchOptions . contains ) ;
8886 expect ( userNameLabel ) . to . exist ;
You can’t perform that action at this time.
0 commit comments