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

safasdfawgwefs · July 27, 2017 · Last by safasdfawgwefs replied at July 30, 2017 · 1055 hits

如图,下面是脚本

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

共收到 2 条回复 时间 点赞

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

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

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up