ios,objective-c,uiimagepickercontroller,ui-automation,ios-ui-automation
I was also stuck with this very same problem and I found this solution: var b = target.frontMostApp().mainWindow().buttons()[2]; var x = b.rect().origin.x + 1; var y = b.rect().origin.y + 1; target.tap({x:x, y:y}); It's not very nice, but it works......
javascript,ios,webview,ui-automation,ios-ui-automation
The Illuminator framework (full disclosure, I wrote it) provides a function called waitForChildExistence() in its Extensions.js that allows you to continuously evaluate a reference to an element until it actually appears. You would do something like this to wait up to 10 seconds for the webview to load: var webView...
javascript,ios7,xcode5,ios-ui-automation
Text file This is something I came up with based on performTaskWithPathArgumentsTimeout method: var target = UIATarget.localTarget(); var host = target.host(); var result = host.performTaskWithPathArgumentsTimeout( "/bin/cat", ["/Users/username/Documents/test.txt"], 5) var content = result.stdout; UIALogger.logMessage(content); Content of the test.txt: Hello World! This is a test. And this is how it looks in...
ios,xcode6,instruments,ios-ui-automation
I was able to find the answer and hopefully it helps others as well: Calendar == MobileCal.app Mail == MobileMail.app Photos == MobileSlideShow.app Messages == MobileSMS.app Camera == Camera.app ...
ios,automation,ui-automation,ios-ui-automation,appium
I have mentioned both the ways here along with basic scripting. Hope it helps....
ios,keyboard,xcode6,simulator,ios-ui-automation
If I understood your question correctly, you need bulletproof way to enter text. I just use setValue for that. Like this: UIATarget.localTarget().frontMostApp().textFields().Login.setValue('sofa');
javascript,ios,automated-tests,appium,ios-ui-automation
please follow this link in github. I have got a solution that is happening because of async error. https://github.com/appium/appium/issues/5177...
javascript,instruments,ios-ui-automation,xcode-instruments
logElementTree writes to the log, and does not return a value. The only way to get the hierarchy from within code is to recursively traverse it yourself, e.g. visiting the .elements() array of each element.
javascript,ios,ios-ui-automation
To extract the "xyz" string from an element, you should be able to use the .name() method on it. In this case, it looks like that would be TableViewInfo.cells()[0].name()....
instruments,ui-automation,ios-ui-automation
No :) I recommend to edit script in an external editor and then run via console. That's easy: instruments -w "iPad Air" -t "Automation" ~/My.app -e UIASCRIPT my_script.js
YES !! Perfecto allows you to execute all your tests on real devices from any browser and OS system. we also recommend you to use remote web driver (appium based tests). https://community.perfectomobile.com/posts/992642-remotewebdriver-vs-webdriver in order to test an IOS app you need the IPA which uploaded automatically to Perfecto devices: more...
UIATarget.localTarget().frontMostApp().mainWindow().searchBars()[0].tap(); UIATarget.localTarget().frontMostApp().mainWindow().searchBars()[0] .setValue("é & á"); ...