appium

How do I wait for an element using the WinAppDriver in UWP?

烂漫一生 提交于 2019-12-23 04:49:17
问题 I'm currently migrating my Coded UI Tests for a UWP app to Appium using the WinAppDriver and I have come across the issue, that I can't wait for an element to show up. There is no way to wait for a element to be "ready" as the Coded UI Test from Microsoft did. In the ClassInitialize method everything works fine (data is entered on the login view) and the login button is clicked. After the click event is triggered the app shows a progress bar until the user is logged in. My problem is that I

Appium unable to find UI-Elements using XPath

▼魔方 西西 提交于 2019-12-23 04:49:16
问题 I need to find UI Elements within my Windows Desktop WPF application using xpath and Appiums xpath-selector . It's working fine for "simple" applications but fails for my target application. My environment is: OS: Windows 10 Target Application: x86 WPF Appium Windows Driver: 4.0.0.6 beta Appium Desktop Application: 1.13.0 Selenium WebDriver: 3.141.0 This is what I am trying: Once I have fired up my target application by the Appium desktop application, its session window tells me the xpath to

How to launch android application on real device

孤街醉人 提交于 2019-12-23 04:29:25
问题 android device is sony xperia Z ,version 4.3. I want to automate native calculator app. The Code : import java.net.MalformedURLException; import java.net.URL; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.remote.CapabilityType; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.RemoteWebDriver; import org.testng.annotations.*; public class Calculator { WebDriver

I got this selenium exception : Method has not yet been implemented while trying to run my tests using java and Appium

这一生的挚爱 提交于 2019-12-23 03:52:13
问题 I got this selenium exception : org.openqa.selenium.WebDriverException : Method has not yet been implemented while trying to run my tests using java and Appium and specially this error appear when i try to use touchAction and Tap() shall i add some jar file into the project or what ? What is the origin of this error ? Here the jars i'm using : Here appium log Thanks for your help. 回答1: download java client 3.4.1 from here and add this to ur build path http://mvnrepository.com/artifact/io

安装APPium

旧时模样 提交于 2019-12-23 03:03:07
刚学习APPium,第一步先进行安装:(已配置好Android环境下) 1、下载APPium,选择版本(https://bitbucket.org/appium/appium.app/downloads/); 2、点击安装,完成之后,配置环境变量Path,把APPium.exe的路径和APPium\node_modules\.bin的路径添加到Path中;(此步非常关键); 3、验证是否安装成功:启动cmd命令,输入Appium命令,或者输入Appium-doctor命令(提示All Checks were successful,表示安装成功),如下图片: 来源: https://www.cnblogs.com/qiuzhiwuzhe/p/5815256.html

Locator Strategy 'css selector' is not supported for this session issue with appium

百般思念 提交于 2019-12-23 02:29:32
问题 Since I'm new to mobile automation, I've been trying to run simple activities using appium maven and eclipse. But When I try to run Calculator app opens but the elements are not accessible. This the code I used to run a simple calculator @BeforeClass public void setUp() throws MalformedURLException { DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability("BROWSER_NAME", "Android"); capabilities.setCapability("VERSION", "4.4.2"); capabilities.setCapability(

Appium, Android - Finding element inside another element

泄露秘密 提交于 2019-12-23 01:53:31
问题 I am trying to check if element exist, but appium seems to ignore searching an element when we specified that it should be inside another element. For example: driver.findElementByAccessibilityId("First element").findElementByAccessibilityId("Second element"); It should work somehow since there is option in Appium inspector called Locator where after selecting strategy and choosing search from selected element option it finds what I expect. What is the proper way of finding such elements ?

adb 安装与使用(一)

徘徊边缘 提交于 2019-12-23 00:44:52
一、ADB简介 1. 什么是adb?   adb(Android Debug Bridage)是Android sdk的一个工具;   adb 是用来连接安卓手机和PC端的桥梁,要有adb作为二者之间的维系,才能让用户在电脑上对手机进行全面的操作。   Android 的初衷是用adb这样的一个工具来协助开发人员在开发和拷贝Android 应用的过程中更好的调试apk ,因此adb具有安装和卸载apk,拷贝推送文件,查看设备硬件信息,查看应用程序占用资源,在设备执行shell命令等功能! 2.adb的组成   客户端client:运行在你的电脑上,你可以通过adb命令来调起一个客户端。其他的安卓工具例如:ADT插件、DDMS都可以创建出一个客户端   服务器server:运行在你电脑上的后台,负责管理client和daemon进行通信。   守护进程 daemon:运行在模拟器或者Android 设备的后台 二、adb的安装 1.下载解压:adt-bundle-windows-x86_64-20140702(自行百度下载) 2. 配置环境变量到path   D:\appium\adt-bundle-windows-x86_64-20140702\sdk\platform-tools;   D:\appium\adt-bundle-windows-x86_64-20140702

移动端测试

余生长醉 提交于 2019-12-23 00:09:01
移动数据平台: TalkingData 移动观象平台 App 功能测试 业务逻辑正确性测试:一句产品文档设计测试用例,加上隐性需求用例 兼容性测试: 系统版本: android :4.4 5.0 6.0 7.0 iOS:原生系统:5.0 屏幕分辨率: 720 * 1280, 1920*1080 图片(根据分辨率做一些图片) 网络状态: 2g,3g,4g,5g wifi 异常测试: 热启动应用:应用由后台转换为前台的过程 考虑:1.仍然展示退到后台时的页面 2.希望初始化首页 网络切换和终端回复 1.网络切换:wifi->2g , 4g->3g 应用正常可用状态 2.终端恢复:4g->断网->4g,(下载2M 应用,1M断网.恢复网络(断点续传)) 电话和信息中断恢复 电话:看视频->电话接10分钟->返回视频 app 信息:玩游戏->通知栏一个消息->不影响游戏体验 升级安装卸载测试: 升级: 临近版本升级(1.0>1.1) 跨版本升级(1.0->1.7) 保证升级后App可用状态 安装测试: 首次安装 卸载后安装 覆盖安装 保证app安装后可用,安装文件齐全​ 卸载测试: 正常卸载 卸载后安装再卸载 保证卸载后,需要清理的文件全部清空,需要保留的文件存在 健壮性测试: 手机资源消耗:cpu,内存,耗电测试 流量消耗:数据流量,加载图片瞬间小号20M 图片压缩,数据压缩 崩溃恢复:

Access additional test files for Appium tests on AWS device farm

萝らか妹 提交于 2019-12-22 18:38:15
问题 I am running Appium tests with JUnit on AWS device farm. Is there a way to upload additional test files and access them from within my code? So basically, can I access the file system of the container that runs the Appium tests? I have the necessary files within my JAR file (which is inside a zip as per AWS requirements) but I'm not sure if and where AWS extracts the files from this JAR during the test run (probably not). There is an option called Add extra data which can be used to upload