【发布时间】:2016-06-30 18:56:41
【问题描述】:
Webdriver 中有一个recognized "capabilities" 列表,其中有“debuggerAddress”。
但我找不到在 Capabilities 类和 CromeOptions javascript api 中设置此类选项的方法。
正如我在几个问题中看到的那样,可以在 Python api 中设置“debuggerAddress”选项(或功能?)。
我尝试的类似于this question, 来自节点应用
-
将应用程序链接到已经启动的 webdriver (cromedriver.exe)。这没关系
webdriver.Builder().usingServer( 'http://localhost:9515' ) -
要求 webdriver 不要启动新的 Chrome 实例,而是使用
--remote-debugging-port=XXXXXChrome 参数链接到已经启动的实例。这应该使用"debuggerAddress"选项/功能来完成,但我无法意识到如何使用 javascript api 来完成。
【问题讨论】:
标签: javascript google-chrome selenium-webdriver selenium-chromedriver browser-testing