I am Evaluating WebRecorder

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
Eugi
Newbie
Posts: 4
Joined: Sat Jul 11, 2009 7:23 pm
Location: St-Hubert, Quebec, Canada

I am Evaluating WebRecorder

Post by Eugi » Sat Jul 11, 2009 7:38 pm

Hello all,

I am evalusting WebRecorder for automating our daily task of checking our Web site.

After recording and save the script, the main page load and nothing else happen.

Here the script

Code: Select all

[b]// Generated by MacroScript WebRecorder 2.1
// Recorded on samedi, juillet 11, 2009, at 01:32 PM

//Move the mouse cursor out of harm's way to avoid causing mouseover events to interrupt
LibLoad>%SCRIPT_DIR%\IEAuto.dll,hIE
MouseMove>0,0
Let>delay=1
IE_Create>0,IE[0]

IE_Navigate>%IE[0]%,http://www.transatholidays.com/web2/default.asp?REFWHATID=0&LangID=FR,r
IE_Wait>%IE[0]%,r
Wait>delay

Let>FrameName={""}
Let>FormName={""}
Let>FieldName={"FromTxtFld"}
Let>FieldValue={"Saisir ou sélectionner"}
IE_FormFill>%IE[0]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0,r

Let>FrameName={""}
Let>FormName={""}
Let>FieldName={"ToTxtFld"}
Let>FieldValue={""}
IE_FormFill>%IE[0]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0,r

Let>FrameName={""}
Let>FormName={""}
Let>TagValue={"http://staticcontent.airtransatholidays.com/StaticContent/FR/VAT/Web2/Search/Minimoteur/search.gif"}
IE_ClickTag>%IE[0]%,str:FrameName,str:FormName,IMG,HREF,str:TagValue,r

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

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

Let>FrameName={""}
Let>FormName={""}
Let>TagValue={"http://staticcontent.airtransatholidays.com/StaticContent/FR/VAT/Web2/Offerlist/bt_buy.gif"}
IE_ClickTag>%IE[0]%,str:FrameName,str:FormName,IMG,HREF,str:TagValue,r

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

Let>FrameName={""}
Let>FormName={"form1"}
Let>FieldName={"GROUP1PAX1"}
Let>FieldValue={"33"}
IE_FormFill>%IE[0]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0,r

Let>FrameName={""}
Let>FormName={"form1"}
Let>FieldName={"GROUP1PAX2"}
Let>FieldValue={"33"}
IE_FormFill>%IE[0]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0,r

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

Let>FrameName={""}
Let>FormName={"form1"}
Let>TagValue={"RadioInsCost:PWEB"}
IE_ClickTag>%IE[0]%,str:FrameName,str:FormName,INPUT,RADIO,str:TagValue,r

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

Let>FrameName={""}
Let>FormName={"form1"}
Let>TagValue={"SeatSel:AirPort"}
IE_ClickTag>%IE[0]%,str:FrameName,str:FormName,INPUT,RADIO,str:TagValue,r

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

WaitWindowOpen>Webpage Error
SetFocus>Webpage Error
IE_Wait>%IE[0]%,r
Wait>delay

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

LibFree>hIE
Label>end_script[/b]
Webpage Error when i record
Line 3788
Error: Object required

Any idea why?

Regards
Eugene

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Jul 21, 2009 11:29 am

The error message is coming from the web page. You can tell WebRecorder to ignore such errors with Tools/Ignore Browser Dialogs.

There is a lot of dynamic content in the web page you are trying to record and it could be that not all of it can be recorded, especially where there are ActiveX controls etc. Stuff that is dynamically generated by client side scripting can also be problematic. You may need to use some other techniques such as image recognition and plain old key/mouse simulation in order to manipulate these objects.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

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