In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
In this issue, the editor will bring you about how the element positioning uiautomatorviewer in Appium+python is. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Environment is set up, the next step element positioning, element positioning this article mainly introduces how to use uiautomatorviewer, by locating to the elements on the page, and then click on the corresponding operations.
Uiautomatorviewer is an element positioning tool that comes with android-sdk, which is very simple and easy to use. with uiautomatorviewer, you can check the UI of an application to see the layout and components of the application and related properties.
First, start uiautomatorviewer.bat
1. Open the directory D:\ androidsdk\ android-sdk-windows\ tools
1472105236126324.png850x502 53 KB
two。 Double-click to start, and after startup, the following interface appears
Second, connect the mobile phone
1.cmd opens and enters adb devices to confirm that the phone is connected
two。 Open the Mobile Taobao page and light up the screen
3. Click the Android robot button Devices Screenshot button in the upper left corner to refresh the page
two。 You can see the attributes corresponding to the element in the lower right corner.
Text: you can't do without a new favorite.
Resource-id:com.taobao.taobao:id/home_searchedit
Class:android.widget.EditText
Click on the search box
1. After starting app in the previous article, sleep for five seconds and wait for the page to load.
two。 Navigate to the search box via id and click
two。 The more than three are as follows, which will be described in detail later.
Driver.find_element_by_accessibility_id ()
Driver.find_element_by_android_uiautomator ()
Driver.find_element_by_ios_uiautomation ()
(the third one is ios, which can be left unattended for the time being)
Uiautomatorviewer comes with android sdk.
This is how the element positioning uiautomatorviewer in Appium+python is shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.