小编har*_*cks的帖子

不支持的命令行标志:--ignore-certificate-errors(在Ruby中)

在RubyMine和chromedriver 2.10中使用Ruby 2.0.0 p481

当Chrome启动时,它会在黄色弹出栏中显示一条消息:"您正在使用不受支持的命令行标记:--ignore-certificate-errors.稳定性和安全性将受到影响." 这个简单的例子再现了这个问题.

require "selenium-webdriver" 
driver = Selenium::WebDriver.for :chrome 
driver.navigate.to login_url
Run Code Online (Sandbox Code Playgroud)

Java和Python已经回答了这个问题.我到处寻找Ruby模拟器.有没有人有建议或知道如何将Python答案(不支持的命令行标志:--ignore-certificate-errors)翻译成Ruby?谢谢!

ruby selenium selenium-chromedriver

5
推荐指数
1
解决办法
5115
查看次数

标签 统计

ruby ×1

selenium ×1

selenium-chromedriver ×1