File tree Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ desiredCaps = {
1111 'device' : 'Google Pixel' ,
1212 'app' : 'bs://<hashed app-id>' ,
1313 'browserstack.debug' : true ,
14- 'browserstack.local' : true ,
15- 'realMobile' : true
14+ 'browserstack.local' : true
1615} ;
1716
1817driver = wd . promiseRemote ( "http://hub-cloud.browserstack.com/wd/hub" ) ;
Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ desiredCaps = {
99 'name' : 'single_test' ,
1010 'device' : 'Google Pixel' ,
1111 'app' : 'bs://<hashed app-id>' ,
12- 'browserstack.debug' : true ,
13- 'realMobile' : true
12+ 'browserstack.debug' : true
1413} ;
1514driver = wd . promiseRemote ( "http://hub-cloud.browserstack.com/wd/hub" ) ;
1615
Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ desiredCaps = {
1717 'device' : 'iPhone 7 Plus' ,
1818 'app' : 'bs://<hashed app-id>' ,
1919 'browserstack.debug' : true ,
20- 'browserstack.local' : true ,
21- 'realMobile' : true
20+ 'browserstack.local' : true
2221} ;
2322
2423var customTextNonEmpty = new Asserter (
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ desiredCaps = {
1111 'name' : 'single_test' ,
1212 'device' : 'iPhone 7 Plus' ,
1313 'app' : 'bs://<hashed app-id>' ,
14- 'browserstack.debug' : true ,
15- 'realMobile' : true
14+ 'browserstack.debug' : true
1615} ;
1716driver = wd . promiseRemote ( "http://hub-cloud.browserstack.com/wd/hub" ) ;
1817
@@ -44,12 +43,16 @@ driver
4443 . then ( function ( textElements ) {
4544 return Q ( ) . then ( function ( ) {
4645 return textElements . map ( function ( textElement ) {
47- return textElement . text ( ) . then ( function ( value ) {
48- if ( value . indexOf ( 'not registered' ) !== - 1 ) {
49- console . log ( value ) ;
50- assert ( value . indexOf ( 'This email address is not registered on WordPress.com' ) !== - 1 ) ;
51- }
52- } ) ;
46+ if ( textElement === null ) {
47+ return ;
48+ } else {
49+ return textElement . text ( ) . then ( function ( value ) {
50+ if ( value . indexOf ( 'not registered' ) !== - 1 ) {
51+ console . log ( value ) ;
52+ assert ( value . indexOf ( 'This email address is not registered on WordPress.com' ) !== - 1 ) ;
53+ }
54+ } ) ;
55+ }
5356 } )
5457 } ) . all ( )
5558 } )
You can’t perform that action at this time.
0 commit comments