appium

How to install and run appium in linux?

会有一股神秘感。 提交于 2020-01-03 06:20:00
问题 I want to do UI automation for opening an url in a real android device. For that I want to install and run appium on my linux system, please guide me how to do? Also suggest me Is there anyway to open an url in chrome browser using eclipse?? 回答1: Install appium on Linux 18.04 If you have node.js installed you can try : sudo npm install -g appium --unsafe-perm=true --allow-root it worked for me. 回答2: I guess all the information you need to run Appium in Linux is in this here: http://appium.io

How to hide keyboard without closing the dialog box using Appium for IOS?

随声附和 提交于 2020-01-03 04:56:19
问题 I have a dialog box that appears and while closing keyboard with hideKeyboard(); all the form is closed and i get back to the home page so that i can't continue the scenario for filling other data. Here the screen : 回答1: Just use UIScrollView in your dialog box, and set scroll view class TPKAScrollViewController. Download class 回答2: You can fill up the fields first using driver.sendkey() then tap on keyboard next button to switch the driver to the next field untill the last field. in last

Appium - Java, How to automate swipe in android?

回眸只為那壹抹淺笑 提交于 2020-01-02 23:14:17
问题 Trying to automate android app using appium, when entered the below code for swipe giving ---- TouchAction io.appium.java_client.TouchAction.press(WebElement el) @Deprecated TouchAction ac = new TouchAction(driver); ac.press(436,652).moveTo(-311,-14).release().perform(); What can be used to swipe? 回答1: The use of coordinates or wait times has been deprecated. You're now supposed to use ActionOptions. In the case of points, they're called PointOptions. 回答2: TouchAction works for me when giving

android自动化测试--appium运行的坑问题及解决方法

淺唱寂寞╮ 提交于 2020-01-02 18:21:47
问题 1. error: Failed to start an Appium session, err was: Error: Requested a new session but one was in progress 之前的会话没有关闭,然后你又运行了测试实例,也没有设置覆盖. 解决: 1. 重新停止appium服务,开启Appium服务 2. 在Genarel Setting那里设置覆盖Session,重启Appium 测试结束在AfterClass加driver.quit() 2. error: Failed to start an Appium session, err was: Error: Command failed: C:\Windows\system32\cmd.exe /s /c “D:\android-sdk-windows\platform-tools\adb.exe -s adb server version (32) doesn’t match this client (36); killing… wait-for-device” error: could not install smartsocket listener: cannot bind to 127.0.0.1:5037: 没有链接上手机或者模拟器,请确认已经连接成功,重新链接 3.

Sample Xamarin App Crashes on iPhone Simulator

ⅰ亾dé卋堺 提交于 2020-01-02 07:16:11
问题 I have the following issue. I downloaded this sample project. I develop primarily on Windows 10 however for the iOS part I purchased a VM from macinthecloud.com I have a real iPhone device however since we use VM I cannot connect it, or it is too complicated/expensive. My goal was to create ipa/zip file which I can later use for UI tests through Appium. I purchased Apple Developer Account and was able to create an ipa file. It is installed on the simulator however if you try to run it, it

Finding elements by xpath in Appium using XCUITEST driver

假如想象 提交于 2020-01-01 18:40:10
问题 The task of updating an automation framework has fallen upon me. I'm new to iOS testing so I'm having trouble with the new XCUITEST driver in Appium-1.6.0-beta1. I have the driver up and running, but the majority of elements are located using xpaths in the framework (not at all ideal I know) the majority of elements do not have labels, names, or accessibility tags. Thus :name locators are ruled out for 90% of elements at the moment. The xpaths seem to be catering to the old apple framework

Finding elements by xpath in Appium using XCUITEST driver

浪子不回头ぞ 提交于 2020-01-01 18:38:16
问题 The task of updating an automation framework has fallen upon me. I'm new to iOS testing so I'm having trouble with the new XCUITEST driver in Appium-1.6.0-beta1. I have the driver up and running, but the majority of elements are located using xpaths in the framework (not at all ideal I know) the majority of elements do not have labels, names, or accessibility tags. Thus :name locators are ruled out for 90% of elements at the moment. The xpaths seem to be catering to the old apple framework

Can you use Protractor and Appium together to test hybrid apps?

允我心安 提交于 2020-01-01 14:56:11
问题 Here is my scenario. I have a website which is built on top of Angular JS. I am able to automate the website using protractor. However there are certain actions which when performed on website are reflected in Android and IOS devices. Here's what I want to achieve. Run my tests on website like I normally do but I want to fire commands to test the android and ios app also /* For eg: 1. Change password on website using protractor 2. Launch android app and check if the password has been changed

Failed to use Appium + Android Studio 3.0 + Java 8

旧街凉风 提交于 2020-01-01 10:57:52
问题 I am trying to use appium java client for my Android UI test. However, I Cannot make it run. Here is my build.gradle and my error message. apply plugin: 'com.android.application' android { compileSdkVersion 26 defaultConfig { applicationId "com.example.wpjtest2" minSdkVersion 26 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile(

How to start the Appium server from command prompt in MAC machine?

末鹿安然 提交于 2020-01-01 09:03:19
问题 I am automating ios native mobile application using appium. Until now I was launching the server from the Appium GUI by clicking on the Launch button. Now I want to start the server from a command prompt. I was able to do the same in Windows machine by following the below steps: Launch Node.js command prompt Navigate till the Appium bin folder Use the command node appium I got blocked on how to start the Node.js command prompt on a Mac. Can you pleases tell me how I can start the Appium