Appium 1.5.3 is not supporting locator in-case of iOS Device

While executing test on Real device (iPhone 6S / 9.3.3 / 9.3.4/9.3.5) , getting the below mentioned error.
The issue I see I am able to rectify is that Appium 1.5.3 version is not supporting “name” locator strategy.The same code base is working fine for Android Device but facing issue in-case of iOS device only.
Did anyone also face the same issue or do we have any workaround?

Error Snap Shot:
org.openqa.selenium.InvalidSelectorException: Locator Strategy ‘name’ is not supported for this session (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 4 milliseconds
For documentation on this error, please visit:
Build info: version: ‘2.44.0’, revision: ‘76d78cf323ce037c5f92db6c1bba601c2ac43ad8’, time: ‘2014-10-23 13:11:40’
System info: host: ‘MACPRO08.local’, ip: ‘’, ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.11.4’, java.version: ‘1.8.0_60’
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities [{networkConnectionEnabled=false, databaseEnabled=false, deviceName=iPhone 6S+, launchTimeout=200000, platform=MAC, showIOSLog=true, desired={showIOSLog=true, newCommandTimeout=5000, platformVersion=9.2.1, browserName=safari, platformName=iOS, udid=c8202cd42206308af02b6ffd24ba897c9ae74fee, device=null, deviceName=iPhone 6S+, launchTimeout=200000}, newCommandTimeout=5000, platformVersion=9.2.1, webStorageEnabled=false, locationContextEnabled=false, browserName=safari, takesScreenshot=true, javascriptEnabled=true, platformName=iOS, udid=c8202cd42206308af02b6ffd24ba897c9ae74fee, device=null}]
Session ID: 9689beaf-5da6-4cab-8a08-3b277d73c6ce

I think finding by name is deprecated in both platforms

@slipy12 : Thanks for the revert.
@isaac : Can you please confirm is "name " locator strategy is deprecated in newer version of Appium , and if that’s the case then we have to change our locator strategy or do we have any work around?

I’m also in a problem which I don’t know how to proceed to make the test flexible:

I think this method was useful in some cases (like my one exposed xD)

Closing this issue as “name” locator have been deprecated and the only solution we have to change our locator strategy.

1 Like

You could add a [closed] in the title