Awesum Stuff

How to Automate IE without QTP/any Automation tool ?

Automate IE with VBS – We can use a plain and simple VBS file in order to perform basics tasks with IE efficiently and quickly without the use of any automation tool. Here’ s how we can open IE, navigate to a website and checkout its contents :-


Set IE = CreateObject(“InternetExplorer.Application”)

IE.visible = 1


IE.navigate websiteName

Wscript.Sleep 5000

outertHTML = IE.document.documentelement.outerhtml


msgbox “HTML = ” & outerHTML

msgbox “Title = ” & pageTitle

Set IE=Nothing


Happy Automating !

Harshit Kohli


Categories: Awesum Stuff

Tagged as: , , , , , , ,

2 replies »

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s