Issues with IE scripts advancing

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
synacor
Newbie
Posts: 11
Joined: Thu Feb 28, 2008 5:06 pm

Issues with IE scripts advancing

Post by synacor » Fri Jun 27, 2008 1:41 pm

I use MS at work to automate the testing of websites that my company provides content for. It's worked pretty well until yesterday.

What happens is the page just sits there, stalled. If you hit refresh, it will normally continue. What I believe is happening is that there are ads on the pages that don't completely download, therefore the page never fully "loads", therefore the script never gets past waiting.

So I removed the "IE_Wait" tags, but this has not solved the problem.

We run MS to test pages on three different computers, so it's not a machine issue.

Suggestions?
________
buy vapir oxygen
Last edited by synacor on Tue Feb 01, 2011 8:42 am, edited 1 time in total.

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

Post by Marcus Tettmar » Wed Jul 02, 2008 8:08 am

Would need to see the script and website to offer any suggestions. Can you post your code?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

synacor
Newbie
Posts: 11
Joined: Thu Feb 28, 2008 5:06 pm

Post by synacor » Wed Jul 02, 2008 9:56 pm

mtettmar wrote:Would need to see the script and website to offer any suggestions. Can you post your code?
MouseMove>0,0
Let>delay=2

IE_Create>0,IE[0]
let>title={"Microsoft Internet Explorer"}
WindowAction>1,title

//adelphia

Let>atest=0

label>adelphia

IE_Navigate>%IE[0]%,http://www.adelphia.net,r

Wait>delay

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

Let>FrameName={""}
Let>FormName={"sb_searchform"}
Let>TagValue={""}
IE_ClickTag>%IE[0]%,str:FrameName,str:FormName,INPUT,NAME,str:TagValue,r

On occasion, it never gets to the IE_Formfill command. It just sits there with the page loaded, doing nothing.
________
buy vapolution
Last edited by synacor on Tue Feb 01, 2011 8:42 am, edited 1 time in total.

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

Post by Marcus Tettmar » Wed Jul 02, 2008 10:11 pm

Insert a longer wait after the IE_Navigate. At present it's only waiting 1 second and you've removed IE_Wait. So it will not wait until the page is loaded before you try to fill the form. At the point the script is trying to fill the form it probably doesn't exist yet.
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