Reputation: 2460
I 'm automating my tests using Appium and TestNG in java running in the browser of ipad simulator.
The problem is that when i try to tap this code to find an element : By.name("person");
the action is not executed !
Upvotes: 0
Views: 2770
Reputation: 1186
From 1.5 Appium version - "name" locator got deprecated "Remove long-deprecated name locator strategy".
We can click the display text like this :
MobileElement makeTextLocartor = (MobileElement) wd
.findElementByAndroidUIAutomator("new UiSelector().text(\"+<your_text>+\")");
makeTextLocartor.click();
This link will help you : https://www.youtube.com/watch?v=bT3tqaLNn-Y
Upvotes: 1