appium-ios

iOS Automation Appium: How to lock screen for iPhone real device without a duration?

别等时光非礼了梦想. 提交于 2019-12-25 07:46:39
问题 I want to automate the following case: locking my screen of the real device and open the screen again from an APNS - like answer a call from APNS. Therefore I would like to just lock the screen without a certain amount of time, so that I can unlock it by swiping on the push notification. I know there is in AppiumDriver the lockScreen(int seconds) but I just want to implement lockScreen() method. Any of you have an idea how to do that? How I could solve that with Apple script or with Appium

Unable to scroll down till the end of the screen in native ios app using appium

强颜欢笑 提交于 2019-12-25 04:16:02
问题 I'm facing an issue in scrolling down till the end of the screen. As this page is dashboard screen and which is of "UIACollection" I had tried scroolTo, ScroolTOExact methods but it was not working and finally tried with IOSAutomation by using xcode xpath Now I'm able to scroll but not totally (means not till end of the screen). I have a string at the bottom of the screen where I need to do assertion on it but I'm unable to do due to this issue IOSAutomation xpath code driver.findElement

How does a UI app inspectors (like the one in Appium) work?

蓝咒 提交于 2019-12-24 23:04:13
问题 Appium has a way to inspect the view hierarchy of an app using an inspector. I am interested in building one myself. I know the overview answer of: it uses some webdriver to accomplish this. But how? It puzzles me that a separate iOS app can some how communicate to another app, and show even its screen. How does it work under the hood? or how does the iOS app communicate to the UI inspector to send its screen shots and hierarchy? 回答1: It puzzles me that a separate iOS app can some how

How to use Appium to automate a 3rd party ios app on real device

本小妞迷上赌 提交于 2019-12-20 03:43:13
问题 I'm trying to automate a 3rd party ios app (YouTube, for example) on a real iPhone using Appium . I haven't been able to find a single guide/tutorial to achieve this, but from the information I gathered, it seems to involve the following steps: Extract the pre-installed app and decrypted it (using a tool such as Clutch) Resign it with my development cert I know I omitted lots of details in each step, but my question is, has anyone done this successfully and can confirm this is actually

Appium iOS can't inspect notification layer

↘锁芯ラ 提交于 2019-12-13 04:19:54
问题 Im using Appium to test my notifications in my iOS app. Im sending with another device a notification while the iOS app is in BG. Then I swipe down using : ((IOSDriver) wd).swipe(500,0,500,1000,1000); The above works, the screen get scrolled down and I can physically see the notification. The issue is that the appium still inspects the screen below. I checked appium inspector and it verified that it doesn't recognize nothing but the elemnts of the layer below the notifications one. Any

Error: Unable to resolve path to module `js/http`, `js/tree` etc on running `./Scripts/bootstrap.sh`

一世执手 提交于 2019-12-12 05:27:44
问题 Getting error while running command ./Scripts/bootstrap.sh under directory: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent EggCloudMachine-1:WebDriverAgent admin$ ./Scripts/bootstrap.sh Fetching dependencies Building Inspector Creating bundle directory... Fetching Inspector dependencies... npm WARN web-driver-inspector@1.0.0 No repository field. up to date in 5.731s Validating Inspector No errors! /usr/local/lib/node_modules/appium/node_modules/appium

WebDriverException: An unknown server-side error occurred while processing the command. Original error: Removing {appId} failed

北慕城南 提交于 2019-12-12 05:05:48
问题 I was so excited to upgrade to XCode8 trying to run tests with iOS 10 but then found out XCode8 no longer supports automation instruments. So I accepted the fact that I need to wait for Appium’s official upgrade to run tests on iOS10 . But what happened after I downgraded to Xcode 7.3.1 really puzzled me. I kept getting this error even on the iOS8/9 devices which were ok before the XCode8 upgrade: "WebDriverException: An unknown server-side error occurred while processing the command.

Change the simulator language

谁说我不能喝 提交于 2019-12-12 03:48:12
问题 I need to test my application against many simulator with different language settings. For this, I set appium desired capabilities in the terminal by running: ➜ appium --language 'fr' in order to set the language of my simulator to "fr". I tried also another method by creating different profiles in my cucumber.yml configuration file. Both methods are crashing my simulator(Please see logs below). Note: I'm using appium v1.5.1 MAC OS 10.11.4 Xcode v7.0.1 cucumber v2.3.3 ruby v2.3.0 Any ideas

iOS simulator taking 2-3 minutes every-time for starting/invoking

心已入冬 提交于 2019-12-11 15:26:59
问题 I have set up appium on mac for iOS automation. It is taking 2-3 minutes everytime to start the simulator. Most of the sections they said it will take time only first time but here it is taking time everytime It was a waste of time to wait so much after every execution. Few links have said to set newCommandTimeout as the capability but that doesn't work. I am using below version appium-desktop-1.2.7-mac Xcode 8.1 Simulator iPhone 7 Plus MacOS Sierra Version 10.12 Any workaround will be

How to enable and use WebView for iOS Automation in Appium

孤者浪人 提交于 2019-12-11 00:43:00
问题 I am trying to automate hybrid app using Appium developed by Ionic2/Angular2/Typescript. When I am trying to identify element I am able to see element in WebView in Appium Inspector but when I try to identify them using script it is throwing error. An element could not be identified using given search parameter. error: Invalid locator strategy: partial link text I am trying to identify elemnet through Xpath, name, linkText but I am not able to do so. I also enable webview in capabilities by