When testing the webview page of the app, if appium cannot operate the element, you need to modify the source code (haven't tried it, record it here first)

To use chromedriver to automate hybrid, we have several prerequisites that must be solved:
1. Prepare a mobile phone with Android 4.4 or above;
2. Set Webview to debug mode;
setting method: in the case of Android SDK API>=19 ,
add webview.setWebContentsDebuggingEnabled(true) to the source code. (If you are using an
emulator, you do not need to modify the source code)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324605697&siteId=291194637