You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m running automated tests using CodeceptJS + WebDriverIO + Appium for an Android app. I’m facing two major issues:
WebDriver UI Crash — The app unexpectedly crashes or closes during test execution.
WebDriverError: 'POST /element' cannot be proxied to UiAutomator2 server because the instrumentation process is not running (probably crashed). Check the server log and/or the logcat output for more details when running "element" with method "POST" and args "{"using":"-android uiautomator"
No Window / WebView Not Found Error during a test scenario where the app switches from Native to WebView, I get this error:
WebDriverError: no such window: target window already closed
from unknown error: web view not found (chrome=109.0.5414.123)
I’ve already tried switching Appium versions, checking context switching, and updating drivers, but the issues persist.
What I’ve Tried
• Downgraded Appium from v3 to v2.1.3
• Reinstalled the latest uiautomator2 driver (v5.0.1)
• Checked contexts() before and after switching
• Added waits and context check retry loops
• Verified that chromedriver version matches WebView
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I’m running automated tests using CodeceptJS + WebDriverIO + Appium for an Android app. I’m facing two major issues:
I’ve already tried switching Appium versions, checking context switching, and updating drivers, but the issues persist.
Current Environment
{
"appium": "^3.0.1",
"appium-uiautomator2-driver": "^5.0.1",
"webdriverio": "^9.19.2",
"codeceptjs": "^3.7.4",
"@wdio/appium-service": "^9.19.2",
"device": "Android Version 13 Emulator + Pixel 5 API 33",
"OS": "macOS",
"chromeDriver": "109.0.5414.123",
"app type": "hybrid (Native + WebView)"
}
What I’ve Tried
• Downgraded Appium from v3 to v2.1.3
• Reinstalled the latest uiautomator2 driver (v5.0.1)
• Checked contexts() before and after switching
• Added waits and context check retry loops
• Verified that chromedriver version matches WebView
Beta Was this translation helpful? Give feedback.
All reactions