I use javascript and imacros to collect some data from a website, and I have this line of code:
final_macro += "ADD !EXTRACT " + '"' + lager_col2[0].textContent + '"' + "\n";
When I ran js in the browser, I got this error:
Error: access to the content window is not supported in multiprocessor Firefox, line 208 (error code: -991)
Should I worry? Is textContent ? The problem is that lager_col2[0] sometimes turns out to be a link, and I need the text inside the link, not the tags, that's all. Naturally, I went with textContent . How could I get around this?
Also, am I setting myself up for problems when trying to access certain nodes using window.document.getElementsByClassName ? Is it better to use iMACROS TAG POS / XPATH?
source share