appium

I want to swipe to find/locate an element that is present down in an IOS App

丶灬走出姿态 提交于 2019-12-11 15:28:25
问题 I have an Ios app and I'm doing UI automation of it. I have an element/button that is one scroll down the page. I have seen that appium has depreciated most of the functions like scroll, moveto and swipe. since all of the help is related to that. I am using Appium Version 1.13.0 (1.13.0.20190505.5) 回答1: Use that method instead of appium methods: JavascriptExecutor js = (JavascriptExecutor) driver; HashMap<String, String> scrollObject = new HashMap<>(); scrollObject.put("direction", "down");

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

ClassCastException on using Appium TouchActions

孤者浪人 提交于 2019-12-11 15:16:45
问题 Im trying to perform tap action using Appium TouchActions class, but it throws exceptions. Please provide your solution. import io.appium.java_client.android.AndroidDriver; import org.openqa.selenium.interactions.touch.TouchActions; =========================================================== WebDriver driver = new AndroidDriver(new URL("http://0.0.0.0:4723/wd/hub"), capabilities()); Thread.sleep(5000); String title = driver.findElement(By.id("app_title")).getText(); System.out.println("TITLE:

How Do I Open a browser on Emulator using Robot Framework and Appium

这一生的挚爱 提交于 2019-12-11 14:33:27
问题 I am trying to configure Robot Framework to open Chrome Browser in an android emulator. I have this code to do that: *** Settings *** Suite Setup Set Library Search Order SeleniumLibrary Test Setup Open page Test Teardown Close Page Library SeleniumLibrary Library Collections Library requests Library AppiumLibrary *** Test Cases *** Test_case_sample Go To https://www.google.com Sleep 10s *** Keywords *** Open Page ${desired_capabilities}= Create Dictionary Set to Dictionary ${desired

Its possible to connect remote appium server?

僤鯓⒐⒋嵵緔 提交于 2019-12-11 14:06:29
问题 I'm trying to run appium in remote server and running test cases connecting android device in local system and i'm getting error could not find a connected android device.. 回答1: If you initialize your driver with remote address you should not have any problem: Python code driver = webdriver.Remote('http://192.168.1.50:4723/wd/hub', desired_caps) Java code driver = new AndroidDriver<WebElement>(new URL("http://192.168.1.50:4723/wd/hub"), capabilities); C# code driver = new AndroidDriver

org.openqa.selenium.json.JsonOutput.write(Ljava/lang/Object;)Lorg/openqa/selenium/json/JsonOutput; due to java.io.IOException: Incomplete document

你说的曾经没有我的故事 提交于 2019-12-11 13:42:24
问题 I'm creating a new test framework from scratch using Spring Boot 2 and Appium. To write the tests I'm using JUnit which is already included in Spring Boot's spring-boot-starter-test POM along with many others. I added Appium to my POM and it now looks like this: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4

Appium: isDisplayed() vs findElements(by).size

荒凉一梦 提交于 2019-12-11 13:19:01
问题 Traditionally I always checked for the presence of objects in appium using: int count = driver.findElements(by).size(); if (count == 0) { Logger.LogMessage("ElementDoesNotExist: " + by, Priority.Medium); return true; } else { Logger.LogMessage("ElementDoesExist: " + by, Priority.Medium); return false; } However, I see there is now a isDisplayed() method: driver.findElement(by).isDisplayed() Anyone know which is best to use and why? Thanks, Charlie 回答1: This is mostly Selenium question. When

Appium - xcode-select threw an error: command not found

社会主义新天地 提交于 2019-12-11 12:11:48
问题 I am attempting to use Appium to test my app on the ios simulator on my mac OS X 10.9.3. I can start the server fine but when I attempt to run my test I receive the following error: info: [debug] Error: xcode-select threw an error at /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/helpers.js:499:10 at ChildProcess.exithandler (child_process.js:652:7) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:756:16) at Process.ChildProcess._handle.onexit (child

Appium on real iOS devices

筅森魡賤 提交于 2019-12-11 12:03:34
问题 I am using following desired capabilities with Appium and iPad 2 DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability("udid", "ea56e8ae8e5f5235c16d5315f4cb34d81be55917"); capabilities.setCapability("platformName", "iOS"); capabilities.setCapability("deviceName", "iPad 2"); capabilities.setCapability("platformVersion", "8.3"); capabilities.setCapability("app", "/Users/Aress-QA/Desktop/PSt-forQA.ipa"); capabilities.setCapability("platformName", "iOS"); wd =

Appium iOS real device - issue with ideviceinstaller

谁说我不能喝 提交于 2019-12-11 11:13:05
问题 I am running the appium test script on iOS real device., where I am getting the ideviceinstaller error. I have installed ideviceinstaller manually using "brew install --HEAD ideviceinstaller" still getting the same error. error: Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller -u 0e0615c84ad9c68c7b0f42d2651541c3f38fd4b9 -l dyld: Library not loaded: /usr/local/lib/libplist.3.dylib Referenced from: /usr/local/bin/ideviceinstaller Reason: image not