關於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()