URLCURRENT error in EVAL

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
Kachikoma
Posts: 7
Joined: Wed Aug 01, 2012 4:37 am

URLCURRENT error in EVAL

Post by Kachikoma » Wed Aug 01, 2012 5:12 am

I am a Firefox-14.0 user.
Since iMacro add-on is updated to 7.5.0.4, the following code does not work anymore.

Code: Select all

SET !VAR1 EVAL("var a='{{!URLCURRENT}}'; a")
The error message is
NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.replace], line: 1 (Error code: -1001)
But if the value of !URLCURRENT is copied to !VARs, it works.

Code: Select all

SET !VAR2 {{!URLCURRENT}}
SET !VAR1 EVAL("var a='{{!VAR2}}'; a")
Is this a bug?
Marcia, Tech Support
Posts: 1095
Joined: Thu Jan 29, 2009 1:10 pm

Re: URLCURRENT error in EVAL

Post by Marcia, Tech Support » Fri Aug 10, 2012 11:03 am

Hi,

Thank you for reporting this. I have logged this as a bug (FF-#637).
Regards,

Marcia
fastviper
Posts: 46
Joined: Tue Mar 15, 2011 1:30 pm

Re: URLCURRENT error in EVAL

Post by fastviper » Wed Oct 10, 2012 12:03 pm

And when exactly can we expect the fix?

Actually using the same variable also works (Firefox 14):

Code: Select all

SET !VAR1 {{!URLCURRENT}}
SET !VAR1 EVAL("var s = \"{{!VAR1}}\";     s.replace('r', 'w');")
URL GOTO={{!VAR1}}
(Just like "var1 = var1 + 2" works, right hand evaluated before assigment attempt)
Post Reply