开发者

Sending Keystrokes to selenium RC to press continue button in a security warning dialog box

开发者 https://www.devze.com 2023-04-05 18:17 出处:网络
How to send key strokes like Enter or Space to Selenium RC to click on the Conti开发者_如何学编程nue button of the security warning dialog box in Firefox?

How to send key strokes like Enter or Space to Selenium RC to click on the Conti开发者_如何学编程nue button of the security warning dialog box in Firefox?

Although 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.

Or if there is any other way to click on the Continue button, that would also be fine.


You can't, at least not with just Selenium RC. The usual answer for Windows environments is to use AutoIt.


Here's an alternative solution, not sure if it would be useful for you:

Instead of trying to click on the OK button on the dialog, it may be easier to prevent it appearing by changing settings on your firefox to tell it not to display that specific warning. I think the settings for that could be accessed by typing about:config in the address bar of your firefox, and then typing security.warn in field filter. The one you're looking for is probably one of them!

0

精彩评论

暂无评论...
验证码 换一张
取 消