Skip to content

Instantly share code, notes, and snippets.

@dipakkumar1225
Created June 21, 2024 02:43
Show Gist options
  • Save dipakkumar1225/207e6ce236f3f6bb27abfcfe6ca7ac1f to your computer and use it in GitHub Desktop.
Save dipakkumar1225/207e6ce236f3f6bb27abfcfe6ca7ac1f to your computer and use it in GitHub Desktop.
When element-wait is passed in --use-plugins
[Appium] Attempting to load plugin images...
[Appium] Attempting to load plugin gestures...
[Appium] Attempting to load plugin ocr...
[Appium] Attempting to load plugin element-wait...
[Appium] Welcome to Appium v2.3.0
[Appium] Non-default server args:
[Appium] { address: '127.0.0.1',
[Appium] allowInsecure: [ 'adb_shell' ],
[Appium] loglevel: 'info:debug',
[Appium] longStacktrace: true,
[Appium] relaxedSecurityEnabled: true,
[Appium] sessionOverride: true,
[Appium] useDrivers: [ 'uiautomator2' ],
[Appium] usePlugins: [ 'images', 'gestures', 'ocr', 'element-wait' ] }
[Appium] Attempting to load driver uiautomator2...
[Appium] Appium REST http interface listener started on http://127.0.0.1:4723
[Appium] Available drivers:
[Appium] - uiautomator2@2.35.0 (automationName 'UiAutomator2')
[Appium] - espresso@2.30.0 (automationName 'Espresso')
[Appium] - chromium@1.2.67 (automationName 'Chromium')
[Appium] Available plugins:
[Appium] - appium-dashboard@v2.0.2
[Appium] - gestures@4.0.1 (ACTIVE)
[Appium] - element-wait@2.0.3 (ACTIVE)
[Appium] - ocr@0.2.0 (ACTIVE)
[Appium] - images@2.1.6 (ACTIVE)
[HTTP] --> GET /status
[HTTP] {}
[AppiumDriver@a46d] Plugins which can handle cmd 'getStatus': images,element-wait
[AppiumDriver@a46d] Plugin element-wait is now handling cmd 'getStatus'
[AppiumDriver@a46d] Plugin images is now handling cmd 'getStatus'
[AppiumDriver@a46d] Executing default handling behavior for command 'getStatus'
[HTTP] <-- GET /status 200 11 ms - 110
[HTTP]
URL http://127.0.0.1:4723/
[HTTP] --> POST /session
[HTTP] {"capabilities":{"firstMatch":[{"appium:noReset":true,"appium:udid":"ZD222CJSXB","appium:appActivity":"com.saucelabs.mydemoapp.android.view.activities.SplashActivity","platformName":"ANDROID","appium:automationName":"UIAutomator2","appium:fullReset":false,"appium:shouldTerminateApp":true,"appium:app":"D:\\Workspace\\Appium_Practice\\Image\\app\\android\\mda-2.0.2-23.apk","appium:platformVersion":"13","appium:appPackage":"com.saucelabs.mydemoapp.android"}]}}
[AppiumDriver@a46d] Plugins which can handle cmd 'createSession': images,element-wait
[AppiumDriver@a46d] Plugin element-wait is now handling cmd 'createSession'
[AppiumDriver@a46d] Plugin images is now handling cmd 'createSession'
[AppiumDriver@a46d] Executing default handling behavior for command 'createSession'
[Appium] Attempting to find matching driver for automationName 'UIAutomator2' and platformName 'ANDROID'
[Appium] The 'uiautomator2' driver was installed and matched caps.
[Appium] Will require it at C:\Users\DeepakV\.appium\node_modules\appium-uiautomator2-driver
[AppiumDriver@a46d] Appium v2.3.0 creating new AndroidUiautomator2Driver (v2.35.0) session
[AppiumDriver@a46d] Checking BaseDriver versions for Appium and AndroidUiautomator2Driver
[AppiumDriver@a46d] Appium's BaseDriver version is 9.5.0
[AppiumDriver@a46d] AndroidUiautomator2Driver's BaseDriver version is 9.5.0
[AppiumDriver@a46d] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[AppiumDriver@a46d] Explicitly enabling use of insecure features:
[AppiumDriver@a46d] adb_shell
[AndroidUiautomator2Driver@1efb (f00168cc)] Session created with session id: f00168cc-2ba6-4e12-9ad8-c161ee56934f
[BaseDriver] Using local app 'D:\Workspace\Appium_Practice\Image\app\android\mda-2.0.2-23.apk'
[ADB] Found 4 'build-tools' folders under 'D:\SoftwareInstalled\Android\Sdk' (newest first):
[ADB] D:\SoftwareInstalled\Android\Sdk\build-tools\35.0.0-rc4
[ADB] D:\SoftwareInstalled\Android\Sdk\build-tools\34.0.0
[ADB] D:\SoftwareInstalled\Android\Sdk\build-tools\33.0.2
[ADB] D:\SoftwareInstalled\Android\Sdk\build-tools\29.0.2
[ADB] Using 'adb.exe' from 'D:\SoftwareInstalled\Android\Sdk\platform-tools\adb.exe'
[AndroidDriver] Retrieving device list
[AndroidDriver] Using device: ZD222CJSXB
[ADB] Using 'adb.exe' from 'D:\SoftwareInstalled\Android\Sdk\platform-tools\adb.exe'
[ADB] Getting device platform version
[AndroidUiautomator2Driver@1efb (f00168cc)] Relaxing hidden api policy
[ADB] Using 'apksigner.jar' from 'D:\SoftwareInstalled\Android\Sdk\build-tools\35.0.0-rc4\lib\apksigner.jar'
[ADB] 'C:\Users\DeepakV\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate
[ADB] 'C:\Users\DeepakV\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v5.12.17.apk' is signed with the default certificate
[AndroidUiautomator2Driver@1efb (f00168cc)] Server packages are not going to be (re)installed
[ADB] Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist
[AndroidUiautomator2Driver@1efb (f00168cc)] Starting UIAutomator2 server 5.12.17
[AndroidUiautomator2Driver@1efb (f00168cc)] Using UIAutomator2 server from 'C:\Users\DeepakV\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v5.12.17.apk' and test from 'C:\Users\DeepakV\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[AndroidUiautomator2Driver@1efb (f00168cc)] Waiting up to 30000ms for UiAutomator2 to be online...
[AndroidUiautomator2Driver@1efb (f00168cc)] socket hang up
[AndroidUiautomator2Driver@1efb (f00168cc)] socket hang up
[AndroidUiautomator2Driver@1efb (f00168cc)] Determined the downstream protocol as 'W3C'
[AndroidDriver] Screen already unlocked, doing nothing
[AndroidUiautomator2Driver@1efb (f00168cc)] Starting 'com.saucelabs.mydemoapp.android/com.saucelabs.mydemoapp.android.view.activities.SplashActivity and waiting for 'com.saucelabs.mydemoapp.android/com.saucelabs.mydemoapp.android.view.activities.SplashActivity'
[AppiumDriver@a46d] New AndroidUiautomator2Driver session created successfully, session f00168cc-2ba6-4e12-9ad8-c161ee56934f added to master session list
[wait-plugin] Timeout properties set for session f00168cc-2ba6-4e12-9ad8-c161ee56934f is {"timeout":55000,"intervalBetweenAttempts":250,"excludeEnabledCheck":["click"]}
[wait-plugin] session f00168cc-2ba6-4e12-9ad8-c161ee56934f is created with {"timeout":55000,"intervalBetweenAttempts":250,"excludeEnabledCheck":["click"]}
[AppiumDriver@a46d] Promoting 4 sessionless plugins to be attached to session ID f00168cc-2ba6-4e12-9ad8-c161ee56934f
[HTTP] <-- POST /session 200 7781 ms - 1307
[HTTP]
SessionID f00168cc-2ba6-4e12-9ad8-c161ee56934f
[HTTP] --> GET /session/ab63aa0b-186a-4435-8944-713064b40ed5/timeouts
[HTTP] {}
[HTTP] <-- GET /session/ab63aa0b-186a-4435-8944-713064b40ed5/timeouts 404 24 ms - 9967
[HTTP]
[HTTP] --> POST /session/f00168cc-2ba6-4e12-9ad8-c161ee56934f/element
[HTTP] {"using":"-image","value":"iVBORw0KGgoAAAANSUhEUgAAAEsAAABLCAYAAAA4TnrqAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAG2SURBVHic7doxisJQFEDRl2EsksZAGhtRBGt34ArcobvRHdhaiFVsBDsFi0wlDOKM/+qIjtzTCJLE78UEfTFrmqaJM8fjMTabTeR5HlVVRZZl55v86nA4xGAwiLquY7VaRb/fR/u/qs9LT7Zareh2uzcfdD6fR13XMZlM3iZUxA+x7lUURUyn0xiNRo84/NNkl05DXfbx7AX8J8YCjAUYCzAWYCzAWICxAGMBxgKMBRgLMBZgLCBpnrXb7WK/3z96LU+T53mUZXl1u6RYi8Uilsvl3Yt6VcPhMMbj8dXtPA0BYwHGAowFGAvw7k5ENE2TdCPZT1ZE8h13YwHGAowFGAswFmAswFhA0ohmvV7Hdrt99Fqepqqq6PV6V7dLjvXu86yUWJ6GgLEAYwHGApIu8GVZRqfTeehCvv/yP41MUh/P96Pa7XbaGl9lnnVaBn2z5/vd8nZSX/NlYv0HXrMAYwHGAowFGAswFmAsIOkb/Gw2e/sRjX85+mPGAowFGAswFpA0dXj3fysXRZE003JEA3gaAsYCjAUYCzAWYCzAWICxAGMBxgKMBRgLMBZgLMBYgLEAYwFfSr16gxaN24QAAAAASUVORK5CYII="}
[AppiumDriver@a46d] Plugins which can handle cmd 'findElement': images,ocr,element-wait
[AppiumDriver@a46d] Plugin element-wait is now handling cmd 'findElement'
- Waiting to find element with -image strategy for iVBORw0KGgoAAAANSUhEUgAAAEsAAABLCAYAAAA4TnrqAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAG2SURBVHic7doxisJQFEDRl2EsksZAGhtRBGt34ArcobvRHdhaiFVsBDsFi0wlDOKM/+qIjtzTCJLE78UEfTFrmqaJM8fjMTabTeR5HlVVRZZl55v86nA4xGAwiLquY7VaRb/fR/u/qs9LT7Zareh2uzcfdD6fR13XMZlM3iZUxA+x7lUURUyn0xiNRo84/NNkl05DXfbx7AX8J8YCjAUYCzAWYCzAWICxAGMBxgKMBRgLMBZgLCBpnrXb7WK/3z96LU+T53mUZXl1u6RYi8Uilsvl3Yt6VcPhMMbj8dXtPA0BYwHGAowFGAvw7k5ENE2TdCPZT1ZE8h13YwHGAowFGAswFmAswFhA0ohmvV7Hdrt99Fqepqqq6PV6V7dLjvXu86yUWJ6GgLEAYwHGApIu8GVZRqfTeehCvv/yP41MUh/P96Pa7XbaGl9lnnVaBn2z5/vd8nZSX/NlYv0HXrMAYwHGAowFGAswFmAsIOkb/Gw2e/sRjX85+mPGAowFGAswFpA0dXj3fysXRZE003JEA3gaAsYCjAUYCzAWYCzAWICxAGMBxgKMBRgLMBZgLMBYgLEAYwFfSr16gxaN24QAAAAASUVORK5CYII= selector
[HTTP] --> GET /session/ab63aa0b-186a-4435-8944-713064b40ed5/timeouts
[HTTP] {}
[HTTP] <-- GET /session/ab63aa0b-186a-4435-8944-713064b40ed5/timeouts 404 12 ms - 9967
[HTTP]
[HTTP] --> GET /session/ab63aa0b-186a-4435-8944-713064b40ed5/timeouts
[HTTP] {}
[HTTP] <-- GET /session/ab63aa0b-186a-4435-8944-713064b40ed5/timeouts 404 11 ms - 9967
[HTTP]
× Waiting to find element with -image strategy for iVBORw0KGgoAAAANSUhEUgAAAEsAAABLCAYAAAA4TnrqAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAG2SURBVHic7doxisJQFEDRl2EsksZAGhtRBGt34ArcobvRHdhaiFVsBDsFi0wlDOKM/+qIjtzTCJLE78UEfTFrmqaJM8fjMTabTeR5HlVVRZZl55v86nA4xGAwiLquY7VaRb/fR/u/qs9LT7Zareh2uzcfdD6fR13XMZlM3iZUxA+x7lUURUyn0xiNRo84/NNkl05DXfbx7AX8J8YCjAUYCzAWYCzAWICxAGMBxgKMBRgLMBZgLCBpnrXb7WK/3z96LU+T53mUZXl1u6RYi8Uilsvl3Yt6VcPhMMbj8dXtPA0BYwHGAowFGAvw7k5ENE2TdCPZT1ZE8h13YwHGAowFGAswFmAswFhA0ohmvV7Hdrt99Fqepqqq6PV6V7dLjvXu86yUWJ6GgLEAYwHGApIu8GVZRqfTeehCvv/yP41MUh/P96Pa7XbaGl9lnnVaBn2z5/vd8nZSX/NlYv0HXrMAYwHGAowFGAswFmAsIOkb/Gw2e/sRjX85+mPGAowFGAswFpA0dXj3fysXRZE003JEA3gaAsYCjAUYCzAWYCzAWICxAGMBxgKMBRgLMBZgLMBYgLEAYwFfSr16gxaN24QAAAAASUVORK5CYII= selector
[AppiumDriver@a46d] Command 'findElement' was *not* handled by the following behaviours or plugins, even though they were registered to handle it: ["default","images","ocr"]. The command *was* handled by these: ["element-wait"].
[HTTP] <-- POST /session/f00168cc-2ba6-4e12-9ad8-c161ee56934f/element 404 55050 ms - 1816
[HTTP]
[HTTP] --> DELETE /session/f00168cc-2ba6-4e12-9ad8-c161ee56934f
[HTTP] {}
[AppiumDriver@a46d] Plugins which can handle cmd 'deleteSession': images,ocr,element-wait
[AppiumDriver@a46d] Plugin element-wait is now handling cmd 'deleteSession'
[AppiumDriver@a46d] Plugin ocr is now handling cmd 'deleteSession'
[AppiumDriver@a46d] Plugin images is now handling cmd 'deleteSession'
[AppiumDriver@a46d] Executing default handling behavior for command 'deleteSession'
[AppiumDriver@a46d] Removing session f00168cc-2ba6-4e12-9ad8-c161ee56934f from our master session list
[AndroidUiautomator2Driver@1efb (f00168cc)] Restoring hidden api policy to the device default configuration
[HTTP] <-- DELETE /session/f00168cc-2ba6-4e12-9ad8-c161ee56934f 200 414 ms - 14
[HTTP]
Exception in thread "main" org.openqa.selenium.NoSuchElementException: Time out after waiting for element iVBORw0KGgoAAAANSUhEUgAAAEsAAABLCAYAAAA4TnrqAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAG2SURBVHic7doxisJQFEDRl2EsksZAGhtRBGt34ArcobvRHdhaiFVsBDsFi0wlDOKM/+qIjtzTCJLE78UEfTFrmqaJM8fjMTabTeR5HlVVRZZl55v86nA4xGAwiLquY7VaRb/fR/u/qs9LT7Zareh2uzcfdD6fR13XMZlM3iZUxA+x7lUURUyn0xiNRo84/NNkl05DXfbx7AX8J8YCjAUYCzAWYCzAWICxAGMBxgKMBRgLMBZgLCBpnrXb7WK/3z96LU+T53mUZXl1u6RYi8Uilsvl3Yt6VcPhMMbj8dXtPA0BYwHGAowFGAvw7k5ENE2TdCPZT1ZE8h13YwHGAowFGAswFmAswFhA0ohmvV7Hdrt99Fqepqqq6PV6V7dLjvXu86yUWJ6GgLEAYwHGApIu8GVZRqfTeehCvv/yP41MUh/P96Pa7XbaGl9lnnVaBn2z5/vd8nZSX/NlYv0HXrMAYwHGAowFGAswFmAsIOkb/Gw2e/sRjX85+mPGAowFGAswFpA0dXj3fysXRZE003JEA3gaAsYCjAUYCzAWYCzAWICxAGMBxgKMBRgLMBZgLMBYgLEAYwFfSr16gxaN24QAAAAASUVORK5CYII= for 55000 ms
For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Build info: version: '4.22.0', revision: 'c5f3146703*'
System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '21.0.3'
Driver info: io.appium.java_client.android.AndroidDriver
Command: [f00168cc-2ba6-4e12-9ad8-c161ee56934f, findElement {using=-image, value=iVBORw0KGgoAAAANSUhEUgAAAEsAAABLCAYAAAA4TnrqAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAG2SURBVHic7doxisJQFEDRl2EsksZAGhtRBGt34ArcobvRHdhaiFVsBDsFi0wlDOKM/+qIjtzTCJLE78UEfTFrmqaJM8fjMTabTeR5HlVVRZZl55v86nA4xGAwiLquY7VaRb/fR/u/qs9LT7Zareh2uzcfdD6fR13XMZlM3iZUxA+x7lUURUyn0xiNRo84/NNkl05DXfbx7AX8J8YCjAUYCzAWYCzAWICxAGMBxgKMBRgLMBZgLCBpnrXb7WK/3z96LU+T53mUZXl1u6RYi8Uilsvl3Yt6VcPhMMbj8dXtPA0BYwHGAowFGAvw7k5ENE2TdCPZT1ZE8h13YwHGAowFGAswFmAswFhA0ohmvV7Hdrt99Fqepqqq6PV6V7dLjvXu86yUWJ6GgLEAYwHGApIu8GVZRqfTeehCvv/yP41MUh/P96Pa7XbaGl9lnnVaBn2z5/vd8nZSX/NlYv0HXrMAYwHGAowFGAswFmAsIOkb/Gw2e/sRjX85+mPGAowFGAswFpA0dXj3fysXRZE003JEA3gaAsYCjAUYCzAWYCzAWICxAGMBxgKMBRgLMBZgLMBYgLEAYwFfSr16gxaN24QAAAAASUVORK5CYII=}]
Capabilities {appium:app: D:\Workspace\Appium_Practic..., appium:appActivity: com.saucelabs.mydemoapp.and..., appium:appPackage: com.saucelabs.mydemoapp.and..., appium:automationName: UIAutomator2, appium:databaseEnabled: false, appium:desired: {app: D:\Workspace\Appium_Practic..., appActivity: com.saucelabs.mydemoapp.and..., appPackage: com.saucelabs.mydemoapp.and..., automationName: UIAutomator2, fullReset: false, noReset: true, platformName: ANDROID, platformVersion: 13, shouldTerminateApp: true, udid: ZD222CJSXB}, appium:deviceApiLevel: 33, appium:deviceManufacturer: motorola, appium:deviceModel: motorola edge 30, appium:deviceName: ZD222CJSXB, appium:deviceScreenDensity: 400, appium:deviceScreenSize: 1080x2400, appium:deviceUDID: ZD222CJSXB, appium:fullReset: false, appium:javascriptEnabled: true, appium:locationContextEnabled: false, appium:networkConnectionEnabled: true, appium:noReset: true, appium:pixelRatio: 2.5, appium:platformVersion: 13, appium:shouldTerminateApp: true, appium:statBarHeight: 105, appium:takesScreenshot: true, appium:udid: ZD222CJSXB, appium:viewportRect: {height: 2130, left: 0, top: 105, width: 1080}, appium:warnings: {}, appium:webStorageEnabled: false, platformName: ANDROID}
Session ID: f00168cc-2ba6-4e12-9ad8-c161ee56934f
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
at org.openqa.selenium.remote.ErrorCodec.decode(ErrorCodec.java:167)
at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:138)
at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:50)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:190)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:237)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:518)
at org.openqa.selenium.remote.ElementLocation$ElementFinder$2.findElement(ElementLocation.java:165)
at org.openqa.selenium.remote.ElementLocation.findElement(ElementLocation.java:66)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:355)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:349)
at org.example.Main.main(Main.java:75)
Process finished with exit code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment