Trying to automate clicking on a link. "document.links[1].href" gives me the correct url, but "document.links[1].click()" has no effect.
Webpage has 4 tables on it. Based on another Stack Exchange post, I tried "document.querySelector('table a').click()" and that clicked the link associated with the first table. I want to click the link associated with the second table. 'table b' did not work.
I also saw a getElementByID approach, but in the code snippet below, I don't see an ID to use.
The second link/table, the one I want, is below.
"<table style=[STYLE].<tbody><tr><td><a href=[DESIRED URL] target="_blank">[LABEL]</a></td></tr></tbody></table>"
I would expect the link to be clicked, but instead nothing happens.