|
-
Jan 12th, 2013, 03:31 PM
#1
Thread Starter
New Member
Launch Webpage, then Change URL in Browser Window
I've created a simple script that will launch IE using my default browser (which is IE8 here at work), and goes to a specific URL and uses the send keys method. I'm stuck on how to then redirect the same url (same window) to go to a new webpage.
Below is a watered down example. I'm not really trying to launch google, but another website that requires a username and password. After I login I'd like the webpage to then bounce to another webpage that can only be accessed once I've logged in and it must be the same IE window, not a new window or else it doesn't work. I'd prefer to keep the same code method that I'm using and not have to use the InternetExplorer.Application method because for some reason InternetExplorer.Application doesn't work on my work computer. Thanks!
Code:
set a = createobject("wscript.shell")
a.run "https://www.google.com"
wscript.sleep (1000)
a.sendkeys ("dogs")
wscript.sleep (1000)
a.sendkeys "{Enter}"
wscript.sleep (1000)
'Next, how to i redirect the same url to a new url?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|