selenium.common.exceptions.MoveTargetOutOfBoundsException: Message: move target out of bounds


关于ActionChains(driver).move_by_offset(x,y)时,move target out of bounds的问题

move_by_offset()中使用坐标都是针对上一步的计算的,若不想计算,可使用reset_actions() 重置为(0,0)。

action = ActionChains(driver)
action.move_by_offset(x, y).click_and_hold().move_to_element(target).release().perform()
action.reset_actions()

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM