patrol icon indicating copy to clipboard operation
patrol copied to clipboard

Native tap on ios does not tap appropriate button

Open Brez18 opened this issue 11 months ago โ€ข 5 comments

Steps to reproduce

N/A

Actual results

So i am facing this weird issue where i am trying to press a Next button which is inside a web view on IOS.

Command used: patrol test -t integration_test/features/auth/google_authentication_test.dart --flavor dev --verbose

Observations

  1. When i run the command and the app was previously not installed on the device and also did not visit the google sign in web view previously. The platformAutomator.ios fails to tap at the appropriate area. It for some reason taps on the keyboard
  2. When i run the app after this first attempt everthing works perfectly.
  3. The logs state that it successfully tapped the appropriate region (i.e the Next btn) when the error occurs .

Before Installation of app

If u notice carefully the tap happens on the keyboard instead of the next button

https://github.com/user-attachments/assets/ee67cc5b-2eb3-4b85-91a7-000ee22b7976

After Installation of app

https://github.com/user-attachments/assets/c9feda7d-650d-47b1-a960-a2d67b6eac64

As a side note i have seen this issue where the automator fails to tap at the proper location. Like it fails to update the new postions of the widgets.

Logs

Logs before installation of the app

๐Ÿงช Login to the app using Google sign in and logout
        โœ…   1. tap widgets with key [<'getStartedScreenContinueWithGoogleButton'>].
        โณ   2. tap (native)
        2026-01-05 13:27:56.641580+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: tapping on view with text 'Continue' in app com.apple.springboard...
        2026-01-05 13:27:56.643026+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: waiting for existence of view with text 'Continue' in app com.apple.springboard
            t =    16.77s Get all elements bound by index for: Elements matching predicate 'label == "Continue" OR title == "Continue" OR value == "Continue" OR placeholderValue == "Continue"'
            t =    16.81s Checking existence of `Any (Element at index 0)`
            t =    16.84s Find the Any (Element at index 0)
            t =    16.88s Tap "Continue" Button
            t =    16.88s     Wait for com.apple.springboard to idle
            t =    16.88s     Find the "Continue" Button
            t =    16.91s     Check for interrupting elements affecting "Continue" Button
            t =    16.93s     Synthesize event
            t =    17.35s     Wait for com.apple.springboard to idle
        2026-01-05 13:27:57.442426+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: done tapping on view with text 'Continue' in app com.apple.springboard
        โœ…   2. tap (native)
        2026-01-05 13:27:59.485727+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: getting native views with text '[email protected]'...
            t =    19.62s Get all elements bound by index for: Elements matching predicate 'label == "[email protected]" OR title == "[email protected]" OR value == "[email protected]" OR placeholderValue == "[email protected]"'
        2026-01-05 13:27:59.798445+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: done getting native views with text '[email protected]'
        2026-01-05 13:27:59.802964+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: result: []
        ๐Ÿ“   This device doesn't have access to email [email protected]. Attempting to initialize the email using GoogleAuthEmailInitializerRobot 
        2026-01-05 13:28:01.477873+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: getting native views with text 'Email or phone'...
            t =    21.61s Get all elements bound by index for: Elements matching predicate 'label == "Email or phone" OR title == "Email or phone" OR value == "Email or phone" OR placeholderValue == "Email or phone"'
            t =    21.69s Get all elements bound by index for: Children matching type Any
            t =    21.75s Find the Any (Element at index 0)
            t =    21.80s Find the "Email or phone" TextField
            t =    21.86s Find the "Email or phone" TextField
            t =    21.91s Find the "Email or phone" TextField
            t =    21.97s Find the "Email or phone" TextField
            t =    22.02s Find the "Email or phone" TextField
            t =    22.08s Find the "Email or phone" TextField
            t =    22.13s Find the "Email or phone" TextField
            t =    22.19s Find the "Email or phone" TextField
            t =    22.25s Find the "Email or phone" TextField
            t =    22.31s Find the "Email or phone" TextField
            t =    22.37s Find the "Email or phone" TextField
            t =    22.42s Find the "Email or phone" TextField
        2026-01-05 13:28:02.361368+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: done getting native views with text 'Email or phone'
        2026-01-05 13:28:02.376373+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: result: [patrol.IOSNativeView(children: [], elementType: patrol.IOSElementType.textField, identifier: "", label: "Email or phone", title: "", hasFocus: true, isEnabled: true, isSelected: false, frame: patrol.Rectangle(minX: 26.0, minY: 280.0, maxX: 376.0, maxY: 333.0), accessibilityLabel: nil, placeholderValue: Optional(""), value: Optional(""), bundleId: Optional("mobile.trade.sky.dev"))]
        โณ   3. tap (native)
        2026-01-05 13:28:02.387515+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: tapping on view with text 'Email or phone' in app mobile.trade.sky.dev...
        2026-01-05 13:28:02.388058+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: waiting for existence of view with text 'Email or phone' in app mobile.trade.sky.dev
            t =    22.52s Get all elements bound by index for: Elements matching predicate 'label == "Email or phone" OR title == "Email or phone" OR value == "Email or phone" OR placeholderValue == "Email or phone"'
            t =    22.57s Checking existence of `Any (Element at index 0)`
            t =    22.63s Find the Any (Element at index 0)
            t =    22.69s Tap "Email or phone" TextField
            t =    22.69s     Wait for mobile.trade.sky.dev to idle
            t =    22.69s     Find the "Email or phone" TextField
            t =    22.75s     Check for interrupting elements affecting "Email or phone" TextField
            t =    22.81s     Synthesize event
            t =    23.10s     Wait for mobile.trade.sky.dev to idle
        2026-01-05 13:28:02.972713+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: done tapping on view with text 'Email or phone' in app mobile.trade.sky.dev
        โœ…   3. tap (native)
        โณ   4. enterText (native)
        2026-01-05 13:28:02.981982+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: entering text "[email protected]" into text field with text 'Email or phone' in app mobile.trade.sky.dev...
            t =    23.11s Get all elements bound by index for: Elements matching predicate '(label == "Email or phone" OR title == "Email or phone" OR value == "Email or phone" OR placeholderValue == "Email or phone") AND (elementType == 49 OR elementType == 50)'
            t =    23.17s Checking existence of `Any (Element at index 0)`
            t =    23.24s Find the Any (Element at index 0)
            t =    23.30s Tap "Email or phone" TextField[0.90, 0.90]
            t =    23.30s     Wait for mobile.trade.sky.dev to idle
            t =    23.30s     Find the "Email or phone" TextField
            t =    23.78s     Check for interrupting elements affecting "Email or phone" TextField
            t =    23.83s     Synthesize event
            t =    23.83s         Find the "Email or phone" TextField
            t =    23.90s         Find the "Email or phone" TextField
            t =    23.97s         Find the "Email or phone" TextField
            t =    24.32s     Wait for mobile.trade.sky.dev to idle
            t =    24.32s Type 'testautomatedsign@...' into "Email or phone" TextField
            t =    24.32s     Wait for mobile.trade.sky.dev to idle
            t =    24.33s     Find the "Email or phone" TextField
            t =    24.39s     Check for interrupting elements affecting "Email or phone" TextField
            t =    24.44s     Synthesize event
            t =    25.09s     Wait for mobile.trade.sky.dev to idle
        2026-01-05 13:28:04.957843+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: done entering text "[email protected]" into text field with text 'Email or phone' in app mobile.trade.sky.dev
        โœ…   4. enterText (native)
        โณ   5. swipe (native)
        2026-01-05 13:28:07.983744+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: swiping from (0.0, 0.3) to (0.0, 0.27) in app mobile.trade.sky.dev...
            t =    28.11s Press Target Application 'mobile.trade.sky.dev'[0.00, 0.30] for 0.1 seconds, then drag to Target Application 'mobile.trade.sky.dev'[0.00, 0.27] with velocity of 500.00 pixels per second, and then hold for 0.0 seconds 
            t =    28.11s     Wait for mobile.trade.sky.dev to idle
            t =    28.12s     Find the Target Application 'mobile.trade.sky.dev'
            t =    28.15s     Check for interrupting elements affecting "SkyTrade (DEV)" Application
            t =    28.19s     Synthesize event
            t =    28.20s         Find the Target Application 'mobile.trade.sky.dev'
            t =    28.23s         Find the Target Application 'mobile.trade.sky.dev'
            t =    28.26s         Find the Target Application 'mobile.trade.sky.dev'
            t =    28.29s         Find the Target Application 'mobile.trade.sky.dev'
            t =    28.33s         Find the Target Application 'mobile.trade.sky.dev'
            t =    28.76s     Wait for mobile.trade.sky.dev to idle
        2026-01-05 13:28:08.629910+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: done swiping from (0.0, 0.3) to (0.0, 0.27) in app mobile.trade.sky.dev
        โœ…   5. swipe (native)
        โณ   6. tap (native)
        2026-01-05 13:28:13.637264+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: tapping on view with text 'Next' in app mobile.trade.sky.dev...
        2026-01-05 13:28:13.638296+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: waiting for existence of view with text 'Next' in app mobile.trade.sky.dev
            t =    33.77s Get all elements bound by index for: Elements matching predicate 'label == "Next" OR title == "Next" OR value == "Next" OR placeholderValue == "Next"'
            t =    33.84s Checking existence of `Any (Element at index 0)`
            t =    33.89s Find the Any (Element at index 0)
            t =    33.95s Tap "Next" Button
            t =    33.95s     Wait for mobile.trade.sky.dev to idle
            t =    33.95s     Find the "Next" Button
            t =    34.01s     Check for interrupting elements affecting "Next" Button
            t =    34.06s     Synthesize event
            t =    34.35s     Wait for mobile.trade.sky.dev to idle
        2026-01-05 13:28:14.218540+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: done tapping on view with text 'Next' in app mobile.trade.sky.dev
        โœ…   6. tap (native)
        โณ   7. tap (native)
        2026-01-05 13:28:18.224890+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: tapping on view with text 'Enter your password' in app mobile.trade.sky.dev...
        2026-01-05 13:28:18.226441+0530 RunnerUITests-Runner[77034:2420826] PatrolServer: INFO: waiting for existence of view with text 'Enter your password' in app mobile.trade.sky.dev
            t =    38.36s Get all elements bound by index for: Elements matching predicate 'label == "Enter your password" OR title == "Enter your password" OR value == "Enter your password" OR placeholderValue == "Enter your password"'
            t =    39.44s Get all elements bound by index for: Elements matching predicate 'label == "Enter your password" OR title == "Enter your password" OR value == "Enter your password" OR placeholderValue == "Enter your password"'
            t =    40.50s Get all elements bound by index for: Elements matching predicate 'label == "Enter your password" OR title == "Enter your password" OR value == "Enter your password" OR placeholderValue == "Enter your password"'
            t =    41.57s Get all elements bound by index for: Elements matching predicate 'label == "Enter your password" OR title == "Enter your password" OR value == "Enter your password" OR placeholderValue == "Enter your password"'
            t =    42.65s Get all elements bound by index for: Elements matching predicate 'label == "Enter your password" OR title == "Enter your password" OR value == "Enter your password" OR placeholderValue == "Enter your password"'
            t =    43.73s Get all elements bound by index for: Elements matching predicate 'label == "Enter your password" OR title == "Enter your password" OR value == "Enter your password" OR placeholderValue == "Enter your password"'
            t =    44.80s Get all elements bound by index for: Elements matching predicate 'label == "Enter your password" OR title == "Enter your password" OR value == "Enter your password" OR placeholderValue == "Enter your password"'
            t =    45.88s Get all elements bound by index for: Elements matching predicate 'label == "Enter your password" OR title == "Enter your password" OR value == "Enter your password" OR placeholderValue == "Enter your password"'
            t =    46.96s Get all elements bound by index for: Elements matching predicate 'label == "Enter your password" OR title == "Enter your password" OR value == "Enter your password" OR placeholderValue == "Enter your password"'
            t =    48.03s Get all elements bound by index for: Elements matching predicate 'label == "Enter your password" OR title == "Enter your password" OR value == "Enter your password" OR placeholderValue == "Enter your password"'
        โŒ   7. tap (native)
โŒ Login to the app using Google sign in and logout (/features/auth/google_authentication_test.dart) (44s)
โ•โ•โ•ก EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
The following PatrolActionException was thrown running a test:
Patrol action failed: IosAutomatorClientException: tap() failed
with Invalid response: 400 view with text 'Enter your password'
in app mobile.trade.sky.dev doesn't exist

When the exception was thrown, this was the stack:
#0      IOSAutomator.wrapRequest (package:patrol/src/platform/ios/ios_automator_native.dart:122:7)
<asynchronous suspension>
#1      IOSAutomator.tap (package:patrol/src/platform/ios/ios_automator_native.dart:205:5)
<asynchronous suspension>
#2      GoogleAuthEmailInitializerRobot._nativeTap (file:///Users/brez/AndroidStudioProjects/mobile_utm/integration_test/features/auth/robots/google_auth_email_initializer_robot.dart:51:18)
<asynchronous suspension>
#3      GoogleAuthEmailInitializerRobot._nativeTextInput (file:///Users/brez/AndroidStudioProjects/mobile_utm/integration_test/features/auth/robots/google_auth_email_initializer_robot.dart:63:5)
<asynchronous suspension>
#4      GoogleAuthEmailInitializerIOSRobot._enterPasswordInEditTextField (file:///Users/brez/AndroidStudioProjects/mobile_utm/integration_test/features/auth/robots/google_auth_email_initializer_robot.dart:229:5)
<asynchronous suspension>
#5      GoogleAuthEmailInitializerIOSRobot.initializeEmail (file:///Users/brez/AndroidStudioProjects/mobile_utm/integration_test/features/auth/robots/google_auth_email_initializer_robot.dart:173:5)
<asynchronous suspension>
#6      main.<anonymous closure> (file:///Users/brez/AndroidStudioProjects/mobile_utm/integration_test/features/auth/google_authentication_test.dart:62:11)
<asynchronous suspension>
#7      patrolTest.<anonymous closure> (package:patrol/src/common.dart:165:7)
<asynchronous suspension>
#8      testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:192:15)
<asynchronous suspension>
#9      PatrolBinding._wrapTestBodyWithExceptionGatherer (package:patrol/src/binding.dart:250:5)
<asynchronous suspension>
#10     TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1059:5)
<asynchronous suspension>
#11     TestWidgetsFlutterBinding._createTestCompletionHandler.<anonymous closure> (package:flutter_test/src/binding.dart:814:12)
<asynchronous suspension>

The test description was:
  Login to the app using Google sign in and logout
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Logs after installation of the app

๐Ÿงช Login to the app using Google sign in and logout
        โœ…   1. tap widgets with key [<'getStartedScreenContinueWithGoogleButton'>].
        โณ   2. tap (native)
        2026-01-05 13:41:08.457289+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: tapping on view with text 'Continue' in app com.apple.springboard...
        2026-01-05 13:41:08.458910+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: waiting for existence of view with text 'Continue' in app com.apple.springboard
            t =    16.49s Get all elements bound by index for: Elements matching predicate 'label == "Continue" OR title == "Continue" OR value == "Continue" OR placeholderValue == "Continue"'
            t =    16.52s Checking existence of `Any (Element at index 0)`
            t =    16.55s Find the Any (Element at index 0)
            t =    16.58s Tap "Continue" Button
            t =    16.59s     Wait for com.apple.springboard to idle
            t =    16.59s     Find the "Continue" Button
            t =    16.61s     Check for interrupting elements affecting "Continue" Button
            t =    16.74s     Synthesize event
            t =    17.04s     Wait for com.apple.springboard to idle
        2026-01-05 13:41:09.236575+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: done tapping on view with text 'Continue' in app com.apple.springboard
        โœ…   2. tap (native)
        2026-01-05 13:41:11.261538+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: getting native views with text '[email protected]'...
            t =    19.29s Get all elements bound by index for: Elements matching predicate 'label == "[email protected]" OR title == "[email protected]" OR value == "[email protected]" OR placeholderValue == "[email protected]"'
        2026-01-05 13:41:11.376648+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: done getting native views with text '[email protected]'
        2026-01-05 13:41:11.383160+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: result: []
        ๐Ÿ“   This device doesn't have access to email [email protected]. Attempting to initialize the email using GoogleAuthEmailInitializerRobot 
        2026-01-05 13:41:13.264207+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: getting native views with text 'Email or phone'...
            t =    21.30s Get all elements bound by index for: Elements matching predicate 'label == "Email or phone" OR title == "Email or phone" OR value == "Email or phone" OR placeholderValue == "Email or phone"'
            t =    21.36s Get all elements bound by index for: Children matching type Any
            t =    21.40s Find the Any (Element at index 0)
            t =    21.45s Find the "Email or phone" TextField
            t =    21.49s Find the "Email or phone" TextField
            t =    21.54s Find the "Email or phone" TextField
            t =    21.58s Find the "Email or phone" TextField
            t =    21.62s Find the "Email or phone" TextField
            t =    21.67s Find the "Email or phone" TextField
            t =    21.71s Find the "Email or phone" TextField
            t =    21.76s Find the "Email or phone" TextField
            t =    21.81s Find the "Email or phone" TextField
            t =    21.85s Find the "Email or phone" TextField
            t =    21.90s Find the "Email or phone" TextField
            t =    21.94s Find the "Email or phone" TextField
        2026-01-05 13:41:13.952537+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: done getting native views with text 'Email or phone'
        2026-01-05 13:41:13.968661+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: result: [patrol.IOSNativeView(children: [], elementType: patrol.IOSElementType.textField, identifier: "", label: "Email or phone", title: "", hasFocus: true, isEnabled: true, isSelected: false, frame: patrol.Rectangle(minX: 26.0, minY: 280.0, maxX: 376.0, maxY: 333.0), accessibilityLabel: nil, placeholderValue: Optional(""), value: Optional(""), bundleId: Optional("mobile.trade.sky.dev"))]
        โณ   3. tap (native)
        2026-01-05 13:41:13.979497+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: tapping on view with text 'Email or phone' in app mobile.trade.sky.dev...
        2026-01-05 13:41:13.979979+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: waiting for existence of view with text 'Email or phone' in app mobile.trade.sky.dev
            t =    22.01s Get all elements bound by index for: Elements matching predicate 'label == "Email or phone" OR title == "Email or phone" OR value == "Email or phone" OR placeholderValue == "Email or phone"'
            t =    22.05s Checking existence of `Any (Element at index 0)`
            t =    22.09s Find the Any (Element at index 0)
            t =    22.15s Tap "Email or phone" TextField
            t =    22.15s     Wait for mobile.trade.sky.dev to idle
            t =    22.15s     Find the "Email or phone" TextField
            t =    22.19s     Check for interrupting elements affecting "Email or phone" TextField
            t =    22.23s     Synthesize event
            t =    22.52s     Wait for mobile.trade.sky.dev to idle
        2026-01-05 13:41:14.492648+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: done tapping on view with text 'Email or phone' in app mobile.trade.sky.dev
        โœ…   3. tap (native)
        โณ   4. enterText (native)
        2026-01-05 13:41:14.500397+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: entering text "[email protected]" into text field with text 'Email or phone' in app mobile.trade.sky.dev...
            t =    22.53s Get all elements bound by index for: Elements matching predicate '(label == "Email or phone" OR title == "Email or phone" OR value == "Email or phone" OR placeholderValue == "Email or phone") AND (elementType == 49 OR elementType == 50)'
            t =    22.57s Checking existence of `Any (Element at index 0)`
            t =    22.62s Find the Any (Element at index 0)
            t =    22.66s Tap "Email or phone" TextField[0.90, 0.90]
            t =    22.66s     Wait for mobile.trade.sky.dev to idle
            t =    22.66s     Find the "Email or phone" TextField
            t =    22.70s     Check for interrupting elements affecting "Email or phone" TextField
            t =    22.73s     Synthesize event
            t =    22.73s         Find the "Email or phone" TextField
            t =    22.87s         Find the "Email or phone" TextField
            t =    22.92s         Find the "Email or phone" TextField
            t =    23.25s     Wait for mobile.trade.sky.dev to idle
            t =    23.25s Type 'testautomatedsign@...' into "Email or phone" TextField
            t =    23.25s     Wait for mobile.trade.sky.dev to idle
            t =    23.26s     Find the "Email or phone" TextField
            t =    23.31s     Check for interrupting elements affecting "Email or phone" TextField
            t =    23.34s     Synthesize event
            t =    23.99s     Wait for mobile.trade.sky.dev to idle
        2026-01-05 13:41:15.959924+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: done entering text "[email protected]" into text field with text 'Email or phone' in app mobile.trade.sky.dev
        โœ…   4. enterText (native)
        โณ   5. swipe (native)
        2026-01-05 13:41:18.984373+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: swiping from (0.0, 0.3) to (0.0, 0.27) in app mobile.trade.sky.dev...
            t =    27.02s Press Target Application 'mobile.trade.sky.dev'[0.00, 0.30] for 0.1 seconds, then drag to Target Application 'mobile.trade.sky.dev'[0.00, 0.27] with velocity of 500.00 pixels per second, and then hold for 0.0 seconds 
            t =    27.02s     Wait for mobile.trade.sky.dev to idle
            t =    27.02s     Find the Target Application 'mobile.trade.sky.dev'
            t =    27.06s     Check for interrupting elements affecting "SkyTrade (DEV)" Application
            t =    27.09s     Synthesize event
            t =    27.09s         Find the Target Application 'mobile.trade.sky.dev'
            t =    27.11s         Find the Target Application 'mobile.trade.sky.dev'
            t =    27.14s         Find the Target Application 'mobile.trade.sky.dev'
            t =    27.16s         Find the Target Application 'mobile.trade.sky.dev'
            t =    27.19s         Find the Target Application 'mobile.trade.sky.dev'
            t =    27.61s     Wait for mobile.trade.sky.dev to idle
        2026-01-05 13:41:19.583399+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: done swiping from (0.0, 0.3) to (0.0, 0.27) in app mobile.trade.sky.dev
        โœ…   5. swipe (native)
        โณ   6. tap (native)
        2026-01-05 13:41:24.589464+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: tapping on view with text 'Next' in app mobile.trade.sky.dev...
        2026-01-05 13:41:24.590100+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: waiting for existence of view with text 'Next' in app mobile.trade.sky.dev
            t =    32.62s Get all elements bound by index for: Elements matching predicate 'label == "Next" OR title == "Next" OR value == "Next" OR placeholderValue == "Next"'
            t =    32.67s Checking existence of `Any (Element at index 0)`
            t =    32.71s Find the Any (Element at index 0)
            t =    32.76s Tap "Next" Button
            t =    32.76s     Wait for mobile.trade.sky.dev to idle
            t =    32.76s     Find the "Next" Button
            t =    32.81s     Check for interrupting elements affecting "Next" Button
            t =    32.84s     Synthesize event
            t =    33.13s     Wait for mobile.trade.sky.dev to idle
        2026-01-05 13:41:25.101296+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: done tapping on view with text 'Next' in app mobile.trade.sky.dev
        โœ…   6. tap (native)
        โณ   7. tap (native)
        2026-01-05 13:41:29.106159+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: tapping on view with text 'Enter your password' in app mobile.trade.sky.dev...
        2026-01-05 13:41:29.106791+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: waiting for existence of view with text 'Enter your password' in app mobile.trade.sky.dev
            t =    37.14s Get all elements bound by index for: Elements matching predicate 'label == "Enter your password" OR title == "Enter your password" OR value == "Enter your password" OR placeholderValue == "Enter your password"'
            t =    37.19s Checking existence of `Any (Element at index 0)`
            t =    37.24s Find the Any (Element at index 0)
            t =    37.29s Tap "Enter your password" SecureTextField
            t =    37.29s     Wait for mobile.trade.sky.dev to idle
            t =    37.29s     Find the "Enter your password" SecureTextField
            t =    37.34s     Check for interrupting elements affecting "Enter your password" SecureTextField
            t =    37.38s     Synthesize event
            t =    37.66s     Wait for mobile.trade.sky.dev to idle
        2026-01-05 13:41:29.633952+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: done tapping on view with text 'Enter your password' in app mobile.trade.sky.dev
        โœ…   7. tap (native)
        โณ   8. enterText (native)
        2026-01-05 13:41:29.635985+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: entering text "test98@#" into text field with text 'Enter your password' in app mobile.trade.sky.dev...
            t =    37.67s Get all elements bound by index for: Elements matching predicate '(label == "Enter your password" OR title == "Enter your password" OR value == "Enter your password" OR placeholderValue == "Enter your password") AND (elementType == 49 OR elementType == 50)'
            t =    37.72s Checking existence of `Any (Element at index 0)`
            t =    37.76s Find the Any (Element at index 0)
            t =    37.81s Tap "Enter your password" SecureTextField[0.90, 0.90]
            t =    37.81s     Wait for mobile.trade.sky.dev to idle
            t =    37.82s     Find the "Enter your password" SecureTextField
            t =    37.86s     Check for interrupting elements affecting "Enter your password" SecureTextField
            t =    37.90s     Synthesize event
            t =    37.90s         Find the "Enter your password" SecureTextField
            t =    37.95s         Find the "Enter your password" SecureTextField
            t =    37.99s         Find the "Enter your password" SecureTextField
            t =    38.32s     Wait for mobile.trade.sky.dev to idle
            t =    38.33s Type 'test98@#' into "Enter your password" SecureTextField
            t =    38.33s     Wait for mobile.trade.sky.dev to idle
            t =    38.33s     Find the "Enter your password" SecureTextField
            t =    38.38s     Check for interrupting elements affecting "Enter your password" SecureTextField
            t =    38.41s     Synthesize event
            t =    38.75s     Wait for mobile.trade.sky.dev to idle
        2026-01-05 13:41:30.717827+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: done entering text "test98@#" into text field with text 'Enter your password' in app mobile.trade.sky.dev
        โœ…   8. enterText (native)
        โณ   9. swipe (native)
        2026-01-05 13:41:33.728755+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: swiping from (0.0, 0.3) to (0.0, 0.27) in app mobile.trade.sky.dev...
            t =    41.76s Press Target Application 'mobile.trade.sky.dev'[0.00, 0.30] for 0.1 seconds, then drag to Target Application 'mobile.trade.sky.dev'[0.00, 0.27] with velocity of 500.00 pixels per second, and then hold for 0.0 seconds 
            t =    41.76s     Wait for mobile.trade.sky.dev to idle
            t =    41.77s     Find the Target Application 'mobile.trade.sky.dev'
            t =    41.80s     Check for interrupting elements affecting "SkyTrade (DEV)" Application
            t =    41.84s     Synthesize event
            t =    41.84s         Find the Target Application 'mobile.trade.sky.dev'
            t =    41.86s         Find the Target Application 'mobile.trade.sky.dev'
            t =    41.89s         Find the Target Application 'mobile.trade.sky.dev'
            t =    41.91s         Find the Target Application 'mobile.trade.sky.dev'
            t =    41.94s         Find the Target Application 'mobile.trade.sky.dev'
            t =    42.36s     Wait for mobile.trade.sky.dev to idle
        2026-01-05 13:41:34.336526+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: done swiping from (0.0, 0.3) to (0.0, 0.27) in app mobile.trade.sky.dev
        โœ…   9. swipe (native)
        โณ  10. tap (native)
        2026-01-05 13:41:39.342592+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: tapping on view with text 'Next' in app mobile.trade.sky.dev...
        2026-01-05 13:41:39.343603+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: waiting for existence of view with text 'Next' in app mobile.trade.sky.dev
            t =    47.37s Get all elements bound by index for: Elements matching predicate 'label == "Next" OR title == "Next" OR value == "Next" OR placeholderValue == "Next"'
            t =    47.43s Checking existence of `Any (Element at index 0)`
            t =    47.47s Find the Any (Element at index 0)
            t =    47.52s Tap "Next" Button
            t =    47.52s     Wait for mobile.trade.sky.dev to idle
            t =    47.52s     Find the "Next" Button
            t =    47.57s     Check for interrupting elements affecting "Next" Button
            t =    47.61s     Synthesize event
            t =    47.89s     Wait for mobile.trade.sky.dev to idle
        2026-01-05 13:41:39.861292+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: done tapping on view with text 'Next' in app mobile.trade.sky.dev
        โœ…  10. tap (native)
        โณ  11. tap (native)
        2026-01-05 13:41:43.866492+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: tapping on view with text 'Save' in app mobile.trade.sky.dev...
        2026-01-05 13:41:43.866953+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: waiting for existence of view with text 'Save' in app mobile.trade.sky.dev
            t =    51.90s Get all elements bound by index for: Elements matching predicate 'label == "Save" OR title == "Save" OR value == "Save" OR placeholderValue == "Save"'
            t =    51.93s Checking existence of `Any (Element at index 0)`
            t =    51.96s Find the Any (Element at index 0)
            t =    52.00s Tap "Save" Button
            t =    52.00s     Wait for mobile.trade.sky.dev to idle
            t =    52.00s     Find the "Save" Button
            t =    52.03s     Check for interrupting elements affecting "Save" Button
            t =    52.09s     Synthesize event
            t =    52.37s     Wait for mobile.trade.sky.dev to idle
        2026-01-05 13:41:44.343982+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: done tapping on view with text 'Save' in app mobile.trade.sky.dev
        โœ…  11. tap (native)
        โณ  12. tap (native)
        2026-01-05 13:41:46.363857+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: tapping on view with text 'Continue' with elementType 'button' in app mobile.trade.sky.dev...
        2026-01-05 13:41:46.370877+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: waiting for existence of view with text 'Continue' with elementType 'button' in app mobile.trade.sky.dev
            t =    54.40s Get all elements bound by index for: Elements matching predicate '(label == "Continue" OR title == "Continue" OR value == "Continue" OR placeholderValue == "Continue") AND elementType == 9'
            t =    54.47s Checking existence of `Any (Element at index 0)`
            t =    54.51s Find the Any (Element at index 0)
            t =    54.57s Tap "Continue" Button
            t =    54.57s     Wait for mobile.trade.sky.dev to idle
            t =    54.57s     Find the "Continue" Button
            t =    54.61s     Check for interrupting elements affecting "Continue" Button
            t =    54.64s     Synthesize event
            t =    54.93s     Wait for mobile.trade.sky.dev to idle
        2026-01-05 13:41:46.902094+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: done tapping on view with text 'Continue' with elementType 'button' in app mobile.trade.sky.dev
        โœ…  12. tap (native)
        โณ  13. isPermissionDialogVisible (native)
        2026-01-05 13:41:56.914108+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: checking if permission dialog is visible...
        2026-01-05 13:41:56.915017+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: Device language: en
        2026-01-05 13:41:56.916164+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: DEBUG: Loaded localized string for key 'ok' in language: en
        2026-01-05 13:41:56.916269+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: Device language: en
        2026-01-05 13:41:56.916417+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: DEBUG: Loaded localized string for key 'allow' in language: en
        2026-01-05 13:41:56.916464+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: Device language: en
        2026-01-05 13:41:56.916562+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: DEBUG: Loaded localized string for key 'allow_once' in language: en
        2026-01-05 13:41:56.916600+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: Device language: en
        2026-01-05 13:41:56.916747+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: DEBUG: Loaded localized string for key 'allow_while_using_app' in language: en
        2026-01-05 13:41:56.916792+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: Device language: en
        2026-01-05 13:41:56.916918+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: DEBUG: Loaded localized string for key 'dont_allow' in language: en
            t =    64.95s Checking existence of `"OK" Button`
            t =    64.98s Checking existence of `"Allow" Button`
            t =    64.99s Checking existence of `"Allow Once" Button`
        2026-01-05 13:41:56.983735+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: done checking if permission dialog is visible
        โœ…  13. isPermissionDialogVisible (native)
        โณ  14. grantPermissionWhenInUse (native)
        2026-01-05 13:41:56.994995+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: allowing while using app...
        2026-01-05 13:41:56.995166+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: Device language: en
        2026-01-05 13:41:56.995528+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: DEBUG: Loaded localized string for key 'ok' in language: en
        2026-01-05 13:41:56.995592+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: Device language: en
        2026-01-05 13:41:56.995724+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: DEBUG: Loaded localized string for key 'allow' in language: en
        2026-01-05 13:41:56.995785+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: Device language: en
        2026-01-05 13:41:56.995886+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: DEBUG: Loaded localized string for key 'allow_while_using_app' in language: en
        2026-01-05 13:41:56.995940+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: Device language: en
        2026-01-05 13:41:56.996079+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: DEBUG: Loaded localized string for key 'limit_access' in language: en
            t =    65.03s Checking existence of `"OK" Button`
            t =    65.05s Checking existence of `"Allow" Button`
            t =    65.07s Checking existence of `"Allow While Using App" Button`
            t =    65.08s Tap "Allow While Using App" Button
            t =    65.08s     Wait for com.apple.springboard to idle
            t =    65.09s     Find the "Allow While Using App" Button
            t =    65.11s     Check for interrupting elements affecting "Allow While Using App" Button
            t =    65.13s     Synthesize event
            t =    65.42s     Wait for com.apple.springboard to idle
        2026-01-05 13:41:57.904914+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: done allowing while using app
        โœ…  14. grantPermissionWhenInUse (native)
        โณ  15. isPermissionDialogVisible (native)
        2026-01-05 13:42:00.947874+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: checking if permission dialog is visible...
        2026-01-05 13:42:00.948134+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: Device language: en
        2026-01-05 13:42:00.948654+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: DEBUG: Loaded localized string for key 'ok' in language: en
        2026-01-05 13:42:00.948757+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: INFO: Device language: en
        2026-01-05 13:42:00.949085+0530 RunnerUITests-Runner[79469:2452868] PatrolServer: DEBUG: Loaded localized string for key 'allow' in language: en
โœ… Login to the app using Google sign in and logout (/features/auth/google_authentication_test.dart) (76s)
        2026-01-05 13:42:13.464789+0530 RunnerUITests-Runner[79469:2454060] runDartTest("features.auth.google_authentication_test Login to the app using Google sign in and logout"): call finished, test result: PASSED
            t =    82.10s Tear Down
        Test Case '-[RunnerUITests features.auth.google_authentication_test Login to the app using Google sign in and logout]' passed (82.579 seconds).
        Test Suite 'RunnerUITests' passed at 2026-01-05 13:42:14.549.
                 Executed 1 test, with 0 failures (0 unexpected) in 82.579 (82.580) seconds
        Test Suite 'RunnerUITests.xctest' passed at 2026-01-05 13:42:14.551.
                 Executed 1 test, with 0 failures (0 unexpected) in 82.579 (82.582) seconds
        Test Suite 'Selected tests' passed at 2026-01-05 13:42:14.552.
                 Executed 1 test, with 0 failures (0 unexpected) in 82.579 (82.583) seconds
        2026-01-05 13:42:33.347 xcodebuild[79454:2452485] [MT] IDETestOperationsObserverDebug: 112.391 elapsed -- Testing started completed.
        2026-01-05 13:42:33.347 xcodebuild[79454:2452485] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
        2026-01-05 13:42:33.348 xcodebuild[79454:2452485] [MT] IDETestOperationsObserverDebug: 112.391 sec, +112.391 sec -- end
        
        Test session results, code coverage, and logs:
                /Users/brez/AndroidStudioProjects/mobile_utm/build/ios_results_1767600638726.xcresult
        
        ** TEST EXECUTE SUCCEEDED **
        
        Testing started

Patrol version

patrol: ^4.1.0

Patrol Doctor output

Patrol Doctor output
<!-- Replace this line with your logs. Do not remove the backticks! -->

Flutter Doctor output

Flutter Doctor output
<!-- Replace this line with your logs. Do not remove the backticks! -->

Brez18 avatar Jan 05 '26 09:01 Brez18

for now to counter this i gotta start the web view once then close then again open and continue the tests

Brez18 avatar Jan 05 '26 09:01 Brez18

Hi, there has to be a difference in native tree hierarchy between each iterations. Fetch this using Accessibility Inspector. There's a chance that in first iteration the keyboard has some field with "Next" value and that's why it taps on the keyboard, then just try to tap by different parameter

fylyppo avatar Jan 06 '26 16:01 fylyppo

yes its seems this is the case its super weird. Like the 2 widgets here are the Next btn and the Tick called Done on the keyboard. Whats weird is that they exchange User Input Label. So sometimes The Next btn has User input label as Done and some times the Done btn has User Input label as Next. Which is so so weird. For now i closing the keyboard by triggering a tap outside

Brez18 avatar Jan 07 '26 14:01 Brez18

Maybe you can tap by different parameter than label which is not changing between iterations. Closing since it's not a patrol problem.

fylyppo avatar Jan 08 '26 11:01 fylyppo

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue.

github-actions[bot] avatar Jan 15 '26 12:01 github-actions[bot]