Hi,
I am trying to locate the element of iOS native app using Object Spy, where all the objects have same name. How to uniquely identify the objects.
Please refer the screen shot
Thanks in advance for the help!
Regards,
Hi,
I am trying to locate the element of iOS native app using Object Spy, where all the objects have same name. How to uniquely identify the objects.
Please refer the screen shot
Thanks in advance for the help!
Regards,
Right click on the object and select ‘Copy unique xpath’. It will calculate a unique xpath for you.
Other alternative is to use the index. You can use findElements get an array of all the images and click them by index…
Thank you i had already tried Copy unique xpath, but even it is not unique. I should try find elements using array. Will this possible to insert the step with in appium studio or have to do it in eclipse?
You have to do it in an IDE (Eclipse), there you can edit the code. However if you want to record and run it work whatever steps you record.
If you try to do it in an IDE try:
List list = new ArrayList();
list = driver.findElements(By.id(“list id”);
Thank you!
I have another question where iOS app always launches soon after hitting record button . I want to explicitly start the application(by clicking on app icon on device). Please let me know how to achieve this.
In case you missed it, Guy answered it -
cheluvambika
In order to achieve this behavior just select “No Application” from the application list. Hope it will help.
Thanks, Now I am able to launch the application after starting the recording.