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 :-

<<Code>>

Set IE = CreateObject(“InternetExplorer.Application”)

IE.visible = 1

websiteName=”www.wordpress.com”

IE.navigate websiteName

Wscript.Sleep 5000

outertHTML = IE.document.documentelement.outerhtml

pageTitle=IE.Document.title

msgbox “HTML = ” & outerHTML

msgbox “Title = ” & pageTitle

Set IE=Nothing

<</Code>>

Happy Automating !

Harshit Kohli

Advertisements

Categories: Awesum Stuff

Tagged as: , , , , , , ,

2 replies »

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s