appium-ios

How to use “if” operator for Appium tests

不问归期 提交于 2019-12-10 22:47:50
问题 I need to check if button with title "title_I_need" exist. And if exist to press it if not press another one. All this stuff in javaScript. What I did I recorded in Appium.App test and added verification if button exist. As I'm not familiar with JavaScript to much I started with Objective-C. But as a result it always clicks title_I_need button but my expectation is else branch with other_title button. Can I do such check with Appium? If yes, How can I do this with JavaScript (node.js)?

Double tap in IOS Simulator Not working

我与影子孤独终老i 提交于 2019-12-10 22:07:04
问题 I am trying to double tap an element in IOS Simulator using appium but unable to do so. Methods tried: action.tap(x=xx, y=yy, count=1).release().perform() 2 times in a row,but it seems there is a 2 second gap which in real world would not be a double tap element.click same problem as above action.press(x=xx, y=yy).wait(500).release().perform().press(x=0, y=0).wait(500).perform() no result action.tap(x=xx, y=yy, count=2).release().perform() no result. Is there any thing else i can try or any

Appium error Xcode couldn't find a provisioning profile matching 'com.facebook.WebDriverAgentRunner'

家住魔仙堡 提交于 2019-12-10 19:54:36
问题 I have problem executing automation on real iOS device system configuration: appium 1.6.0 device iPhone 5c (ios 10.1) xCode 8.2 the exception is: [Xcode] Testing failed: No profiles for 'com.facebook.WebDriverAgentRunner' were found: Xcode couldn't find a provisioning profile matching 'com.facebook.WebDriverAgentRunner'. Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.1' ** TEST FAILED ** The following build commands failed: Check dependencies (1 failure)

How to download Appium Desktop in Ubuntu 16

吃可爱长大的小学妹 提交于 2019-12-08 20:02:46
I am trying to download Appium Desktop in Ubuntu 16 (I've just been using the terminal to run it so far). I understand that for Ubuntu, I must download the source code release they have on git (Source Code tar.gz), as apposed to their .exe (windows) or .dmg (mac) releases. After downloading it and un-tarring it, I do not know how to "install" it. I tried reading the README.md, but cannot find the instruction. How to do this? Many thanks in advance 1.2.0-beta.2 offers an AppImage for Linux - https://github.com/appium/appium-desktop/releases/ Download it, run chmod a+x on it, and then ./AppImage

iOS Vertical Swipe is performed as Horizontal Swipe in Appium 1.7.2

我是研究僧i 提交于 2019-12-08 11:29:46
问题 I am using the below code to swipe vertically in my iOS real device automation project, but during execution it is actually performing horizontal swipe. Dimension size = driver.manage().window().getSize(); int starty = (int) (size.height * 0.80); int endy = (int) (size.height * 0.20); int startx = size.width / 2; driver.swipe(startx, starty, startx, endy, 2000); Can anyone please let me know if I have done anything wrong? Xcode version: 8.3.2 iOS version: 10.2 Appium Version: 1.7.2 回答1:

How to download Appium Desktop in Ubuntu 16

只谈情不闲聊 提交于 2019-12-08 06:13:14
问题 I am trying to download Appium Desktop in Ubuntu 16 (I've just been using the terminal to run it so far). I understand that for Ubuntu, I must download the source code release they have on git (Source Code tar.gz), as apposed to their .exe (windows) or .dmg (mac) releases. After downloading it and un-tarring it, I do not know how to "install" it. I tried reading the README.md, but cannot find the instruction. How to do this? Many thanks in advance 回答1: 1.2.0-beta.2 offers an AppImage for

The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file

爷,独闯天下 提交于 2019-12-07 22:56:44
问题 I have installed Appium 1.6.4 on Mac using Terminal. Also I can able to inspect iPhone WebElements using Safari Browser in MAC. But I need to inspect the keyboard elements and date picker elements on iPhone real device. For this, I have again installed Appium-desktop 1.0.2 beta2 version. When I launch the Appium desktop(GUI) and run the selenium code. It throws the below error. XCUITest] Log file for xcodebuild test: /Users/msubramaniam/Library/Developer/Xcode/DerivedData/WebDriverAgent

While using appium how can we change device orientation to landscape mode?

Deadly 提交于 2019-12-07 18:45:35
问题 While using appium to test mobile application coded in Angular JS with protractor how can we change simulator orientation to landscape mode? I have added : 'deviceorientation': 'landscape', in config.js file. But it didn't change when i run it. 回答1: I solve it with uppercase in capabilities in the config file : 'orientation': 'LANDSCAPE' also with this option it is working : 'deviceorientation': 'LANDSCAPE' 回答2: Using server capabilities : orientation - ( Sim/Emu-only ) start in a certain

Sample Xamarin App Crashes on iPhone Simulator

心已入冬 提交于 2019-12-06 03:24:12
I have the following issue. I downloaded this sample project. I develop primarily on Windows 10 however for the iOS part I purchased a VM from macinthecloud.com I have a real iPhone device however since we use VM I cannot connect it, or it is too complicated/expensive. My goal was to create ipa/zip file which I can later use for UI tests through Appium. I purchased Apple Developer Account and was able to create an ipa file. It is installed on the simulator however if you try to run it, it immediately crashes. I read everything I could find, some people suggest that probably the build

Is it now possible to Automate an App Store App using Appium

别等时光非礼了梦想. 提交于 2019-12-05 22:08:39
Historically, it was not possible to automate iOS app store apps using Appium (e.g. due to the Distribution Certificate used on all app store apps meaning you couldn't access the app via Appium). Is this now possible in mid-2018 and if so does anyone know how to set it up? You can not Automate an Appstore app using Appium. To do automation testing on a ios app it should be signed with development certificate. You can launch almost any iOS system app if you know it's bundle identifier. I use ruby: def launch_app(bundle_id) @driver.execute_script('mobile: launchApp',{'bundleId': "#{bundle_id}"})