QTP 11 Chrome v17 How to automate SSL Error ”Proceed anyway”
Question ID: 104479
0
0

I have been attempting to automate the override of certificate errors in my script with no luck.
I am not in a position to get the certificate corrected and would like to continue with my automation.

I am getting a page displayed with a tab title of SSL Error
The URL has a red line through https:
The text displayed is
This is probably not the site you are kooking for!
and has two buttons "Proceed anyway" and " Back to safety"

Can anyone suggest a way forward, Object Spy and add object to local repository do not recognize the window displayed

Marked as spam
Posted by (Questions: 2, Answers: 1)
Asked on March 12, 2012 11:55 pm
61 views
Answers (2)
0
Private answer

Perfect that works fine. Thanks very much.
I initially tried entering the code into the QTP script although valid it did not work. As soon as I moved the code to the VB function library everything worked as I wanted.

Marked as spam
Posted by (Questions: 2, Answers: 1)
Answered on March 28, 2012 5:54 pm
2
Private answer

Would key navigation work? You might be able to use keys such as Tab, directional arrows, and Enter to handle the buttons:

Set Wshell = CreateObject(''WScript.Shell'')
Wshell.SendKeys ''{TAB}''
Wshell.SendKeys ''{RIGHT}''
WShell.SendKeys ''{ENTER}''
Set WShell = Nothing

You might have to put a Wait(num of seconds) before sending the keys to slow QTP down to wait for the buttons to appear or in-between each SendKey command to ensure correct playback. Trial and error are best for that. For a list of all of the key commands, please refer to Microsoft's website for the SendKeys method: http://msdn.microsoft.com/en-us/library/8c6yea83(v=VS.85).aspx

Marked as spam
Posted by (Questions: 2, Answers: 477)
Answered on March 20, 2012 10:56 am
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top