I am writing a Chrome extension. I need to pass an element object from the content script to the background script.
The goal: The extension is about record and r
I used a workaround to click the element,
besides save the element and then using element.click() I used the cords to click the element without saving the element itself:
element.click()
document.elementFromPoint(cords.x - window.pageXOffset, cords.y - window.pageYOffset).click();