appium: bug: appium doesnt show context webview
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
i used getContextHundles() in hybrid app to see the contexts and only show the NATIVE_APP, but i need see the WEBVIEW and is not showing when i set setCapability(“autoWebview”, true); the appium doesnt show me anything even the native app(only show in the appium’s log, but not in the console). i did try put a “wait” before all the page load for me, but the result is the same. i tryed also these capability that i saw searching for my problem setCapability(“additionalWebviewBundleIds”, “process-awesomeAppDebug”); and setCapability(“locationContextEnabled”, true); but didnt work.
Expected Behavior
i’m expecting to show WEBVIEW when i use getContextHundles() for me interact with webview in my tests
Minimal Reproducible Example
https://gist.github.com/nimairodrigues/541cf1df790154f3000d09bacd5f7a92
Environment
- Operating system:
- If running via
appium
CLI…- Appium CLI version (output of
appium --version
): - Node.js version (output of
node --version
): npm
version (output ofnpm --version
):- Last
appium
version which did not exhibit the problem:
- Appium CLI version (output of
- If running Appium Desktop, its version:
- Appium driver(s) and their version(s):
- Appium plugin(s) and their version(s):
- Platform and version under test:
- Real device or emulator/simulator:
Link to Appium Logs
https://gist.github.com/nimairodrigues/cd03246ce972746ed33baff53560a17d
Futher Information
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 25 (7 by maintainers)
@nimairodrigues you’re using an invalid locator strategy.
id
is not one of the strategies that chromedriver knows about.that version of chromedriver is ancient, and unfortunately not supported by the latest drivers
/wd/hub/session/session
is not a valid webdriver url. it looks like you have entered an incorrect server url in your connection string in your test. by default appium 2 does not accept commands on/wd/hub
but on/
You should also make sure the web view is detected by Chrome as described in https://developer.chrome.com/docs/devtools/remote-debugging/
If the above does not detect it then there is no chance something could be seen in the Appium driver.
this is not the latest appium. make sure you’ve followed the instructions to install appium 2
It has nothing to do with java language version. Make sure you use the most recent version of the java-client lib
The main issue I see is that you are using ancient versions of Appium and the UiAutomator2 driver. Use Appium 2 and the latest version of the driver and see if the issue persists.