The Button:
What happens when I click on the Button:
Chrome Console view when I right click on the button and Inspect Element; and underneath that after I manually click on the Button, then right click the text field and Inspect Element:
What I tried:
Code: Select all
!q::
wb.document.getElementById("anId").click()
sleep 1000
wb.document.getElementById("newNote").focus()
return
The shortcut is not finding/clicking the button. I also tried getElementsByName, and removing "wb" from the beginning of the line (because I noticed that in the dev console) but no luck. It's not finding the button. After a while, I gave up on trying to find the button and did this:
Code: Select all
!q::
Click 99 323
Sleep 1000
wb.document.getElementById("newNote").focus()
return
Can anyone tell me where I'm going wrong, why it's going wrong, and how to fix it?
[Mod edit: Link fixed]