selenium chrome driver select certificate popup confirmation not working

后端 未结 5 878
旧时难觅i
旧时难觅i 2020-12-10 05:09

I am automating tests using selenium chromewebdriver 3.7. Whenever I lauch the site, I get a certificate selection popup like the one below

However I am not able to

5条回答
  •  爱一瞬间的悲伤
    2020-12-10 06:09

    One suggestion would be, use Sikuli to click on OK button in the certificate.

    Steps:

    1. Take screenshot of OK button and save it.
    2. Download sikuli-script.jar and add it to Project's Build path.
    3. Take a screenshot of the UI Element to be clicked and save it locally.
    4. Add the following code to the test case.

      Screen s=new Screen(); s.click(“image name”);

    Other functions Sikuli provides can be found here.

提交回复
热议问题