安卓定位元素:
原生:Uiautomatorviewer 安卓sdk目录下:android-sdk安装目录:\android-sdk\sdk\tools
webView:chrome://inspect (需要Fanqiang)
[img]http://dl2.iteye.com/upload/attachment/0130/2990/14cbe41e-2667-3560-8331-952ed9f65d29.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0130/2992/fdb5325a-9866-300d-953c-e95d037b2f4b.png[/img]
IOS定位元素:
1.Appium自带的Inspector工具
2.Macaca的app-inspector工具(定位webView),具体地址:https://macacajs.github.io/app-inspector/cn/
setp1.获取设备ID
xcrun simctl list
setp2:从命令行启动
app-inspector -u YOUR-DEVICE-ID
3.Xcode自带的accessibility-inspector工具,
具体地址:http://blog.csdn.net/icetime17/article/details/42211915
4.Appium团队提供的appium-ios-inspector,
具体地址:https://github.com/mykola-mokhnach/Appium-iOS-Inspector
5.通过flex插件,具体地址:https://github.com/Flipboard/FLEX
=====================
https://blog.csdn.net/jeff_2016/article/details/53408086
https://macacajs.github.io/app-inspector/cn/
====================
appium如何获取到APP的启动activity:
运行命令:adb shell dumpsys activity | findstr "mFocusedActivity"
原生:Uiautomatorviewer 安卓sdk目录下:android-sdk安装目录:\android-sdk\sdk\tools
webView:chrome://inspect (需要Fanqiang)
[img]http://dl2.iteye.com/upload/attachment/0130/2990/14cbe41e-2667-3560-8331-952ed9f65d29.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0130/2992/fdb5325a-9866-300d-953c-e95d037b2f4b.png[/img]
IOS定位元素:
1.Appium自带的Inspector工具
2.Macaca的app-inspector工具(定位webView),具体地址:https://macacajs.github.io/app-inspector/cn/
setp1.获取设备ID
xcrun simctl list
setp2:从命令行启动
app-inspector -u YOUR-DEVICE-ID
3.Xcode自带的accessibility-inspector工具,
具体地址:http://blog.csdn.net/icetime17/article/details/42211915
4.Appium团队提供的appium-ios-inspector,
具体地址:https://github.com/mykola-mokhnach/Appium-iOS-Inspector
5.通过flex插件,具体地址:https://github.com/Flipboard/FLEX
=====================
https://blog.csdn.net/jeff_2016/article/details/53408086
https://macacajs.github.io/app-inspector/cn/
====================
appium如何获取到APP的启动activity:
运行命令:adb shell dumpsys activity | findstr "mFocusedActivity"