# 创建 ActionChains 对象\nactions = ActionChains(driver)\n\n\n使用 selenium 的 ActionChains 模拟鼠标移动到 相对网页 x,y坐标的位置内容:使用 ActionChains 的 move_by_offset 方法可以模拟鼠标移动到相对网页 x, y 坐标的位置。\n\npython\n\# 创建 ActionChains 对象\nactions = ActionChains(driver)\n\n\# 模拟鼠标移动到相对网页 x, y 坐标的位置\nactions.move_by_offset(x, y).perform()\n\n\n其中,x 和 y 分别表示相对于当前鼠标位置的横向和纵向位移量。perform() 方法用于执行操作。