I am currently working on script automation (JavaScript) for an iOS application. I am not a programmer, just a tester who wants to look for errors.
Relevant software: Xcode, Tools .
Here is the problem: in my application there are buttons that do not have a name, which is important for automatic tests, so I gave them a shortcut in the "Availability" field of Xcode. But the devices still do not recognize the name of the buttons.
For example: what I want but does not work:
target.frontMostApp().mainWindow().scrollViews()[2].buttons()["Settings"].tap();
What I don't want but works:
target.frontMostApp().mainWindow().scrollViews()[2].buttons()[1].tap();
This is just one of many situations that I have encountered. I chose simple, and this may seem trivial, but some others are really problematic.
Any idea how to fix this?
source share