ios-ui-automation

Remove the authorization prompt from command line instruments (Under mavericks)

淺唱寂寞╮ 提交于 2020-01-02 04:29:43
问题 Similar to this question, except that the authorization database changed formats for mavericks and the old solution doesn't work: Is there a way to remove the authorization prompt from command-line instances of Instruments (XCode)? The specific use-case being to get ios-driver working to run automated tests: http://ios-driver.github.io/ios-driver/faq.html The specific prompt is "Instruments wants permission to analyze other processes" I've tried sudo security authorizationdb write system

Code signing certificate error in Appium XCUITest

孤街浪徒 提交于 2020-01-01 03:42:22
问题 I am trying UI automation of IOS 10 using Appium XCUITest. On running script, it tries to build WebDriverAgent and fails at this point. I have added the provisioning profile and added the account in Xcode through the UI but not sure from where does XCUITest take the profiles while running or if we need to provide some information in desired capabilities. info Xcode Testing failed: info Xcode Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the

UI automation with excel

十年热恋 提交于 2019-12-30 07:39:58
问题 I am new to UI Automation. In my current organisation I was tasked with making an automated tool using GUI(Graphics User Interface) screen reading, but it is not working perfectly with other my colleague's machine because of a difference in screen resolution. I watched this link on you-tube to try and understand UI Automation with excel, but I can't find much on this topic anywhere else. Can anyone direct me toward resources on UI Automation? I Would like to know where I can learn it, read

Programmatically turn on/off wifi on real iOS device with UI Automation

孤街醉人 提交于 2019-12-30 04:50:28
问题 I have already read once or twice that turn on/off wifi on a real iOS device (iPad in my case) with a UI Automation script seems not possible. I've also read that you can create a script with the target "Settings" but it seems that it's only for simulators, am I right ? Do you have any ideas or solutions for me ? Regards, 回答1: i was able to do so (just make sure you target application is on foremost state when doing so): var target = UIATarget.localTarget(); target.dragFromToForDuration({x:0

Calabash-ios link error: “_kSecAttrSynchronizableAny”, referenced from: -[LPSSKeychainQuery query] in calabash(LPSSKeychainQuery.o)

佐手、 提交于 2019-12-25 03:55:07
问题 I got a link error when trying to run a ..-cal target of calabash-ios project. The error is: `Ld /Users/balaiyan/Library/Developer/Xcode/DerivedData/delete-fdnlnapawhvvmpgxjbbzoopkiefe/Build/Products/Debug-iphonesimulator/delete-cal.app/delete-cal normal i386 cd /Users/balaiyan/dev/automation/apps/delete setenv IPHONEOS_DEPLOYMENT_TARGET 6.1 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer

selenium grid is not starting more than 5 sessions

[亡魂溺海] 提交于 2019-12-24 20:03:04
问题 I have done grid setup as follows: Hub: iMAC Started with: java -jar Downloads/selenium-server-standalone-2.52.0.jar -port 4444 -role hub Node1: Win8 system Started with: java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-2.52.0.jar -role webdriver -hub http://192.168.1.103:4444/grid/register -nodeConfig Node1.json Node2: Win10 system Started with: java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-2.52.0.jar -role webdriver -hub http:

iOS UI Automation Testing in Travis CI

╄→гoц情女王★ 提交于 2019-12-24 15:33:23
问题 I have one small project which I want to test with travis (just to have that green batch on Github) which is https://github.com/SocialbitGmbH/SwiftAddressBook . It requires access to ABAddressbook which can only be given by dismissing an alert when asking for access. So I´m trying to run an UI Automation script to achieve this, which succeeds locally but fails on the remote server with the message Instruments Usage Error : Specified target process is invalid: Example/DerivedData

iOS uiautomator application names

我只是一个虾纸丫 提交于 2019-12-24 00:54:06
问题 I am trying to launch and test iOS app's with Xcode instruments. But I do not have every app name for the testing. For example, I know: SETTINGS == Preferences.app SAFARI == MobileSafari.app What is app the name for Calendar , Mail , Photos , Messages , Camera , ...? 回答1: 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 来源: https://stackoverflow.com

Simulating pressing the Home button in Xcode 7 UI Automation

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 09:43:20
问题 I've got it down to: XCUIDevice.pressButton(noideawhatgoeshere) I've tried XCUIDeviceButtonHome, home, Home, 1 How do I simulate pressing the home button in Xcode on iOS? 回答1: You need to get the device instance first. So to simulate pressing the home button: XCUIDevice.sharedDevice().pressButton(XCUIDeviceButton.Home) should work (it does for me on a physical device) Thanks! Mazen Swift 5 Version: XCUIDevice.shared.press(XCUIDevice.Button.home) Also, verified it works in the simulator, at

Unable to tap (x,y) coordinate in landscape mode

拜拜、爱过 提交于 2019-12-21 20:28:36
问题 In Xcode 8 / Swift 3, using the coordinate(withNormalizedOffset: CGVector) function to interact with an XCUIElement appears to work only in portrait mode. To test this functionality, I created a single screen project with a button centered in the view. I then ran the following UI test: func testExample() { XCUIDevice.shared().orientation = .portrait let window = XCUIApplication().windows.element(boundBy: 0) let centerPoint = window.coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: 0.5))