代码
action=TouchAction(self.driver)
action.press(x=731,y=1300).wait(200).move_to(x=731,y=484).release().perform()
错误日志
selenium.common.exceptions.InvalidArgumentException: Message: Coordinate [x=731.0, y=2083.0] is outside of element rect:

本文探讨了使用Selenium进行UI自动化测试时遇到的坐标超出元素范围的问题,详细分析了错误日志并提供了可能的解决方案。
代码
action=TouchAction(self.driver)
action.press(x=731,y=1300).wait(200).move_to(x=731,y=484).release().perform()
错误日志
selenium.common.exceptions.InvalidArgumentException: Message: Coordinate [x=731.0, y=2083.0] is outside of element rect:


被折叠的 条评论
为什么被折叠?