I’m currently trying to execute a test that requires the click of an object (UIButton) that lives exclusively in an xib/storyboard file. The button has no label nor a referencing outlet. The button only sends an event when it is touched.
I can see by looking at the source of the screen I am looking at while running my test that the button is in the screens content appropriately, but it appears that since the button has no outlet or label, there is no identifying properties on the UIAButton for me to be able to find the button in the screen and perform a click on it.
The button when I call source on my screen the button element is structured like this:
<UIAButton name="" label="" value="" dom="" enabled="true" valid="true" visible="false" hint="" path="/0/0/3/7" x="0" y="189" width="80" height="80">
</UIAButton>
Ideally I would like to not have to modify my button in any way (like utilizing the accessability id, or the hint property) to make it available to Appium, nor creating a referencing outlet, but I am not sure if this is possible. I have tried to access the element via path but havent had any success. When I set the accessability id, I can manage to access the button via name/label, as well as visible becomes true (despite the above example not actually appearing to be invisible in the simulator Appium is running).
I am a beginner with this so my apologies if this is fairly simple, the documentation is a challenge