【发布时间】:2014-02-20 14:22:07
【问题描述】:
鉴于 Selenium 2 关闭了包含我的模拟器配置文件的 devtools 窗口,该配置文件保存在我的 chrome 用户配置文件下。有没有办法使用 selenium 脚本触发 devtools 打开?
这里是关于 devtools 窗口关闭问题的信息 https://sites.google.com/a/chromium.org/chromedriver/help/devtools-window-keeps-closing
尝试其中一些 Chromium 覆盖参数时我感到有些疲惫,只有其中一个似乎有效 http://peter.sh/experiments/chromium-command-line-switches/
有任何影响的是以下
options.addArguments("user-data-dir=/Path/to/chrome/profile");
如果无法打开开发工具窗口或面板,有没有办法初始化模拟器?
【问题讨论】:
标签: selenium selenium-webdriver google-chrome-devtools junit4 selenium-chromedriver