"Click Button With JavaScript" Action Failing

I am trying to click the "Back up to file" button in the ublock origin extension settings.
When I put the following command in a "Click button with Javascript" action, I get a console error. Any ideas on how to fix this?

document.querySelector('button[id="export"]').click();


Does your code work in the browser console?

I suspect not. Browser extensions are not available from in-browser JavaScript.

-Chris

1 Like

Ah that's probably the issue. Well there's always the good ol' click at found image...

2 Likes