G33kDude / Chrome.ahk

Automate Google Chrome using native AutoHotkey
https://autohotkey.com/boards/viewtopic.php?t=42890
MIT License
336 stars 82 forks source link

Cannot read properties of undefined (reading 'click') at <anonymous>:1:83 #27

Closed Elanuroquesalta closed 1 year ago

Elanuroquesalta commented 2 years ago

So, after cleaning some other errors, im still getting trouble with the code line where the JavaScript begins. Im still new to this language, so i cant find the source of the problem yet.

Any ideas?

image

SaifAqqad commented 2 years ago

There's a problem with your selector '#post-4101 > div > p:nth-child(4) > a:nth-child(4)', because the first element of the returned NodeList is undefined. Open the page in a browser and make sure it works there