Creating Your Very First iMacro - Web Browser Automation

Creating Your Very First iMacro – Web Browser Automation

Following on from my earlier article on How to Install Firefox & The iMacros Addon which also included some performance tips, this video shows you how to create your very first iMacro and also a more complicated macro, that performs a useful action.

In the video I add an extra command called “WAIT”. The wait command allows iMacro’s to pause for a period of time for an action to be performed and as with all commands in iMacro’s the command needs to be in UPPERCASE.

11 replies
  1. Matthew Ogborne
    Matthew Ogborne says:

    Howdy Jack,

    The comments have lost some of their formatting, I’ll sort that out later this evening.

    With regards to the tab, yep in that case it looks like it needs to be submitted by a form.

    Not really sure I’m afraid without delving into it deeper.

    Matt

    Reply
  2. Jack
    Jack says:

    I built my first 2 imacros without much trouble, but the third one has me stuck.

    This macro grabs an ebay Item ID from a CSV file, then goes to that listing, clicks the revise button, clicks the Create Exclusion List link, clicks the necessary checkboxes, clicks submit and then saves the listing.

    The part I’m having trouble with is that when it clicks the create exclusion list link. It is supposed to pop into a new tab on the browser, but when I play it back, it doesn’t open the second tab. I tried opening an empty tab to the right, but then the browser went through all the motions, but nothing was updated on the listing.

    Here is my code:

    VERSION BUILD=8032216
    TAB T=1
    SET !DATASOURCE ToBeRevised.csv
    SET !DATASOURCE_COLUMNS 1
    SET !DATASOURCE_LINE {{!LOOP}}
    URL GOTO=http://www.ebay.com/
    TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://www.ebay.com/sch/i.html ATTR=ID:gh-ac CONTENT={{!COL1}}
    TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://www.ebay.com/sch/i.html ATTR=ID:gh-btn
    TAG POS=1 TYPE=A ATTR=TXT:Reviseyouritem
    WAIT SECONDS=5
    TAG POS=1 TYPE=A FORM=NAME:selling ATTR=TXT:Createexclusionlist-opensinanewwindowortab
    ‘New tab opened
    TAB T=2
    TAG POS=1 TYPE=INPUT:CHECKBOX FORM=NAME:selling ATTR=NAME:domesticExcludeShipToLocations CONTENT=YES
    TAG POS=2 TYPE=INPUT:CHECKBOX FORM=NAME:selling ATTR=NAME:domesticExcludeShipToLocations CONTENT=YES
    TAG POS=3 TYPE=INPUT:CHECKBOX FORM=NAME:selling ATTR=NAME:domesticExcludeShipToLocations CONTENT=YES
    TAG POS=1 TYPE=INPUT:CHECKBOX FORM=NAME:selling ATTR=NAME:additionalExcludeShipToLocations CONTENT=YES
    TAG POS=1 TYPE=BUTTON:SUBMIT FORM=NAME:selling ATTR=NAME:aidZ54
    TAB T=1
    TAG POS=1 TYPE=DIV FORM=NAME:selling ATTR=TXT:Step1:ContactusthrougheBaymessage(Askaquestion),sowecanissueanRM*
    TAG POS=1 TYPE=BUTTON:SUBMIT FORM=NAME:selling ATTR=NAME:aidZ1
    TAG POS=1 TYPE=BUTTON:SUBMIT FORM=NAME:selling ATTR=NAME:aidZ126

    Reply
    • Matthew Ogborne
      Matthew Ogborne says:

      Howdy Jack,

      I’m guessing you’re using FireFox.

      If I remember correctly FireFox gets confused with tabs, so to get back to TAB=1, close the current tab with TAB CLOSE.

      They may have fixed that now, but in any case, assuming that a second tab is open is not ideal, so adding TAB OPEN to open a new one would eb suggested.

      Give that a whirl and let me know how you get on.

      Matt

      Reply
      • Matthew Ogborne
        Matthew Ogborne says:

        Hi Jack,

        Ah, when the new tab opens, does the browser go straight to that tab?

        If it does, then that is Tab 1, so drop the Tab=2 bit and assume that you’re on that tab, then once finished, close that tab.

        Matt

      • Jack
        Jack says:

        The second tab doesn’t open at all.

        I tried running it with a second tab already opened. That didn’t work. It went to the second tab but the second tab stayed black.

        I then tried adding a line

        GO TO=http://cgi5.ebay.com/ebaymotors/ws/eBayISAPI.dll?ReviseListing&itemid={{!COL1}}
        &cpg=148&sid=143626945521&userid=&pass=&aid=
        178&ej2child=true&ej2parent=SellerGranularity

        It opened up the contents of the page and edited it, but when it submitted it, it did not communicate correctly with the ebay server and the data was not saved.

Trackbacks & Pingbacks

  1. Creating Your Very First iMacro – Web Browser Automation: Following on from my earlier article on… http://t.co/9MoJV1NP @lastdropofink

  2. Creating Your Very First iMacro – Web Browser Automation: Following on from my earlier article on How to Ins… http://t.co/gAw0lufk #in

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *