Appium笔记3 |
您所在的位置:网站首页 › tap的正确用途 › Appium笔记3 |
Appium的Inspector
除了用uiautomatorviewer,我们还可以用appium desktop来查看 appium desktop是通过 一个叫Inspector 的功能来查看元素的 可以使用两种方式通过Inspector来定位app元素 方法1 需要我们手动创建一个session,其实也就是一个客户端,和appium server连接 填入参数,就像代码中的,手动填写一下下面的参数,一一对应 desired_caps = { 'platformName': 'Android', 'platformVersion': '6', 'deviceName': 'glaxy5', # 'app': r'd:\apk\duoduoCalculators.apk', 'appPackage': 'com.ibox.calculators', 'appActivity': 'com.ibox.calculators.SplashActivity' |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |