启动Chrome浏览器弹出“You are using an unsupported command-line flag –ignore-certificate-errors. Stability and security will suffer”
2015-10-22 18:19
1306 查看
采用如下代码:
启动Chrome浏览器时弹出“You are using an unsupported command-line flag –ignore-certificate-errors. Stability and security will suffer”
如下图:
解决办法如下:
完美解决问题!!
public static void launchChrome() { System.setProperty("webdriver.chrome.driver", "files/chromedriver.exe"); WebDriver driver = new ChromeDriver(); Navigation navigation = driver.navigate(); navigation.to("https://www.baidu.com"); }
启动Chrome浏览器时弹出“You are using an unsupported command-line flag –ignore-certificate-errors. Stability and security will suffer”
如下图:
解决办法如下:
public static void launchChrome() { System.setProperty("webdriver.chrome.driver", "files/chromedriver.exe"); ChromeOptions options = new ChromeOptions(); options.addArguments("--test-type"); WebDriver driver = new ChromeDriver(options); Navigation navigation = driver.navigate(); navigation.to("https://www.baidu.com"); }
完美解决问题!!
相关文章推荐
- Hadoop+Zookeeper+NameNode(HA)+ResourceManager(HA)自动切换 配置
- JS中设置定时刷新setInterval函数
- 站长统计js代码
- [Ext JS 4] 实战之多选下拉单 (带checkbox)
- 自己用h5写的转盘。写贴上来吧。
- JavaScript的命名空间
- 音乐小转盘 css3 动画
- MVC5+EF6+BootStrap3.3.5 博客系统之EF(一)
- 基于jQuery.i18n.properties 实现前端页面的资源国际化
- <<JavaScript编程全解>>阅读笔记之javascript数据类型
- 一个简单的js求和
- flatbuffers 使用问题记录
- css3转盘抽奖示例-转底盘
- 简单的分页js代码
- 点滴记录ExtJS练习——ComboBox的四种扩展
- bootstrap中的less
- CSS中position属性( absolute | relative | static | fixed )详解
- hibernate的速度问题--hibernate.jdbc.fetch_size和 hibernate.jdbc.batch_size
- 【JSON】Jackson初学,及常用的例子
- 设计模式之观察者模式(订阅模式),jquery实现