简体   繁体   中英

Appium IOS Native app find element by label

Can we find an ios native application button by it's label using appium ? Using Accessiblity Inspector, only labels can be found. We do not have the source of the app that we seek automate, it's already installed.

Thanks !

You can consider the following alternatives to the accessibility inspector:

  1. Appium iOS Inspector

    在此处输入图片说明

  2. Appium Desktop

    在此处输入图片说明

  3. Appium Studio

    在此处输入图片说明


Also be aware that you can always stick to the label attribute by using XPath Selector like:

//*[@label='your label text here']

Unstead of IOSDriver ,we were using RemoteWebDriver, wich lacks many features. Now, we're using Accessibility ID.

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