How to add accessibility identifier to ios (cordova/webview) in html
Asked Answered
K

1

13

I am doing mobile ios webview app automation using appium.

I am unable to see the id attributes by using appium inspector.some says need to add accessibility id attribute so that appium can inspect that element.

But we know how to add accessibility id for native app's, but please suggest how to add accessibility for webview app(cordova) in html code.

Thanks in advance.

Knave answered 12/10, 2015 at 12:10 Comment(0)
F
3

Don't know why, but after spending half a day to explore on appium, I found that if you put these two attribute to the element, it can show the accessibility id on apium

<div aria-label="<your_accessibility_id>" role="<your_accessibility_id>">
</div>
Forsooth answered 19/5, 2020 at 10:8 Comment(1)
have you been able to find any official documentation on this from Apple?Infamous

© 2022 - 2024 — McMap. All rights reserved.