Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recovery Manager not handling windows pop up error message.
#5
Solved: 11 Years, 4 Months ago
Instead of using QTP to deal with the pop-ups, you can use vbscript to disable the popups directly by accessing the Hkeys in the registry. Below is the code for:

'If the address(URL) in a certificate is not valid
Code:
HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set objReg = GetObject("winmgmts:\\"&strComputer& "\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\InternetSettings"
ValueName = "WarnonBadCertRecving"
dwValue = 0
objReg.SetDWORDValue HKEY_CURRENT_USER, strkeypath, ValueName, dwValue

'Issue a warning if you are switching between secure and non-secure sites
Code:
HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set objReg = GetObject("winmgmts:\\"&strComputer& "\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\InternetSettings"
ValueName = "WarnonZoneCrossing"
dwValue = 0
objReg.SetDWORDValue HKEY_CURRENT_USER, strkeypath, ValueName, dwValue

'Issue a warning when information is sent to another website
Code:
HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set objReg = GetObject("winmgmts:\\"&strComputer& "\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\InternetSettings"
ValueName = "WarnonPostRedirect"
dwValue = 0
objReg.SetDWORDValue HKEY_CURRENT_USER, strkeypath, ValueName, dwValue

Put the above code in a function or a library and associate the library with your tests.

The above solution proved a lot faster and reliable than Recovery Scenarios and .Exist methodologies.


Tell us all if the above worked for you. If it has, other users will be sure where to look for when they encounter this problem.
Reply


Messages In This Thread
RE: Recovery Manager not handling windows pop up error message. - by gammaflare - 08-06-2008, 10:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help for instruction to click on Skip button in the warning message vijilesh 0 1,516 09-16-2018, 03:48 PM
Last Post: vijilesh
  SAP GUI gets hanged while closing the Windows Pop Up kathirvelnagaraj 0 5,535 10-23-2015, 06:47 PM
Last Post: kathirvelnagaraj
Rolleyes QTP pop up window handling piyush8793 3 16,890 10-15-2015, 11:03 PM
Last Post: Venkateswarluponna
Exclamation Login & logout in Siebel and clicking pop-up button yuetling926 7 11,366 07-09-2014, 10:43 PM
Last Post: hhamilton
  select a date from pop-up calendar Dertjon 1 5,765 05-13-2014, 02:29 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 2 Guest(s)