

You can manually intercept using the following methods. Refer to:Error while obtaining UI hierarchy XML file: solution - uniquefu -Īttached: UI Automator Viewer Solution to the problem that it cannot be used directly on emulators above Android 8.0Īndroid8.0 In the future, the uiautomator that comes with the sdk tools will be opened directly, and the machine interface information in the simulator cannot be intercepted. Recreate the Android 6.0 emulator, execute it again, and it can be used normally. Solution: Run adb root under the cmd command and stop running Appium Inspector 。Īgain Click "Device Screenshot (uiaotomator dump)"Also reported the following errorįind the reason by searching the web, saying that UI Automator Viewer only supports Android 6.0 and below. 【Notice】 Click “Device Screenshot (uiaotomator dump)” to report an error. (2) Use uiautomatorviewer to assist in element positioningĪfter installing the Android SDK, the tool is available in the default tools directory.ĭouble-click to run uiautomatorviewer.bat, open UI Automator Viewer, click "Device Screenshot (uiaotomator dump)" Identify and locate elements through select elements in Appium Desktop.įor more details, please refer to:Getting Started with Appium: Use the Appium Desktop tool to assist element positioning and record test cases - Jayo. You need to start Appium Desktop first before starting, otherwise the following error will be reported. This article takes Snowball app as an example. Open the configuration page and enter the corresponding information to start the start session. (1) Use Appium-Inspector in Appium Desktop to assist in element positioningĮarlier versions were integrated in Appium Desktop, the latest version is separated.
