c# - Selenium can't deal with Confirm Certificate popup in IE -
i'm trying log website , use selenium take screenshot through code. far, it's been working great except 1 problem: every time access website, both manually , selenium, popup asks me confirm security certificate.
the certificate good, cannot life of me selenium accept window. know can deal alerts , accept them thusly:
driver.navigate().gotourl("https://www.securewebsite.com"); driver.switchto().alert().accept();
but box doesn't disappear or react, , attempting driver besides accepting or declining alert (with no effect) results in modal dialog present error.
i'm looking either way turn off popup or way selenium deal in code, preferably latter. let me know if can provide more information.
alright, couldn't figure out, disabled popup. it's poor practice , binding application specific instance of ie, come with.
Comments
Post a Comment