@@ -190,6 +190,7 @@ describe('Appium', function () {
190190 await app . see ( 'Prefered Car' )
191191 assert . ok ( app . isWeb )
192192 await app . switchToNative ( )
193+ await app . browser . pause ( 1000 )
193194 val = await app . grabContext ( )
194195 assert . equal ( val , 'NATIVE_APP' )
195196 return assert . ok ( ! app . isWeb )
@@ -293,7 +294,7 @@ describe('Appium', function () {
293294 await app . resetApp ( )
294295 await app . tap ( "//android.widget.Button[@resource-id = 'io.selendroid.testapp:id/touchTest']" )
295296 await app . waitForText ( 'Gesture Type' , 10 , "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/gesture_type_text_view']" )
296- await app . swipeDown ( "//android.widget.LinearLayout[@resource-id = 'io.selendroid.testapp:id/LinearLayout1']" , 120 , 100 )
297+ await app . swipeDown ( "//android.widget.LinearLayout[@resource-id = 'io.selendroid.testapp:id/LinearLayout1']" , 500 , 500 )
297298 const type = await app . grabTextFrom ( "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/gesture_type_text_view']" )
298299 assert . equal ( type , 'FLICK' )
299300 } )
@@ -366,6 +367,7 @@ describe('Appium', function () {
366367 await app . tap ( "//android.widget.Button[@resource-id = 'io.selendroid.testapp:id/touchTest']" )
367368 await app . waitForText ( 'Gesture Type' , 10 , "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/gesture_type_text_view']" )
368369 await app . swipeUp ( "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/gesture_type_text_view']" )
370+ await app . waitForElement ( "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/text_view4']" , 5 )
369371 const type = await app . grabTextFrom ( "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/gesture_type_text_view']" )
370372 const vy = await app . grabTextFrom ( "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/text_view4']" )
371373 assert . equal ( type , 'FLICK' )
@@ -377,6 +379,7 @@ describe('Appium', function () {
377379 await app . tap ( "//android.widget.Button[@resource-id = 'io.selendroid.testapp:id/touchTest']" )
378380 await app . waitForText ( 'Gesture Type' , 10 , "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/gesture_type_text_view']" )
379381 await app . swipeUp ( "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/gesture_type_text_view']" )
382+ await app . waitForElement ( "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/text_view4']" , 5 )
380383 const type = await app . grabTextFrom ( "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/gesture_type_text_view']" )
381384 const vy = await app . grabTextFrom ( "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/text_view4']" )
382385 assert . equal ( type , 'FLICK' )
@@ -387,6 +390,7 @@ describe('Appium', function () {
387390 await app . tap ( "//android.widget.Button[@resource-id = 'io.selendroid.testapp:id/touchTest']" )
388391 await app . waitForText ( 'Gesture Type' , 10 , "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/gesture_type_text_view']" )
389392 await app . swipeLeft ( "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/gesture_type_text_view']" )
393+ await app . waitForElement ( "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/text_view4']" , 5 )
390394 const type = await app . grabTextFrom ( "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/gesture_type_text_view']" )
391395 const vy = await app . grabTextFrom ( "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/text_view4']" )
392396 assert . equal ( type , 'FLICK' )
@@ -397,6 +401,7 @@ describe('Appium', function () {
397401 await app . tap ( "//android.widget.Button[@resource-id = 'io.selendroid.testapp:id/touchTest']" )
398402 await app . waitForText ( 'Gesture Type' , 10 , "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/gesture_type_text_view']" )
399403 await app . swipeRight ( "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/gesture_type_text_view']" )
404+ await app . waitForElement ( "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/text_view4']" , 5 )
400405 const type = await app . grabTextFrom ( "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/gesture_type_text_view']" )
401406 const vy = await app . grabTextFrom ( "//android.widget.TextView[@resource-id = 'io.selendroid.testapp:id/text_view4']" )
402407 assert . equal ( type , 'FLICK' )
@@ -558,7 +563,7 @@ describe('Appium', function () {
558563 await app . tap ( '~email of the customer' )
559564 await app . appendField ( '//android.widget.EditText[@content-desc="email of the customer"]' , '1' )
560565 await app . hideDeviceKeyboard ( 'pressKey' , 'Done' )
561- await app . swipeTo ( '//android.widget.Button' , '//android.widget.ScrollView/android.widget.LinearLayout' , 'up' , 30 , 100 , 700 )
566+ await app . swipeTo ( '//android.widget.Button' , '//android.widget.ScrollView/android.widget.LinearLayout' , 'up' , 60 , 100 , 700 )
562567 await app . tap ( '//android.widget.Button' )
563568 await app . see ( '1' , '//android.widget.TextView[@resource-id="io.selendroid.testapp:id/label_email_data"]' )
564569 const id = await app . grabNumberOfVisibleElements ( '//android.widget.TextView[@resource-id="io.selendroid.testapp:id/label_email_data"]' , 'contentDescription' )
0 commit comments