当我运行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自动打开“设置"标签?
发布评论