我收到以下错误发现:元素没有被标识在Appium
ValueError: Element locator 'identifier=id/edittext1' did not match any elements.
有id为edittext1
的元素,但它不认可!
我收到以下错误发现:元素没有被标识在Appium
ValueError: Element locator 'identifier=id/edittext1' did not match any elements.
有id为edittext1
的元素,但它不认可!
我遇到过类似的问题。
我用xpath进行元素定位。下面
供您参考的样本的XPath
Input Text xpath=/hierarchy[@rotation="0"]/android.widget.FrameLayout[@index="0"]/android.widget.LinearLayout[@index="0"]/android.widget.FrameLayout[@index="0"]/android.widget.RelativeLayout[@index="0"]/android.widget.EditText[@index="0"]
尝试**的元素定位 –
的XPath **你使用其他定位像cssselector或XPath试过吗? – noor
@sai我认为你面临的语法问题,你可以请你在这里发布你的代码,以便我可以帮助你 – Manidroid