appium-android

Appium server not detecting the device connected through wifi

隐身守侯 提交于 2019-12-13 04:36:14
问题 did adb tcpip 5555 and adb connect ipaddress . The adb devices show the device. But when i run the appium server, its showing no android device connected. The appium python code is desired_caps = {} desired_caps['platformName'] = 'Android' desired_caps['deviceName'] = 'Android' desired_caps['automationName'] = 'uiautomator2' desired_caps['udid'] = 'xx.xx.xx.xx:5555' desired_caps['platformVersion'] = '6.0.1' desired_caps['appPackage'] = 'PackageName' desired_caps['appActivity'] = 'activityName

DesiredCapabilities for Selenium native android application obsolete

∥☆過路亽.° 提交于 2019-12-12 13:26:45
问题 I am trying to set up a selenium framework to test a application on an android emulator. However I keep getting a warning that DesiredCapabilities is obsolete. I cant find any information on this apart from that relation to browsers. But in my framework I am trying to test a native application. Code: [TestMethod] public void Test_Open_Mobile_App() { DesiredCapabilities cap = new DesiredCapabilities(); //set the emulator cap.SetCapability("platformVersion", "8.1"); cap.SetCapability(

How to tap on a element which is focused in appium. Unable to select value of a dropdown in appium

爷,独闯天下 提交于 2019-12-12 04:38:52
问题 I am facing an issue where the element of dropdown value is not showing in uiautomatorviewer. While I have check the XML DOM by getPageSource of the screen and there also no value is been exposed of the results showing on mobile app screen The XML snippet is as below:- <android.widget.FrameLayout index="0" text="" class="android.widget.FrameLayout" package="com.demo.pass" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false"

My Android Studio upgraded to 3.2.1 and when i build i am getting errors

99封情书 提交于 2019-12-11 15:44:45
问题 I am automating mobile apps using Appium on Android studio and recently my android studio upgraded to 3.2.1 now I can not build my project. I am getting the below error, I have tried all sort of searching the error with no luck. Please help .Thank you Error below Error: Program type already present: org.openqa.selenium.WebDriver 来源: https://stackoverflow.com/questions/52988337/my-android-studio-upgraded-to-3-2-1-and-when-i-build-i-am-getting-errors

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

Execution failed for task ':app:transformClassesWithMultidexlistForDebug

心已入冬 提交于 2019-12-11 06:48:32
问题 I failed to ./gradlew assembleDebug of my appium project. Following is my app build.gradle file apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion "26.0.2" defaultConfig { applicationId "com.example.keya.f8sampleproject" minSdkVersion 15 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" multiDexEnabled true } buildTypes { release { minifyEnabled false proguardFiles

how to stop appium server through command line?

旧巷老猫 提交于 2019-12-11 01:29:06
问题 The command I'm using to start the Appium server: node appium --address 127.0.0.1 --port 4723 --session-override --no-reset --platform-name Android --platform-version 23 --automation-name Appium How would I stop the server through command line? 回答1: Ctrl + c or Run ps -A | grep appium Note the process ID Run kill [process ID] If you're looking to do this programmatically, see http://discuss.appium.io/t/launching-and-stopping-appium-server-programmtically/700. 回答2: If you have a lot of

How to download Appium Desktop in Ubuntu 16

吃可爱长大的小学妹 提交于 2019-12-08 20:02:46
I am trying to download Appium Desktop in Ubuntu 16 (I've just been using the terminal to run it so far). I understand that for Ubuntu, I must download the source code release they have on git (Source Code tar.gz), as apposed to their .exe (windows) or .dmg (mac) releases. After downloading it and un-tarring it, I do not know how to "install" it. I tried reading the README.md, but cannot find the instruction. How to do this? Many thanks in advance 1.2.0-beta.2 offers an AppImage for Linux - https://github.com/appium/appium-desktop/releases/ Download it, run chmod a+x on it, and then ./AppImage

How to scroll up/down in appium-android

你说的曾经没有我的故事 提交于 2019-12-08 11:35:04
问题 I have an app page where I need to scroll vertically to reach an element of the app. I've googled and tried many solutions. Many commands are deprecated and don't support anymore in appium. Also, previous questions/answers in Stack didn't help me. I'm using appium v1.13.0 + Java (IntelliJ). Sometimes I see this error: java.lang.ClassCastException: io.appium.java_client.android.AndroidDriver cannot be cast to org.openqa.selenium.interactions.HasTouchScreen Anyway, my problem isn't just to

Starting session in Appium

倾然丶 夕夏残阳落幕 提交于 2019-12-08 10:52:08
问题 While starting a session in Appium, I am getting below error: Error: An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command 'C:\Users\satyajit.more\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 install 'E:\Appium Setup\MobileInsurance_QA_16062018.apk'' exited with code 1'; Stderr: 'adb: failed to install E:\Appium Setup\MobileInsurance_QA_16062018.apk: Failure [INSTALL_FAILED_NO_MATCHING