Appium appium xpath 定位不到,参数有误,求指点

safasdfawgwefs · 2017年07月27日 · 最后由 safasdfawgwefs 回复于 2017年07月30日 · 1053 次阅读

如图,下面是脚本

运行报错:NoSuchElementException: Message: An element could not be located on the page using the given search parameters.
参数有误,就是说我的 xpath 写错了?那该怎么写啊,求指点

共收到 2 条回复 时间 点赞

还是说仅能支持 “XCUIElementTypeMap” 这种类似标签,不支持 “XCUIElementTypeOther”

你需要查看 xpath 的定位格式,以及你控件获取的名称是否正确

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册