File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
resources/images/nsroanimations/iPhone XR Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,20 +21,20 @@ describe("sample scenario", () => {
2121 } ) ;
2222
2323 it ( "should go to support page" , async ( ) => {
24- const btnGoToSupportPage = await driver . findElementByText ( "go to support page" , SearchOptions . exact ) ;
24+ const btnGoToSupportPage = await driver . findElementByAutomationText ( "go to support page" ) ;
2525 const homeImage = await driver . compareScreen ( "home" ) ;
2626 assert . isTrue ( homeImage ) ;
2727 await btnGoToSupportPage . click ( ) ;
28- const titleSupportPage = await driver . findElementByText ( "Support Page" , SearchOptions . exact ) ;
28+ const titleSupportPage = await driver . findElementByAutomationText ( "Support Page" ) ;
2929 console . log ( await titleSupportPage . text ( ) ) ;
3030 } ) ;
3131
3232 it ( "should go back to home page" , async ( ) => {
33- const btnGoBackToHomePage = await driver . findElementByText ( "go back to home page" , SearchOptions . exact ) ;
33+ const btnGoBackToHomePage = await driver . findElementByAutomationText ( "go back to home page" ) ;
3434 const supportImage = await driver . compareScreen ( "support" ) ;
3535 assert . isTrue ( supportImage ) ;
3636 await btnGoBackToHomePage . click ( ) ;
37- const titleHomePage = await driver . findElementByText ( "Home Page" , SearchOptions . exact ) ;
37+ const titleHomePage = await driver . findElementByAutomationText ( "Home Page" ) ;
3838 console . log ( await titleHomePage . text ( ) ) ;
3939 } ) ;
4040} ) ;
You can’t perform that action at this time.
0 commit comments