Simulate a REAL HUMAN mouse click in pure javascript?
问题 I'm currently working on a chrome extension and the extension has to automate some process but in the page when I click the element some action performed but when I click the element programmatically with JavaScript nothing happens. Does anyone know how to click it like real human ? event.isTrusted // readonly property but how can i make it as a event.isTrusted = true? I think the website made some prevention method with the isTrusted property of the click event! 回答1: From this answer: Try