appium

How can i automate 'Settings' app in real iOS devices?

对着背影说爱祢 提交于 2019-12-13 15:57:05
问题 I tried with Appium, UI Automation and Monkey Talk to automate native app automation for real iOS device. Mentioned tools are not supporting real iOS native app automation. Is there a (freeware) tool that automates native apps of real iOS devices? 回答1: You can try the following in your Terminal: instruments -v -w YOUR_DEVICE_ID -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate

Select one option from many options in drop down list in Eclipse using java when run code for the android device

删除回忆录丶 提交于 2019-12-13 15:29:16
问题 I want to select the one option from many options in dropdown menu in eclipse using java and run code for the android device. code public class Selendroid { private static AndroidDriver driver; public static void main(String[] args) throws MalformedURLException, InterruptedException { // TODO Auto-generated method stub // Create object of DesiredCapabilities class DesiredCapabilities capabilities = new DesiredCapabilities(); // Optional capabilities.setCapability(CapabilityType.BROWSER_NAME,

ADB keycodes fail to search using Android keyboard Search key vs Enter Key

断了今生、忘了曾经 提交于 2019-12-13 13:45:21
问题 Why could a particular text field/search bar fail to trigger search when sending the Search or Enter keycodes? On the Android Keyboard, is the Search key the Enter key with a metastate? Or is it a completely different key? What is the metastate of the Search Key? Or is it its own keycode? Does the Android key code KEYCODE_ENTER press the search key? Or does KEYCODE_SEARCH ? I had the same problem as this fellow and came up with a fix (below): Unable to click the Search(magnifying glass)

how to set up a Appium UI test maven project to work with Gitlab CI to test Android App?

纵饮孤独 提交于 2019-12-13 12:29:05
问题 I am an intern now, new to automation test.My goal here is to help my company set up CI for client side. Right now I have a maven project contains several tests using Appium java-client lib, under Eclipse IDE, which could run the UI tests locally. My goal next step is to hook my tests with the gitlab repo(which is already there, created by the android developers), but I am stuck here. Could somebody help me out? Please try to be specific: how should I set up the .gitlab.yaml? can we just have

Getting Error Of Connectivity In Appium Server

谁说胖子不能爱 提交于 2019-12-13 09:50:38
问题 info: [37m-->[39m [37mPOST[39m [37m/wd/hub/session[39m [90m{"desiredCapabilities":{"app":"D:\My_ALOHA\Appium\TestProject\apps\demo1.apk","platform":"VISTA","platformVersion":"4.4.3","platformName":"Android","deviceName":"AppiumDemo123","browserName":"","app-package":"com.livestrong.calorietracker","app-activity":"com.livestrong.calorietracker.activities.WelcomeActivity","version":"4.4.2"}}[39m info: [debug] The following desired capabilities were provided, but not recognized by appium. They

Appium Test Android

江枫思渺然 提交于 2019-12-13 09:47:03
问题 Automating Test using Appium I am Following This Two Tutorials https://www.youtube.com/watch?v=n8QqYAXKWEU https://www.youtube.com/watch?v=AlBrQ_-phsQ org.gradle.execution.MultipleBuildFailures: Build completed with 1 failures. at org.gradle.initialization.DefaultGradleLauncher$ExecuteTasks.run(DefaultGradleLauncher.java:358) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300) at org.gradle.internal

Unable to Run my code on device

早过忘川 提交于 2019-12-13 09:24:45
问题 package android; import java.net.MalformedURLException; import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.remote.CapabilityType; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.RemoteWebDriver; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; public class SimpleAndroidCalcTest { WebDriver driver; @BeforeTest public void

Scroll text area with “Terms and Conditions” on Hybrid App with Appium

萝らか妹 提交于 2019-12-13 08:22:32
问题 I have issue with scrolling " Terms and Conditions " text area to the bottom . The app is hybrid, I gave contex to know that the app is hybrid and its working driver.context("WEBVIEW_********"); , also the xpath to the text area is /html/body/div[2]/ion-nav-view/div/div/div[2]/textarea but I cant find a solution to scroll the text area to the last line with " All rights reserved " , so the button " I agree " to be available. 回答1: You can swipe in an app with appium using the press method.

What are the Steps to start appium servers for multiple devices through command prompt

二次信任 提交于 2019-12-13 08:09:29
问题 I have written one script which ran on single device. Now, I want to run the same script on multiple devices, by googling i come to know that we can do by creating multiple instances of appium server. How to create multiple instances of appium server through command line? Can anyone provide steps to start with? Please suggest. BR, Sagar Varpe 回答1: Just open multiple terminals and change the port and bootstrap port on each terminal. Like this: Terminal 1 - appium -p 4722 -bp 5422 Terminal 2 -

Appium throws “chrome not reachable” sporadically when switch a context

十年热恋 提交于 2019-12-13 07:05:01
问题 I'm using appium 1.4.16 and smartphone with Android 6. Running this code: public boolean fluentWaitChangeContext(String context, int timeout) { Wait wait = new FluentWait(driver) .withTimeout(timeout, TimeUnit.SECONDS) .pollingEvery(5, TimeUnit.SECONDS) .ignoring(NoSuchElementException.class, NoSuchContextException.class); boolean isFound = false; try { wait.until(input -> { if (driver.getContextHandles().size() == 2) { driver.context(context); // driver.context(driver.getContextHandles()