IE Backward Navigation

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Guest1

IE Backward Navigation

Post by Guest1 » Thu Apr 22, 2004 3:13 am

I thought this would work but it seems to give me an error. Any ideas? Trying to get IE to go back one page.

VBSTART
Dim IE

Sub GoBack
IE.GoBack()
End Sub

VBEND

VBRun>GoBack

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Apr 22, 2004 4:07 am

I don't see any definition of IE. So there is no way for the .back method to work

How about ALT LeftArrow command vs. vbeval>?
Press ALT
Press LEFT
Release ALT
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Guest

Post by Guest » Thu Apr 22, 2004 12:21 pm

Do have other VB code to define and invoke IE but didn't post it for the sake of brevity.

Will try your suggestion though.

Thanks.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Apr 22, 2004 2:59 pm

If the VB code is correct are you making sure you have focus before calling VB?

Something like this:
VBStart
Function
End Functions
VBEnd

WaitWindowOpen>IE_WindowName*
SetFocus>IE_WindowName*
WaitReady>1
VBRun>GoBack
But also think the ALT-Left will be good vs. GoBack()
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1415
Joined: Sun Nov 03, 2002 3:19 am

Post by Dorian (MJT support) » Thu Apr 22, 2004 6:09 pm

Bob Hansen wrote: But also think the ALT-Left will be good vs. GoBack()
Hi Bob,

If you want to use even less keys, Backspace does the same thing too.

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