Quantcast
Viewing all articles
Browse latest Browse all 21193

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?


Viewing all articles
Browse latest Browse all 21193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>