如何阻止chromedriver自动打开“设置"标签? [英] How to stop chromedriver from opening settings tab automatically?

查看:164
本文介绍了如何阻止chromedriver自动打开“设置"标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行ruby watir脚本打开chrome浏览器时,它还会打开另一个chrome标签,其地址为"chrome://settings/help",并将重点放在此标签上.如何禁用创建的其他选项卡?

When I run ruby watir script for opening chrome browser, it also opens up another chrome tab with address "chrome://settings/help" and sets focus on that. How can I disable such additional tabs getting created?

推荐答案

更新:我将chromedriver更新为 2.33 ,用于硒独立软件包和硒服务器的配置.该选项卡不再显示.您可以尝试将您的ruby脚本使用的chromedriver更新为2.33.

Update: I updated the chromedriver to 2.33 that the selenium-standalone package uses and the config of the selenium server. The tab is not appearing anymore. You can try to update the chromedriver that your ruby script uses to 2.33.

如果您需要我的Chrome版本,则Mac OS当前为62.0.3202.89(64位).

If you need my Chrome version, it is currently 62.0.3202.89 (64 bit) for Mac OS.

当我尝试在nodejs中使用硒自动化时,我遇到了这个问题.我尝试了新的chromedriver 2.33,但问题仍然存在.目前,我只是将Chrome降级为59版,直到可以修复为止.

I ran into this issue when I tried to used our selenium automation in nodejs. I tried the new chromedriver 2.33 but the issue persisted. I just downgraded my Chrome to version 59 at the moment until it can be fixed.

这篇关于如何阻止chromedriver自动打开“设置"标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆