Access to the content window is not supported in Firefox Multiprocessor

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?

+5
source share
5 answers

The strange thing: I get the same error as before the line number of the code. Obviously my javascript line numbers don't match yours. At first, I thought the problems were caused by my recent upgrade to Firefox 48. But when I moved my IMacros to another machine running Firefox 47, I got the same error as you.

Update. My workaround was to downgrade the Firefox iMacros extension from 9.0.3 to 8.9.7. Now my macro works again with Firefox version 47 and iMacros version 8.9.7.

+4
source

In such cases, I can offer you one of my old workarounds with an extra function to get the contents of the window:

 var someContent = getSomeContent("document.getElementsByClassName('someclass')[0].textContent"); alert(someContent); function getSomeContent(selector) { var ret = iimPlayCode("URL GOTO=javascript:alert(" + selector + ");"); if (ret < 0) return iimGetErrorText().match(/Dialog message: "([\s\S]*)",/)[1]; } 

The idea seems useful. But I have not tested this script in multiprocessor Firefox yet.

0
source

Reinstall the iMacros plugin. It helps me.

0
source

imacro does not support access to the dom element, revert to an earlier version of imacro older than imacro 9.

0
source

Firefox> 47.0.1 and iMacros> 8.9.7 are not supported (as Firefox architecture has changed)

Decide:

STEP 1. Remove the superscript imacros, if installed.

STEP 2. Uninstall Firefox.

STEP 3. Follow this link to download Firefox version of Firefox 47.0.1. https://download-installer.cdn.mozilla.net/pub/firefox/releases/47.0.1/win32/en-US/Firefox%20Setup%2047.0.1.exe or this link https: //support.mozilla. org / en-US / kb / install-older-version-of-firefox

STEP 4. Install Firefox 47.0.1 and after starting Firefox run "about: support".

STEP 5. You can see the โ€œUpdate Firefoxโ€ button, click it and restart Firefox.

STEP 6. Follow this link to download the iMacros 8.9.7 version. https://addons.mozilla.org/en-US/firefox/addon/imacros-for-firefox/versions/

0
source

All Articles