appium-ios

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

喜夏-厌秋 提交于 2020-01-13 14:54:52
问题 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? 回答1: You can not Automate an Appstore app using Appium. To do automation testing on a ios app it should be signed with development certificate. 回答2: You can launch almost any iOS system app if you know it's bundle

It is impossible to create a new session because 'createSession' which takes HttpClient,

↘锁芯ラ 提交于 2020-01-07 09:19:09
问题 org.openqa.selenium.WebDriverException: It is impossible to create a new session because 'createSession' which takes HttpClient, InputStream and long was not found or it is not accessible Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T14:04:26.12Z' I am getting this error randomly i want to know the route cause for this issue in IOS 回答1: There are multiple reason behind this issue. There are multiple ways to resolve this issues, depending upon, where these issues are

What Are Some Best Practices When Asserting iOS Elements Are Displayed?

让人想犯罪 __ 提交于 2020-01-05 07:05:17
问题 I'm trying to write my first UI Automation test for an iOS app with Appium/Python. I find that when I list 10 assertions like the one below, I get very inconsistent results ... sometimes it passes, but it usually fails the third assertion, sometimes it fails the eighth. assert driver.find_element_by_name('Settings').is_displayed() I've also tried to use waits: driver.wait_for_element_by_name_to_display('Settings') assert driver.find_element_by_name('Settings').is_displayed() Does anyone know

What Are Some Best Practices When Asserting iOS Elements Are Displayed?

烂漫一生 提交于 2020-01-05 07:04:38
问题 I'm trying to write my first UI Automation test for an iOS app with Appium/Python. I find that when I list 10 assertions like the one below, I get very inconsistent results ... sometimes it passes, but it usually fails the third assertion, sometimes it fails the eighth. assert driver.find_element_by_name('Settings').is_displayed() I've also tried to use waits: driver.wait_for_element_by_name_to_display('Settings') assert driver.find_element_by_name('Settings').is_displayed() Does anyone know

How to hide keyboard without closing the dialog box using Appium for IOS?

随声附和 提交于 2020-01-03 04:56:19
问题 I have a dialog box that appears and while closing keyboard with hideKeyboard(); all the form is closed and i get back to the home page so that i can't continue the scenario for filling other data. Here the screen : 回答1: Just use UIScrollView in your dialog box, and set scroll view class TPKAScrollViewController. Download class 回答2: You can fill up the fields first using driver.sendkey() then tap on keyboard next button to switch the driver to the next field untill the last field. in last

Sample Xamarin App Crashes on iPhone Simulator

ⅰ亾dé卋堺 提交于 2020-01-02 07:16:11
问题 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

Finding elements by xpath in Appium using XCUITEST driver

假如想象 提交于 2020-01-01 18:40:10
问题 The task of updating an automation framework has fallen upon me. I'm new to iOS testing so I'm having trouble with the new XCUITEST driver in Appium-1.6.0-beta1. I have the driver up and running, but the majority of elements are located using xpaths in the framework (not at all ideal I know) the majority of elements do not have labels, names, or accessibility tags. Thus :name locators are ruled out for 90% of elements at the moment. The xpaths seem to be catering to the old apple framework

Finding elements by xpath in Appium using XCUITEST driver

浪子不回头ぞ 提交于 2020-01-01 18:38:16
问题 The task of updating an automation framework has fallen upon me. I'm new to iOS testing so I'm having trouble with the new XCUITEST driver in Appium-1.6.0-beta1. I have the driver up and running, but the majority of elements are located using xpaths in the framework (not at all ideal I know) the majority of elements do not have labels, names, or accessibility tags. Thus :name locators are ruled out for 90% of elements at the moment. The xpaths seem to be catering to the old apple framework

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

Toggle Software Keyboard for entire test suite in appium python

萝らか妹 提交于 2019-12-25 11:52:49
问题 Currently I am writing iOS tests using Python Appium and would like to completely hide the software keyboard which pops up whenever you have to type something. I am already aware of driver.hide_keyboard() function but it's a pain to include it everywhere in tests. I was going over the Appium Desired Capabilites but couldn't find anything that will disable the software keyboard. Appreciate if anyone can help me here? 回答1: To disable soft keyboard in iOS simulator do this: Simulator Menu >