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", () => {
21
21
} ) ;
22
22
23
23
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" ) ;
25
25
const homeImage = await driver . compareScreen ( "home" ) ;
26
26
assert . isTrue ( homeImage ) ;
27
27
await btnGoToSupportPage . click ( ) ;
28
- const titleSupportPage = await driver . findElementByText ( "Support Page" , SearchOptions . exact ) ;
28
+ const titleSupportPage = await driver . findElementByAutomationText ( "Support Page" ) ;
29
29
console . log ( await titleSupportPage . text ( ) ) ;
30
30
} ) ;
31
31
32
32
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" ) ;
34
34
const supportImage = await driver . compareScreen ( "support" ) ;
35
35
assert . isTrue ( supportImage ) ;
36
36
await btnGoBackToHomePage . click ( ) ;
37
- const titleHomePage = await driver . findElementByText ( "Home Page" , SearchOptions . exact ) ;
37
+ const titleHomePage = await driver . findElementByAutomationText ( "Home Page" ) ;
38
38
console . log ( await titleHomePage . text ( ) ) ;
39
39
} ) ;
40
40
} ) ;
You can’t perform that action at this time.
0 commit comments