File tree Expand file tree Collapse file tree
sample-code/examples/node Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ describe("android complex", function () {
6060 if ( ! process . env . SAUCE ) {
6161 return el . text ( ) . should . become ( 'Animation' ) ;
6262 }
63- } ) . elementByName ( ' App') . click ( )
63+ } ) . elementByXPath ( '//android.widget.TextView[@text=\' App\'] ') . click ( )
6464 . sleep ( 3000 )
6565 . elementsByAndroidUIAutomator ( 'new UiSelector().clickable(true)' )
6666 . should . eventually . have . length . above ( 10 )
@@ -106,14 +106,14 @@ describe("android complex", function () {
106106 duration : 800
107107 } ) ;
108108 } ) ;
109- } ) . elementByName ( ' Touch Paint')
109+ } ) . elementByXPath ( '//android.widget.TextView[@text=\' Touch Paint\'] ')
110110 . catch ( function ( ) {
111111 return findTouchPaint ( ) ;
112112 } ) ;
113113 }
114114
115115 return driver
116- . elementByName ( ' Graphics') . click ( )
116+ . elementByXPath ( '//android.widget.TextView[@text=\' Graphics\'] ') . click ( )
117117 . then ( findTouchPaint )
118118 . click ( )
119119 . sleep ( 5000 )
You can’t perform that action at this time.
0 commit comments