*'Create the shell object*
Set WshShell = CreateObject("WScript.Shell")
*'Path to edit in registry*
popupKeyPath = "HKCU\Software\Microsoft\Internet Explorer\New
Windows\PopupMgr"
*'Disable the IE pop-up blocker*
WshShell.RegWrite popupKeyPath, "no", "REG_SZ”
'Enable the IE pop-up blocker
WshShell.RegWrite popupKeyPath, "yes", "REG_SZ"
On Thu, May 12, 2011 at 9:06 PM, Shanmukha Bollapragada
<[email protected]>wrote:
> Hi - Can anyone please send me the piece of the code that disables the pop
> up blocked from with the QTP script ?
>
> I am looking for something like this
>
> Launch the Browser
> Disable POP up blocker (DIsable = I would like to see the pop up, don't
> want to see a yellow strip on the IE which blocks)
> Please note that I don't want to do this via Registry, unless there is no
> other go. The reason I don't want to do this via Registry is because I don't
> have permissions
>
> Thank you
> Shan
>
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en