The element only has "src" "srcset" and "alt"?

editoi January 20   Kehitys [?]

<img _ngcontent-c13="" src="" srcset="" alt="BlackJack">

How can I implement an click to this img? I have had 0 help from wonderful google.

Viestejä yhteensä

  • editoi January 20 [?]

    Assuming el is the image element, try el.dispatchEvent(new MouseEvent('click', {bubbles: true}));
    Depending on the site you may need to send mousedown instead of click.

Kirjaudu sisään tai Rekisteröidy kommentoidaksesi.