Thanks to a previous post, I can invoke IE and bring up the desired web page. Unfortunately the subsequent SEND and PRESS do not appear to accomplish anything. Help! The relevant lines from my macro are
Run Program>c:\program files\internet explorer\iexplorer.exe "webPage"
WaitWindowOpen>internet explorer*
SetFocus>internet explorer*
Send>%organizationId%
Press Tab
Send>%userId%
Press Tab
MessageModal>ending
I see the browser open to the desired page. Next I see the "ending" box from the MessageModal. The web page has not changed.
-brian
help with a web page
Moderators: Dorian (MJT support), JRL
-
- Automation Wizard
- Posts: 1101
- Joined: Fri Jan 07, 2005 5:55 pm
- Location: Somewhere else on the planet
It won't necessarily fix your issue but as I learned from support in this thread http://www.mjtnet.com/usergroup/viewtop ... lorer+busy waitwindowopen is not a reliable way to wait for a webpage to load. The correct way is to use IE's own busy function.
Sub OpenPage(URL,Wait)
Dim IE
Set IE = CreateObject("InternetExplorer.Application")
IE.visible = 1
IE.navigate URL
do while IE.Busy and Wait
loop
End Sub
Sub OpenPage(URL,Wait)
Dim IE
Set IE = CreateObject("InternetExplorer.Application")
IE.visible = 1
IE.navigate URL
do while IE.Busy and Wait
loop
End Sub
-
- Macro Veteran
- Posts: 252
- Joined: Fri Apr 15, 2005 8:32 am
You can't. Normally you would use GetObject instead of CreateObject but GetObject isn't supported by Internet Explorer. So you need to create the window you automate.
MJT Net Support
[email protected]
[email protected]
-
- Macro Veteran
- Posts: 252
- Joined: Fri Apr 15, 2005 8:32 am