Appium自动化之踩坑日记

Appium1.7.0  在安卓7.0上无法模拟点击的坑

    在开发者选项里,除了USB调试,还有一个USB调试(安全设置),必须得开启这个才能模拟点击,是一个大坑,因为无法从任何信息得知出问题是因为这里有这么一个未打开的开关,完全靠人品才能找到。。。

版本查看

    testng

    java-client

    appium-desktop

使用AndroidStudio来编写Appium自动化代码

①搭建Appium服务环境

②创建Android项目然后把它转为Java项目具体看这里的第22条

③添加依赖

apply plugin: 'java'

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'org.testng:testng:6.10'
    compile 'io.appium:java-client:5.0.4'
}

sourceCompatibility = "1.7"
targetCompatibility = "1.7"

④编写代码

SyntaxError: Unexpected token function

appium版本较高,node版本较低,需要升级node版本

猜你喜欢

转载自blog.csdn.net/u012874222/article/details/78209888