WebRecorder not recording all actions

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
jtengland
Newbie
Posts: 1
Joined: Tue Feb 16, 2010 11:31 pm

WebRecorder not recording all actions

Post by jtengland » Wed Feb 17, 2010 12:02 am

Alright, I admit it, I have no idea what I'm doing, so please be kind if I'm missing some basic function behaviors that answer my question. For the record, I am not a total programming ludite; I understand C++, but I have no experience with basic.

I am trying to automate accepting work from a website. Orders are advertised and you have to accept them within seconds, or they are gone and you are SOL. And I do mean seconds.

So, I opened the page in WebRecorder and refreshed until an order came up. The recorded commands look great up to this point, but something appears to go wrong when I actually accept the order. It goes like this:
a) order appears
b) you click the accept button that records as this in WebRecorder:

Code: Select all

Let>FrameName={""}
Let>FormName={""}
Let>TagValue={"https://xxx.xxxxxx.com/image/AdvertImages/Accept.gif"}
IE_ClickTag>%IE[1]%,str:FrameName,str:FormName,IMG,HREF,str:TagValue,r
c) as soon as you click accept, a frame opens with the contract you also have to accept. In WebRecorder, this frame does not open as a new tab, just as a free floating frame that overlays the window that shows the order. To complete order acceptance, you have to scroll down to the bottom of the frame, check a checkbox and then hit an accept button again, then you're done.

The problem is that the frame does not appear to register with WebRecorder. After I hit the first accept, this is all I get:

Code: Select all

IE_Wait>%IE[1]%,r
Wait>delay

IE_Wait>%IE[1]%,r
Wait>delay

IE_Wait>%IE[1]%,r
Wait>delay

IE_Refresh>%IE[1]%,r
IE_Wait>%IE[1]%,r

IE_Refresh>%IE[1]%,r
IE_Wait>%IE[1]%,r

Label>end_script
This is the entire recorded script, with about 120 IE refresh commands deleted:

Code: Select all

// Generated by MacroScript WebRecorder 2.1
// Recorded on  Tuesday, February 16, 2010, at 02:49 PM

//Move the mouse cursor out of harm's way to avoid causing mouseover events to interrupt
MouseMove>0,0
Let>delay=1
IE_Create>0,IE[0]

IE_Navigate>%IE[0]%,https://www.xxxxxx.com/app/work/summary.aspx?port_id=,r
IE_Wait>%IE[0]%,r
Wait>delay

Let>FrameName={""}
Let>FormName={""}
Let>TagValue={"XXXX"}
IE_ClickTag>%IE[0]%,str:FrameName,str:FormName,A,TEXT,str:TagValue,r

IE_Wait>%IE[0]%,r
Wait>delay

Let>FrameName={""}
Let>FormName={""}
Let>TagValue={"Advertised Orders"}
IE_ClickTag>%IE[0]%,str:FrameName,str:FormName,A,TEXT,str:TagValue,r

IE_WaitNew>0,IE[1]
IE_Wait>IE[1],r

IE_Wait>%IE[1]%,r
Wait>delay

IE_Wait>%IE[1]%,r
Wait>delay

IE_Refresh>%IE[1]%,r
IE_Wait>%IE[1]%,r

//  right here is where the new order appears

Let>FrameName={""}
Let>FormName={""}
Let>TagValue={"https://xxx.xxxxxxx.com/image/AdvertImages/Accept.gif"}
IE_ClickTag>%IE[1]%,str:FrameName,str:FormName,IMG,HREF,str:TagValue,r

// right here is where the new frame pops up to accpet the contract but does not appear to register with WebRecorder

IE_Wait>%IE[1]%,r
Wait>delay

IE_Wait>%IE[1]%,r
Wait>delay

IE_Wait>%IE[1]%,r
Wait>delay

IE_Refresh>%IE[1]%,r
IE_Wait>%IE[1]%,r

IE_Refresh>%IE[1]%,r
IE_Wait>%IE[1]%,r

Label>end_script
Any help will be most appreciated. If additional information is needed, I'll be happy to provide. I'll even record a screen vid of me accepting an order if that will help, but something tells me that one of the programming Yoda's around here will spot the problem right off.

All my very best,
John

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

Post by adroege » Tue Jun 15, 2010 7:11 pm

I think I would have to see the page source of the main page while the contract pop-up box is being displayed. I'm thinking that the pop-up is being created by javascript functions. In this case, you might be able to automate the acceptance of the contract by calling the "behind the scenes" javascript functions, instead of trying to click on buttons. In IE the command is View -> Source. In Firefox it's View -> Page Source.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts