Am running script in iOS App, i can access the lables and buttons with their text name…
When come to UITabbar - it has 5 sets of id which is in footer, i could not locate the item id in the footer via Appium inspector, it take it as a single view.
Same way for Top Navigation bar, it has back button and share link.
How to access these element?
In iOS, We can locate the element only via its label not id, like in Android can’t we access element using it’s id?
Get page source needed screen of your app and check. We do not have your app.
Once again text can be in following attributes: name, value and label.
While id is only in name.
When element does not have id it often has value of text. This is just iOS behavior.
Thanks, now i can access the element, when take page soure am getting name… but when come to image like back button in navigation header how to access it?
Whether webview elements are accessible only via xpath…
i tried in iOS, i can give the name in id it’s working
but in Android,
MobileElement el5 = (MobileElement) driver.findElementByXPath("//android.view.View[@content-desc=“Continue with Mobile Number”]/android.widget.TextView");
el5.click();
But xpath makes the process too slow, it is not advisable to use xpath right?
Then how to access webview elements? i have enabled webview.setWebContentsDebuggingEnabled(true);
eventhough i can access only via xpath…