简体   繁体   中英

How to verify element uniqueness in appium

I am transitioning from web-ui automation and trying to figure if there's a way to figure out whether an element that I want to use is going to work. Eg with selenium I can go to Chrome devtools and type something like

$$("#uniqueid")

and it will show me whether this is actually a unique id.

With appium I find it hard to understand when to use an id or text or something else.

You can use search for element option in appium desktop which will give you all the matching element corresponding to that id or whichever selector you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM