|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Security Warning on final page, how to removeHi,
I'm in the middle of creating an automated test suite for my company's website. Everything is going smoothly until the final page, where when I select the "Continue" button a security pop-up appears:
"Security Warning
Athough this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party.
Are you sure you want to continue sending this information?"
I am unable to find a command which would allow me to continue, without having to left click my mouse button. I have over 40 tests and if I have to manually do this each time then it defeats the purpose of automating the website.
I have de-selected all the warning messages in the "Options" setting.
Does anyone have any idea what command I could use in my script to get rid of this warning pop-up.
Currently I have a "Cancel"! and "Continue" button on the final page.
I clickAndWait the "Continue" button.
The "Security Warning" pops-up.
I select "Continue" using the mouse.
Thanks,
cats_dlk
|
|
|
Re: Security Warning on final page, how to removehi cats_dlk,
If using Firefox 3, see the following post https://developer.mozilla.org/En/Cert_override.txt The solution I use to get past this security pop-up is only applicable to Firefox 3 browsers and might be more of an hack than a fix but it works. 1. Run the selenium test 2. Select "Accept this certificate permanently" when prompted by popup 3. Click on the OK button (it might be neccessary to have a pause after this because we need to open explorer to find a file now) 4. Open Windows Explorer and navigate to => "C:\Users\xxxxxxxx\AppData\Local\Temp\customProfileDirxxxx" 5. This is a temparary profile created by Firefox which contains a file called "cert_override.txt" 6. Copy "cert_override.txt" to your temp directory 7. Stop your selenium server. 7. Open your "selenium-server.jar" file from "c:\selenium-remote-control-xxx\selenium-server-xxx" using WinRar 8. Drag "cert_override.txt" file into the "selenium-server.jar\customProfileDirCUSTFFCHROME" folder in WinRar (do not delete or edit anything in the .jar file!!!!!) 8. Close WinRar, start selenium and try it again :) Note: Do all this on a TEST machine first, to verify its working for you!!! Hope this is helpful, Andre
|
|
|
Re: Security Warning on final page, how to removeHi Andre,
Thanks for your reply. It's actually a different pop-up, it's not one of the Certificate ones. It just says: "Security Warning Athough this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party. Are you sure you want to continue sending this information?" The pop-up has two options either "Continue" or "Cancel". I have to select either one. I have a suite of 42 tests and so at the end of each one this pop-up appears, which defeats the purpose of having an automated test suite. The idea was to have the testSuite running on a stand-alone pc with no user intervention for the full 42 test cases, but this can't be done at the moment. If you need any further information please let me know. Brgds, cats_dlk
|
|
|
Re: Security Warning on final page, how to removethis should sort you out selenium.KeyPressNative("10"); just emulating hitting "Enter Key" |
| Free embeddable forum powered by Nabble | Forum Help |