如何阻止chromedriver自动打开“设置"标签?

编程入门 行业动态 更新时间:2024-10-10 15:20:17
本文介绍了如何阻止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自动打开“设置"标签?

本文发布于:2023-11-06 03:32:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1562619.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标签   chromedriver   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!