for x, y in param:
center_x = int(x) - div_size['width'] / 2
center_y = int(y) - div_size['height'] / 2
logging.info("click at (%.2f, %.2f)" % (center_x, center_y))
action_chains.move_to_element_with_offset(element, center_x,
center_y).click().perform()
time.sleep(random.randint(0, 10) / 10)
按文档说move_to_element_with_offset是Move the mouse by an offset of the
specified element. Offsets are relative to the top-left corner of the element.
但是我这里必须以element中心为原点才能成功呢?
--
FROM 119.139.199.*