I'm using 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 my js in the browser I got this error:
Error: Accessing content window is not supported in multiprocess Firefox, line 208 (Error code: -991)
Should I be worried ? Is the use of textContent forbidden ?
The problem is that lager_col2[0] sometimes happen to be a link and I only want the text inside the link, not the tags and everything. So naturally I went with textContent. How could I get around this ?
Additionally, am I setting myself up for trouble when trying to access certain nodes with the use of window.document.getElementsByClassName?
Is it better to use iMACROS TAG POS/XPATH ?