|
当前的问题是:手势密码不是单个按钮的连接,我试着用TouchAction(self.driver).press(x,y).move_to(x,y)的方式尝试了,就是不行,具体代码如下:
TouchAction(self.driver).press(x=269,y=463).move_to(x=269,y=463).wait(ms=800).move_to(x=269,y=463).wait(800).move_to(x=269,y=763).wait(800).move_to(x=417,y=763).release().perform()
不知道为什么老提示没有获取到坐标?
但是,我自己调试的时候,用TouchAction(self.driver).press(x ,y)去调用上面的move_to(269,763)单个坐标,这个逐个试了一下,都可以看到显示了起始点是正确的,急
运行提示信息是:
Traceback (most recent call last):
File "F:\testApp\dianrong\test_login.py", line 35, in test1_login
TouchAction(self.driver).press(x=269,y=463).move_to(x=269,y=463).wait(ms=8000).move_to(x=269,y=612).wait(8000).move_to(x=269,y=763).wait(1000).move_to(x=417,y=763).release().perform()
File "D:\python\lib\site-packages\appium\webdriver\common\touch_action.py", line 94, in perform
self._driver.execute(Command.TOUCH_ACTION, params)
File "D:\python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 236, in execute
self.error_handler.check_response(response)
File "D:\python\lib\site-packages\appium\webdriver\errorhandler.py", line 29, in check_response
raise wde
WebDriverException: Message: The coordinates provided to an interactions operation are invalid.
|
|