Selenium提供了一个类ActionChains来处理模拟鼠标事件,如单击.双击.拖动等. 基本语法: class ActionChains(object): """ ActionChains are a way to automate low level interactions such as mouse movements, mouse button actions, key press, and context menu interactions. This is…
try { var selector1 = "._3-8y:first-child"; var evt = document.createEvent("MouseEvents"); var selector = document.querySelectorAll("._3-8y:first-child")[0]; console.log(selector) var center_x = 2, center_y = 2; var type = 'm…