I am trying to click the remove an account button on Gmail’s landing page. It stores the accounts that login and I want to remove accounts after each session.
I am on the page so I don’t need to call Safari but I am wondering if I need to bring it forward using AppleScript because it’s not working.
I tried using the Safari Javascript declaration:
document.getElementById(‘Remove an account’).click()
OK, as I suspected, “Remove an account” is NOT the tag “id”. It is the “.textContent”. A HTML element “id” always is defined by a: id="NameOfid"
I’ve never seen one with spaces in it.