seleniumn 在运行时打开开发者工具(F12)

Posted tynam

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了seleniumn 在运行时打开开发者工具(F12)相关的知识,希望对你有一定的参考价值。

seleniumn 在运行时打开开发者工具(F12)

options = webdriver.ChromeOptions();
options.add_argument("--auto-open-devtools-for-tabs");
driver = webdriver.Chrome(chrome_options=options);

启动浏览器时会自动打开开发者工具

以上是关于seleniumn 在运行时打开开发者工具(F12)的主要内容,如果未能解决你的问题,请参考以下文章