使用watir-webdriver進行自動化我無法處理Firefox「不可信連接」。已經試過這個:profile.assume_untrusted_certificate_issuer = false不適用於我
require 'watir-webdriver'
profile = Selenium::WebDriver::Firefox::Profile.new
profile.assume_untrusted_certificate_issuer = false
browser = Watir::Browser.new(:firefox, :profile => profile)
browser.goto("http://xxx.xxx.xxx.com)
還是得到了同樣的結果?任何幫助,將不勝感激......
你是什麼意思「無法處理Firefox不可信的連接」?你看到的錯誤或意外行爲是什麼? –
當FF打開並顯示URL「http://__.___.___.com」時,FF打開顯示頁面「此連接不可信」(這是由於網站的SSL證書出現問題)。我想要的只是當我運行我的腳本時,這個頁面不應該顯示,並且URL應該直接打開。 – Mandy