Search found 239 matches

by iimfun
Fri Oct 07, 2016 8:23 am
Forum: Data Extraction and Web Screen Scraping
Topic: Getting data from the screen that is NOT in the source
Replies: 1
Views: 1039

Re: Getting data from the screen that is NOT in the source

What happens when you play the code given below?

Code: Select all

TAG XPATH="id('/gp/profile/A225AROJV5PA03')"
TAG XPATH="id('/gp/profile/A225AROJV5PA03')" EXTRACT=HTM
by iimfun
Fri Oct 07, 2016 8:16 am
Forum: iMacros for Chrome
Topic: Need help
Replies: 3
Views: 1745

Re: Need help

I can't test my macro on the page you are. So record the following steps:

1) Click the 'Country' label (with 'Conventional recording mode');
2) Type something in the 'Country' input (with 'Experimental event recording mode').

I should look at this code for further suggestions.
by iimfun
Thu Oct 06, 2016 1:27 pm
Forum: iMacros for Chrome
Topic: Need help
Replies: 3
Views: 1745

Re: Need help

The macro posted below works on the 'About' page. You can try it on a form in Facebook Business Manager too. SET !EXTRACT_TEST_POPUP NO TAG POS=1 TYPE=LABEL ATTR=TXT:"Country" EXTRACT=HTM SET idI EVAL("'{{!EXTRACT}}'.match(/for=\"(.+?)\"/)[1];") SET !EXTRACT NULL TAG XPATH="id('{{idI}}')" EXTRACT=HT...
by iimfun
Tue Oct 04, 2016 7:39 am
Forum: Data Extraction and Web Screen Scraping
Topic: How to click textbox from javascript site
Replies: 2
Views: 2166

Re: How to click textbox from javascript site

Try to record the problem part of your macro with 'Experimental event recording mode'.
by iimfun
Thu Sep 29, 2016 8:03 am
Forum: iMacros for Firefox
Topic: problem with using run.imacros.net to start a macro
Replies: 3
Views: 2600

Re: problem with using run.imacros.net to start a macro

Just try to replace

Code: Select all

http://run.imacros.net
with

Code: Select all

imacros://run
Here is an example
[url=imacros://run/?code=UFJPTVBUICJIZWxsbyBXb3JsZCI=]Click me to play[/url]
by iimfun
Wed Sep 28, 2016 2:39 pm
Forum: iMacros for Firefox
Topic: EXTRACT & LOOP through a list of HREF links doesn´s work
Replies: 7
Views: 3621

Re: EXTRACT & LOOP through a list of HREF links doesn´s work

So this is what i would like to have: Title (only offer title, no url) in Cell A1 Item descripition in Cell B1 URL of the specific item page in Cell C1 So this is what you probably would like to play TAG POS={{!LOOP}} TYPE=SECTION ATTR=CLASS:"aditem-image" CONTENT=MOUSEOVER TAG POS=R1 TYPE=A ATTR=*...
by iimfun
Wed Sep 28, 2016 8:57 am
Forum: iMacros for Firefox
Topic: EXTRACT & LOOP through a list of HREF links doesn´s work
Replies: 7
Views: 3621

Re: EXTRACT & LOOP through a list of HREF links doesn´s work

Currently I can't help you with the macro for lack of time. So maybe later.

I'm repeating my thought over again that iim solution will be intricate in this case.
by iimfun
Wed Sep 28, 2016 8:51 am
Forum: Command Line and Scripting Interface
Topic: Learning Javascript, (break looping when missing tag).
Replies: 2
Views: 1461

Re: Learning Javascript, (break looping when missing tag).

Try to make the following changes var macro = "CODE:"; macro += "SET !TIMEOUT_STEP 0" + "\n"; macro += "TAG POS={{j}} TYPE=INPUT:CHECKBOX ATTR=* CONTENT=YES" + "\n"; and var j = 1; do { iimSet("j", j); var ret = iimPlay(macro); iimDisplay("Passo " + (j) + " de " + count + "\n" + "Guilda " + (i + 1) ...
by iimfun
Mon Sep 26, 2016 7:50 am
Forum: iMacros for Firefox
Topic: EXTRACT & LOOP through a list of HREF links doesn´s work
Replies: 7
Views: 3621

Re: EXTRACT & LOOP through a list of HREF links doesn´s work

Is there something which makes it possible to have it like this: Item link: A1 Item description B1 URL C1 and so on... TAG POS={{!LOOP}} TYPE=SECTION ATTR=CLASS:"aditem-image" CONTENT=MOUSEOVER TAG POS=R1 TYPE=A ATTR=* EXTRACT=HREF SAVEAS TYPE=EXTRACT FOLDER=* FILE=extraction.csv TAG POS=R1 TYPE=A ...
by iimfun
Mon Sep 26, 2016 7:34 am
Forum: General Support & Discussions
Topic: How to get a pop up notification when script fails
Replies: 8
Views: 4441

Re: How to get a pop up notification when script fails

(or 'URL GOTO=javascript:') + 'alert()' which doesn't work on FF You can make it work like so SET msg "MACRO HAS FAILED !" URL GOTO=javascript:setTimeout("alert('{{msg}}');",300);void(0); as (almost) the last commands in your macro. However for FX my advice is simply to open a new window of the bro...
by iimfun
Fri Sep 23, 2016 1:29 pm
Forum: Command Line and Scripting Interface
Topic: how to after looping 20x set Time Wait ?
Replies: 2
Views: 1481

Re: how to after looping 20x set Time Wait ?

Code: Select all

SET secToWait 5
SET secToWait EVAL(({{!LOOP}}%20)?0:{{secToWait}})
WAIT SECONDS={{secToWait}}
by iimfun
Fri Sep 23, 2016 1:26 pm
Forum: General Support & Discussions
Topic: How to get a pop up notification when script fails
Replies: 8
Views: 4441

Re: How to get a pop up notification when script fails

Here is a possible solution for iMacros in Chrome SET !ERRORIGNORE YES ' your code as posted above TAG POS=1 TYPE=INPUT:IMAGE FORM=ID:aspnetForm ATTR=ID:ctl00_ContentPlaceHolder1_submitImageButton EXTRACT=HTM SET !ERRORIGNORE NO SET E EVAL("var msg = 'MACRO HAS FAILED !'; if (!'{{!EXTRACT}}'.match(/...
by iimfun
Fri Sep 23, 2016 8:11 am
Forum: iMacros for Chrome
Topic: How do I deal with a form with changing POS?
Replies: 2
Views: 1678

Re: How do I deal with a form with changing POS?

It would be better if you provided this post with the html code of your form. As to "Relative Positioning" suggested above, for instance you can try something like this SET !EXTRACT_TEST_POPUP NO TAG POS=1 TYPE=BUTTON ATTR=TXT:Next EXTRACT=TXT TAG POS=R-4 TYPE=INPUT:TEXT ATTR=* CONTENT=10.4 TAG POS=...
by iimfun
Fri Sep 23, 2016 7:08 am
Forum: iMacros for Firefox
Topic: EXTRACT & LOOP through a list of HREF links doesn´s work
Replies: 7
Views: 3621

Re: EXTRACT & LOOP through a list of HREF links doesn´s work

You just have to use Relative Positioning like so

Code: Select all

TAG POS={{!LOOP}} TYPE=SECTION ATTR=CLASS:"aditem-image" CONTENT=MOUSEOVER
TAG POS=R1 TYPE=A ATTR=* EXTRACT=HREF
SAVEAS TYPE=EXTRACT FOLDER=* FILE=extraction.csv
by iimfun
Wed Sep 21, 2016 8:27 am
Forum: iMacros for Chrome
Topic: event type = keypress can't type dots/periods?
Replies: 3
Views: 2786

Re: event type = keypress can't type dots/periods?

Hey,

If a PC requires 'ctrl+v' for paste command, the code must look like

Code: Select all

EVENT TYPE=KEYPRESS SELECTOR="someSelector" KEY=86 MODIFIERS="ctrl"
In case of some doubts just record this action in iMacros for Chrome.