我正在Python
中编写一个定制的Robot Framework
库
我有一个关键字,它在后台使用AppiumLibrary
,并按下如下元素:
def _wait_and_click(self, locator):
self.appiumlib.wait_until_element_is_visible(locator=locator, timeout=10)
self.appiumlib.click_element(locator=locator)
self.builtin.sleep(self.TIME_TO_SLEEP)
这在Android上可以正常工作,但在iOS上不行。基本上,我没有得到一个错误,但元素没有点击
我还想提到的是,如果测试在Android上运行,那么appium的automationName
所需功能设置为UIAutomator2
,如果我在iOS上运行它们XCUITest
目前没有回答
相关问题 更多 >
编程相关推荐