How do I use certificate-based authentication with WATIR-WebDriver? -


i've been using ruby mechanize several years automated testing of saas product host. site using js more , more, making maintenance of mechanize scripts impossible. i've decided try using watir-webdriver instead. however, login process requires user certificate , password. can't find reference using cert this.

if you're using chrome, can ignore certificate errors passing command line option chrome driver:

b = watir::browser.new :chrome, :switches => ['--ignore-certificate-errors'] 

if you're using firefox, try

profile = selenium::webdriver::firefox::profile.new profile.assume_untrusted_certificate_issuer = true b = watir::browser.new web_driver, :profile => profile 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -