appium

new AppiumDriver<>(new URL(url), capabilities) 报错 java.lang.NoSuchMethodError: com.google.common.base.Throwables.throwIfUnchecked(Ljava/lang/Throwable;)V

半世苍凉 提交于 2019-12-25 23:12:28
2017-10-11 17:37:02.102 INFO c.u.a.r.PrepareDriver:41 - appium server url : http://127.0.0.1:4723/wd/hub java.lang.NoSuchMethodError: com.google.common.base.Throwables.throwIfUnchecked(Ljava/lang/Throwable;)V at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:103) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:641) at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42) at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1) at org.openqa.selenium.remote.RemoteWebDriver

Distributed native test execution over android devices

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 19:47:11
问题 I need to execute a test suite in distributed mode over two android devices . i'm using appium and testng .Any one of you'll able to do so ? 回答1: Here you have a pretty good setup to use in your project: AppiumTestDistribution E.g., you build with Maven, then add dependencies to your project: <dependency> <groupId>com.github.saikrishna321</groupId> <artifactId>AppiumTestDistribution</artifactId> <version>09c4398</version> </dependency> <repositories> <repository> <id>jitpack.io</id> <url

Appium throws “ideviceinstaller” not found when launched through Eclipse - Java

情到浓时终转凉″ 提交于 2019-12-25 16:54:30
问题 I observed a weird behavior for Appium to launch from GUI compared with Eclipse (Java)Using Latest Appium v1.3.7 1) PlainNote.app is built and run from Xcode for my Mobile Device. App is launched on real mobile without any issue. 2) Now, through Appium GUI, I was able to launch the same app by providing bundle id, udid, etc. No issues at all 3) The issue comes now when I'm launching an app from Eclipse. Followed standard set of code (i.e. deisred cap, new iosdriver, etc). Appium is initated

How to upload attachments in browser tests using Appium?

风格不统一 提交于 2019-12-25 15:59:27
问题 I am trying to automate a test case in Chrome where I would like to upload an attachment to an email. I use desiredCaps['browserName'] = 'Chrome'. While clicking attachments in email, it opens the Documents in the phone, but I am unable to detect the elements in the Documents screen. 回答1: Try this.If you are using ruby This basically goes into the directory called screenshots and finds the second picture or the document that is visible inside the directory find_element(id: "screenshots").find

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 >

Error: Could not get the Java version. Is Java installed?

。_饼干妹妹 提交于 2019-12-25 08:45:40
问题 I run Appium server: ➜ ~ appium info: Welcome to Appium v1.3.5 (REV a124a15677e26b33db16e81c4b3b34d9c6b8cac9) info: Appium REST http interface listener started on 0.0.0.0:4723 info: Console LogLevel: debug info: --> POST /wd/hub/session {"desiredCapabilities":{"appPackage":"com.grindrapp.android","appActivity":".activity.SplashActivity","platformVersion":"4.4.2","browserName":"","platformName":"Android","deviceName":"10.0.0.9:5555"}} info: Client User-Agent string: Apache-HttpClient/4.3.4

iOS - Logout from Apple Store / Restore Device Programmatically

一曲冷凌霜 提交于 2019-12-25 08:36:45
问题 I'm automating test cases to run in several devices in parallel. I'm using Appium for this and this works fine. My issue is that I have some test cases that need the device to be logged into specific Apple Store accounts. Also, it is possible that the device might already be logged into another account and I don't have the option to logout manually. My test cases to log into an account if the device has no account attached to it already run well (inside my app I try to do an action that

appium 1.6 sendKeys to EditText Failed

只谈情不闲聊 提交于 2019-12-25 04:58:07
问题 I am writing some java code using java - client of the appium. I successfully enter the page for inputting the text, however, after getting into the page, the input field are not responding. Here is the structure: <?xml version="1.0" encoding="UTF-8"?> <hierarchy rotation="0"> <android.widget.FrameLayout index="0" text="" class="android.widget.FrameLayout" ]" resource-id="" instance="0"> <android.widget.LinearLayout index="0" text="" class="android.widget.LinearLayout" ]" resource-id=""

NoClassDefFound error during Selenium WebDriver - Appium- Android automation?

此生再无相见时 提交于 2019-12-25 04:43:52
问题 I'm just starting out writing out Java tests to automate native Android apps using Appium and JUnit. Getting a NoClassDefFound error even if the required jars are on class path in Eclipse GUI. I've narrowed it down to this line : driver = new RemoteWebDriver(new URL("appium typical server url here"), capabilities); The following jars are in the Java build path in Eclipse under Libraries: java-client-1.5.0.jar , selenium-java-2.42.2.jar , selenium-java-2.42.2-srcs.jar , along with JUnit Here

NoClassDefFound error during Selenium WebDriver - Appium- Android automation?

爱⌒轻易说出口 提交于 2019-12-25 04:43:10
问题 I'm just starting out writing out Java tests to automate native Android apps using Appium and JUnit. Getting a NoClassDefFound error even if the required jars are on class path in Eclipse GUI. I've narrowed it down to this line : driver = new RemoteWebDriver(new URL("appium typical server url here"), capabilities); The following jars are in the Java build path in Eclipse under Libraries: java-client-1.5.0.jar , selenium-java-2.42.2.jar , selenium-java-2.42.2-srcs.jar , along with JUnit Here