appium

Is it possible to automate two apps at the same time in iOS?

半城伤御伤魂 提交于 2019-12-22 18:17:24
问题 We have this scenario: Execute the script in app1, in certain step app1 sends us a SMS with a URL, app1 is expecting a validation code in a textfield We have to open SMS app to verify if SMS exists, this SMS has a URL and when we click on it, it sends us to app1 again but automatically the validation code is written in the textfield. then, continue with the script. is it possible to do this? what do we need to make it? Thanks. 回答1: Yes, As per your scenario you have to launch the messages

Error : Target failed to run: Permission to debug com.apple.Preferences was denied

拈花ヽ惹草 提交于 2019-12-22 17:05:46
问题 Run first test on Appium and I got a error in the logs. Appium version 1.4.13 xcode version 7.2 iOS settings with appium: http://screenpresso.com/=nD2Cf. Here is my java code: import io.appium.java_client.AppiumDriver; import io.appium.java_client.MobileElement; import io.appium.java_client.ios.IOSDriver; import io.appium.java_client.remote.MobileCapabilityType; import org.openqa.selenium.WebDriver; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote

appium server 安装与配置流程

旧城冷巷雨未停 提交于 2019-12-22 08:22:38
Appium sever安装和配置: 一.安装 1. 在 Appium官方网站上下载操作系统相应的Appium版本。 https://bitbucket.org/appium/appium.app/downloads/ 2. 我们以 Windows(64位)为例,将下载的 AppiumForWindows.zip 进行解压,点击appium-installer.exe 进行安装。 3. 点击 appium-installer.exe安装,一直next, 选择自己的安装路径,安装后会弹出这个 可以直接关掉,这时软件就已经装好了; 二 . 环境配置: 接下来打开 cmd(win+r),选择存储路径d:;再输入cd D:\AppiumForWindows_1_4_16_1\Appium\node_modules\.bin;输入appium-doctor, 1.运行时提示 ‘node’不是内部或外部的命令,按如下步骤操作: a.设置appium server系统变量,此电脑-属性-高级设置-高级-环境变量-系统变量-新建:变量名:%APPIUM_HOME% 变量值:D:\AppiumForWindows_1_4_16_1\Appium; b.设置path环境变量,值为:%APPIUM_HOME%; c.重新打开cmd命令行,执行appium,可以打开appium应用

How to scroll down to click the element in Android using appium and java?

大兔子大兔子 提交于 2019-12-22 08:11:18
问题 I would like to know how to scroll down to click the element in Android using appium and java? I am having a list of elements inside " android.support.v7.widget.RecyclerView ". Since it has more than 10 elements, we need to swipe the screen to see the below elements. Each element has same id which is " com.osanda.exampleapp/textViewTitle ". But their texts are different like "Apple", "Orange", "Grapes"...... All I need is to scroll and click the relevant element using its text("Apple",

ubuntu18.04搭建appium环境

岁酱吖の 提交于 2019-12-22 00:43:10
ubuntu18.04搭建appium环境 一、安装nodejs和npm # 首先更新源 sudo apt - get update # 执行命令,此方法安装的版本比较老旧 sudo apt - get install nodejs sudo apt - get install npm # 升级nodejs # 清除node缓存 sudo npm cache clean - f # 安装node版本管理工具'n' sudo npm install n - g # 使用版本管理工具安装指定node或者升级到最新node版本 sudo n stable # 查看版本号 node - v npm - v 二、使用npm全局安装appium和appium-doctor npm install - g appium npm install - g appium - doctor # 或者使用 sudo npm install - g cnpm - registry = http : // registry . npm . taobao . org #(安装cnpm是因为安装appium时候的chrome drive 是需要连外网的,这里用cnpm能比较好解决这个问题 用法等同于NPM) sudo cnpm install - g appium #(-g是全局的意思) appium - v #

后台运行进程方法

倾然丶 夕夏残阳落幕 提交于 2019-12-21 23:48:30
后台运行进程方法 # 安装screen sudo apt install screen # 执行命令 screen # 按enter打开新的窗口,输入要执行的命令,比如appium appium # 返回出界面 ctrl + a + d # 查看子界面 screen - ls # 回到子界面 screen –r [ 子页面序号 ] 也可以使用: # 进入文件目录 nohup python3 - u name . py > / dev / null 2 > & 1 & 来源: CSDN 作者: 今夜睡火星 链接: https://blog.csdn.net/Hepburn_li/article/details/103648018

Using selenium and Appium is it possible to change between wifi networks?

瘦欲@ 提交于 2019-12-21 20:59:30
问题 Using: selenium webdriver, rubygems, appium, android and ios devices The app I am testing has a button which becomes enabled only when connected to a specific wireless network. I'd like to create a script which will check if the button is active or not vKioskStatus = element.enabled? puts(vKioskStatus) If it is not active, then I'd like to change wifi networks. Is that possible to automate changing networks on a mobile device? UPDATE I'm receiving the following error when trying to use

I can't make swipe gesture work for me in Appium using Java

眉间皱痕 提交于 2019-12-21 19:43:24
问题 I can't made Swipe action work. I did browsed through the web for a few days and found many similar questions but there is no working answer. Also I have tried TouchAction class, doesn't work as well. I have Appium Version 1.4.13 (Draco) and using Java, TestNG framework. btw I made scrolling work using (you can use the same logic as a pull to refresh) here is code sample. public void scrollUp() { JavascriptExecutor js = (JavascriptExecutor) getDriver(); HashMap<String, String> scrollObject =

Appium+Python3+iOS真机环境搭建

有些话、适合烂在心里 提交于 2019-12-21 19:20:20
前言: Appium 是一个自动化测试开源工具,支持 iOS 平台和 Android 平台上的原生应用,web 应用和混合应用。 本次环境配置相关: macOS:10.13.4 Appium-desktop:1.6.1 Xcode:9.3.1 --- 一、环境配置 1、 安装homebrew: $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install )" 2、 安装 libimobiledevice : $ brew install libimobiledevice --HEAD 3、 安装carthage: $ brew install carthage 4、安装node: $ brew install node 5、安装npm: $ brew install npm 6、安装ios-deploy: $ npm install -g ios-deploy 8、安装xcpretty: $ gem install xcpretty 9、安装appium,appium-doctor 进入 官网 ,下载 Appium-1.6.1.dmg ,安装即可。 当然你可以使用命令:npm install -g appium来安装appium

Appium: Android Resource ID: translates to what in their selenium integration?

北城余情 提交于 2019-12-21 17:22:49
问题 So for example I have: wd.findElement.By(name("searchBttn")); the resource-id in the ui xml screen cap is com.aut.android:id/searchBttn and Appium can't find the item. I have tried with ID and Name. Is there something else here i could try is there a direct line for line correlation list somewhere that i am missing? 回答1: I could not find much documentation on this topic. You can refer this link - https://groups.google.com/forum/#!topic/appium-discuss/LcjbXPFX1N0 回答2: You can find an Android