Saturday, May 8, 2010

Silent Property

Silent Property Example

By default silent property is false (i.e. it shows all the dialog boxes etc. which open while opening any website). Here I am opening bookmyshow.com in IE8. When this website is opening, it asks me if you want to "install Adobe Flash Player" or not, I just click on "X" on the top right to close this box. Now if I run this code again by uncommenting the line "objIExplorer.silent = True" then it does not show that "install adobe flash" dialog box.

Set objIExplorer = CreateObject("internetexplorer.application")
objIExplorer.visible = True

objIExplorer.silent = True

a=objIExplorer.silent
msgbox a

objIExplorer.Navigate2 "http://www.bookmyshow.com/"

Do While objIExplorer.busy
WScript.Sleep 500
Loop


See all Methods & Properties of InternetExplorer Object here.