ios-ui-automation

WebKit Threading Violation - initial use of WebKit from a secondary thread in UI Automation

末鹿安然 提交于 2019-12-21 20:26:06
问题 When I tried to run my automation scripts through the terminal with Xcode 6 I got this error message: WebKit Threading Violation - initial use of WebKit from a secondary thread. Can someone help me to run the automation scripts through terminal or instrument in Xcode 6. 回答1: I see the same message infrequently -- even when things run successfully. You may be having troubles running instruments from command line because of changes to command line utilities for XCode 6. Check out UIAutomation

I can't make swipe gesture work for me in Appium using Java

眉间皱痕 提交于 2019-12-21 19:43:24
问题 I can't made Swipe action work. I did browsed through the web for a few days and found many similar questions but there is no working answer. Also I have tried TouchAction class, doesn't work as well. I have Appium Version 1.4.13 (Draco) and using Java, TestNG framework. btw I made scrolling work using (you can use the same logic as a pull to refresh) here is code sample. public void scrollUp() { JavascriptExecutor js = (JavascriptExecutor) getDriver(); HashMap<String, String> scrollObject =

Disable Hardware Keyboard for iOS Simulator using UIAutomation

蓝咒 提交于 2019-12-21 12:59:10
问题 I'm doing some automated tests in the iOS simulator using UIAutomation. In Xcode 6, the iOS simulator's keyboard behavior changed to be similar to a real device, and now there is a menu item to connect/disconnect your Mac's keyboard to the simulator: Hardware > Keyboard > Connect Hardware Keyboard . I don't mind this, but what happens when your Mac's keyboard is connected is that the simulator will no longer show the software keyboard. When you run a test script with UIAutomation, calls like

When recording using UIAutomation on a device, it hangs on 'Starting Capture…' . Works fine on Simulator

≯℡__Kan透↙ 提交于 2019-12-21 05:12:23
问题 Has anyone else had this problem? I'm new to UIAutomation. Am using Xcode4.5, trying to record commands on my iPad 3 running ios6. When I click the record button, it just hangs on 'Starting Capture...'. I had this problem initially when trying to run on the simulator and was able to solve it using. sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer. Can't seem to get it working on my device. Do the accessibility settings need to be set a certain way? I have multi-tasking

How to get UIAutomation, Simulator, and Xcode Debugger Running at the same time?

混江龙づ霸主 提交于 2019-12-21 02:59:09
问题 Can anyone point me to the documentation on how to make Instruments run UIAutomation scripts and start the iPhone application with the debugger running in the Simulator? Constraints: I only have iPhone 3g hardware to test with and debugging against the device with UIAutomation just does not reliably work. Normally the test scripts are just ran to make sure everything passes, but now a weird bug exists that only gets triggered when the UIAutomation script runs (which is a good thing). The bug

iOS/UI Automation: UIAActionSheet does not have possibilities to manipulate with buttons

十年热恋 提交于 2019-12-20 03:25:06
问题 My question is related to UI Automation template from XCode's Instruments tool. How does UI Automation support UIActionSheet testing? I know that there is a UIAActionSheet element and I was able to obtain it in my application. But I do not know how to get and manipulate with buttons from the action sheet. UI Automation does not provide any elements for these buttons. The UI Automation documentation does not have any info on the matter either. See the link below. It looks like this control

Handling Alert with UIAutomation

允我心安 提交于 2019-12-18 12:57:10
问题 I'm trying to test the presence of an UIAlertView with UIAutomation but my handler never gets called. At the beginning of my javascript i write : UIATarget.onAlert = function onAlert(alert) { UIALogger.logMessage("alertShown"); return false; } As i understand it, as soon as i specify my onAlert function, it should get called when an alertView appears during my tests. So i run a test that shows an alertView, here is the code that shows the alert : UIAlertView *alertView = [[UIAlertView alloc]

UIAutomation's dragInsideWithOptions has no effect on iOS7 simulator

混江龙づ霸主 提交于 2019-12-17 18:43:24
问题 Since I use Xcode 5 and the new iOS 7 simulator to run UIAutomation tests with Instruments, dragInsideWithOptions and dragFromToForDuration functions have simply no effect. (The same tests worked fine with iOS 6.1 simulator.) Is this a known bug, or the usability of this functions has changed? Is there anyone who could use this function with iOS 7 simulator on iPad? 回答1: Same issue here. In addition to dragInsideWithOptions not working, dragFromToForDuration and flickFromTo aren't working

How can i automate 'Settings' app in real iOS devices?

对着背影说爱祢 提交于 2019-12-13 15:57:05
问题 I tried with Appium, UI Automation and Monkey Talk to automate native app automation for real iOS device. Mentioned tools are not supporting real iOS native app automation. Is there a (freeware) tool that automates native apps of real iOS devices? 回答1: You can try the following in your Terminal: instruments -v -w YOUR_DEVICE_ID -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate

Can't find an element on a webview page of an iOS native app using Appium

女生的网名这么多〃 提交于 2019-12-13 04:51:46
问题 I have a native app which opens few web-view pages. I'm running appium on the app to do some automation test on a web-view page that I need to scroll down to find the username and password fields. I tried all the suggestion I can find online, and it doesn't work. Can anyone help? I'm running: Appium v1.3.5 iOS 8.1 Here is my code: // switch to webview Thread.sleep(6000); final Set<String> contextNames = driver.getContextHandles(); for (final String contextName : contextNames) { System.out