Search found 21 matches

by Denis, iOpus
Sun Jan 06, 2013 4:22 pm
Forum: iMacros for Firefox
Topic: Firefox 16 remove support for "java" DOM object
Replies: 16
Views: 17155

Re: Firefox 16 remove support for "java" DOM object

Hi, In short, you can not use Java with iMacros for Fx anymore. Replaying of Javascript files in iMacros for Fx was made sandboxed since 7.5.2.0 which prevents anything but very basic Javascript functions. Fx 16 also drops the support for java.* These two facts prevents you from using Java if you us...
by Denis, iOpus
Sun Jan 06, 2013 4:09 pm
Forum: iMacros for Firefox
Topic: Use J query on .js
Replies: 1
Views: 643

Re: Use J query on .js

Hi,

Try the new experimental EVENT command introduced in iMacros for Firefox 8.21

Code: Select all

EVENT TYPE=CLICK SELECTOR="#some-id" BUTTON=0
Here SELECTOR is a CSS3 selector and you should feel at home if you are familiar with JQuery syntax.
by Denis, iOpus
Sun Jan 06, 2013 4:04 pm
Forum: iMacros for Firefox
Topic: Incredibly Slow When Using a Large File!?
Replies: 1
Views: 646

Re: Incredibly Slow When Using a Large File!?

Hi, Yes, your guess is spot on: the .csv file is loaded and parsed for every macro run in iMacros for Fx. You can use Scripting Interface to read your file line by line and send a macro to Fx. Another option would be to split your large csv file and use Javascript to run it at once, e.g. var code = ...
by Denis, iOpus
Thu Dec 20, 2012 6:09 pm
Forum: iMacros for Firefox
Topic: Increasing Number By 1?
Replies: 1
Views: 1225

Re: Increasing Number By 1?

You can use {{!LOOP}} and run your macro setting appropriate start/end loop values.
Change your code as follows:

Code: Select all

TAG ... CONTENT="Day {{!LOOP}} Title"
TAG ... CONTENT="day_{{!LOOP}}_title"
by Denis, iOpus
Thu Dec 20, 2012 5:52 pm
Forum: iMacros for Firefox
Topic: Input Data containing <br> = how to enter html line break?
Replies: 3
Views: 2223

Re: Input Data containing <br> = how to enter html line brea

Hi,

You can use double-quoted strings in iMacros. In your case that will be
TAG .. CONTENT="test<br>test"
and if you want a new line use \n, e.g. "First line\nA new line"
by Denis, iOpus
Thu Apr 01, 2010 2:13 pm
Forum: iMacros for Firefox
Topic: IMacros BUG
Replies: 4
Views: 1336

Re: IMacros BUG

Hi, In iMacros for Firefox Javascript scripts are "eval"-ed. Thus for each run a new global object is created. All the functions and variables defined in a script are properties of that object. In Javascript all variables are reference-counted, so as soon as last line of your script is interpreted a...
by Denis, iOpus
Wed Jun 03, 2009 3:52 am
Forum: iMacros for Firefox
Topic: unambiguous XPath expression
Replies: 5
Views: 6652

Re: unambiguous XPath expression

Hi, I guess you use new XPATH parameter for TAG command. The error appears when the result of XPath evaluation contains more than one element. For example on this web page http://www.iopus.com/imacros/demo/v6/f1/form.asp the following XPath expression id('TestForm')/div/center/table/tbody/tr[3]/td r...
by Denis, iOpus
Wed May 13, 2009 4:13 am
Forum: General Support & Discussions
Topic: How can I use XPATH?
Replies: 5
Views: 15119

Re: How can I use XPATH?

Hi, Concerning your question: id is an XPath function which returns element(s) with the given id value. There is no class function. You can achieve similar results by this *[@class='bdytxt']/small/input[1] Please note that If an expression results into multiple elements or nodes iMacros generates an...
by Denis, iOpus
Thu Apr 23, 2009 5:48 pm
Forum: iMacros for Firefox
Topic: Filling in pieces of text with commas in it
Replies: 4
Views: 1574

Re: Filling in pieces of text with commas in it

Hi, The quotes from csv file should not appear. Could you post your CSV file? Also try to use PROMPT command make testing easier. e.g. SET !DATSOURCE your_file.csv ' don't forget to change this to appropriate value SET !DATASOURCE_COLUMNS 2 SET !DATASOURCE_LINE 1 PROMPT {{!COL1}} PROMPT {{!COL2}} De...
by Denis, iOpus
Thu Apr 23, 2009 5:31 pm
Forum: iMacros for Firefox
Topic: How to grab the highest/lowest value from a table?
Replies: 3
Views: 1163

Re: How to grab the highest/lowest value from a table?

Hi, You can record a macro which extracts table values, see Demo-Extract.iim for example. Then you'll need to run a js script like this one var i = iimPlay("your-macro.iim"); if (i < 0) { alert("Error: "+iimGetLastError()); iimExit(); } var extractStr = iimGetLastExtract(); // the extracted string w...
by Denis, iOpus
Thu Apr 23, 2009 4:49 pm
Forum: iMacros for Firefox
Topic: <SP> causes Cross-Site Scripting Error
Replies: 6
Views: 2504

Re: <SP> causes Cross-Site Scripting Error

Hi, If you use a double quoted strings like "my string" in CONTENT=... etc., then all <sp>, <br>, <lf> are placed literally. I guess you should use TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:form1 ATTR=NAME:av_queryString CONTENT="fuel cells" or without quotes TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:form1 ATTR...
by Denis, iOpus
Thu Dec 04, 2008 6:43 pm
Forum: iMacros for Firefox
Topic: javascript functions... error
Replies: 1
Views: 960

Re: javascript functions... error

Hi, Yes you can use functions. Just remember that Javascript is case-sensitive. So in your case Function getName(minlength, maxlength, prefix, suffix) should be replaced by function getName(minlength, maxlength, prefix, suffix) and var RandomNameOne=GetName(2, 20, null, null) by var RandomNameOne=ge...
by Denis, iOpus
Wed Sep 10, 2008 1:01 pm
Forum: iMacros for Firefox
Topic: Javascript data extraction
Replies: 1
Views: 1480

Re: Javascript data extraction

Hi The "match" method of String object expects a RegExp object otherwise the argument is passed to RegExp constructor. That is source.match("Hits</a> \"(\"") is essentially the same as source.match(new RegExp("Hits</a> \"(\"")) . The '(' symbol has a special meaning in regexps and should be escaped ...
by Denis, iOpus
Mon Jul 28, 2008 6:43 am
Forum: iMacros for Firefox
Topic: [Solved with V6.0.6.9] DO NOT upgrade to V6.0.6.5 on a Mac
Replies: 18
Views: 6254

Re: DO NOT upgrade to V6.0.6.5 on a Mac

Robmur:
Could you please show us the Error Console output right after the alert is shown? (This page shows how to enable error console )
by Denis, iOpus
Mon Jul 28, 2008 6:05 am
Forum: iMacros for Firefox
Topic: Links with ! do not work
Replies: 6
Views: 2042

Re: Links with ! do not work

webstar:

Code: Select all

...
    else {if (myvar ! "#EANF#") {
...
       
The posted script has a syntax error:

Code: Select all

if (myvar ! "#EANF#")
- you should have written '!=' instead of '!'
This is what reported by iMacros.