I could write for example:
app.keyboard().keys()["e"].tap(); app.keyboard().buttons()["return"].tap();

But the distinction is only an option, because the elements are also accessible via the elements() method:
app.keyboard().elements()["e"].tap(); app.keyboard().elements()["return"].tap();
Any idea how to tap the "hide keyboard" button?
ReplyDeleteFound it:
ReplyDelete…keyboard().buttons()["Hide keyboard"].tap();
To find the name i used:
for(i = 0; i < 100; i++){
app.keyboard().buttons()[i].logElement();
}
Do you know how to access a PopOver when scripting an iPad app?
ReplyDeleteYou could have said:
ReplyDeleteapp.keyboard().logElementTree();
There is an own UIAPopover class to handle popovers ;)
Yea the elementTree is way smarter. Silly me forgot about it :-)
ReplyDeleteI know the UIAPopover class, my problem was to access the UIAPopover object. Finally i found it is a child of the mainWindow and not of the the scrollView.
Do you have another hint?
ReplyDeleteAfter using the popover (selecting something and dismissing it thereby) i cannot tap() on any buttons anymore. Tap() on buttons has then no effect anymore. Before it did. Typing in textfields still works.
Try it with Xcode 4.2 Developer Preview. If it still doesn't work, then file a bug in the Bugreporter.
ReplyDeleteI am hoping the same best effort from you in the future as well. In fact your creative writing skills has inspired me. vShare iOS 11
ReplyDeleteI recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing. Jailbreak iOS 11.3
ReplyDelete