iOS 10的Appium Inspector? [英] Appium inspector for iOS 10?

查看:266
本文介绍了iOS 10的Appium Inspector?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

直到现在,我一直在将Xcode 7.X与Appium 1.4/1.5.X结合使用来自动化iOS 9.X应用程序. 现在,要使iOS 10自动化,我安装了带有Appium 1.6.0 beta的Xcode 8.自动化成功了,但是问题在于Appium 1.6.0 beta仅具有一个cli版本,当然,它不包含用于检查应用程序元素的Inspector.

Until now, i was using Xcode 7.X with Appium 1.4/1.5.X to automate iOS 9.X apps. Now, to automate iOS 10, i installed Xcode 8 with Appium 1.6.0 beta. The automation succeeds, but the problem is that Appium 1.6.0 beta only has a cli version that, of course, doesn't include Inspector to inspect app elements.

我的问题是:Appium检查器可以检查iOS 10上的元素吗?

My question is: Is there an equivalent for the Appium inspector to inpect element on iOS 10?

推荐答案

有两种方法可以使用appium 1.6检查ios 10的元素.

There are two ways to inspect the elements for ios 10 using appium 1.6.

  1. 您可以通过使用

  1. You can get the XML of the page you want to inspect the elements by using

driver.getPageSource();

现在您需要搜索XML中的元素,并自行构建XPath或其他定位器.

now you need to search for the elements in the XML and build XPath or other locators on your own.

  1. 您可以尝试使用Xcode附带的Accessibility Inspector工具来检查元素.要打开Accessibility Inspector,请单击Xco​​de,然后在打开的开发人员工具中找到Accessibility Inspector.

  1. You can try Accessibility Inspector tool which comes with the Xcode to inspect the elements.To open Accessibility Inspector, click on Xcode and then in open developer tool you will find Accessibility Inspector.

您可以在下面的链接中使用检查器.阅读链接中的说明以了解如何使用它.

You can use the inspector in the below link.Read the instructions in the link to know how to use it.

https://github.com/mykola-mokhnach/Appium-iOS-Inspector

这篇关于iOS 10的Appium Inspector?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆