One of the recognized "capabilities" in Webdriver is the "debuggerAddress," but I am having trouble finding a way to set this option in either the Capabilities class or ChromeOptions in the JavaScript API. It seems that setting the "debuggerAddress" option/capability is possible in the Python API based on some questions I have seen.
I am trying to do something similar to what was asked in this question, from a Node app.
To connect the app to an already started webdriver (chromedriver.exe), I use:
webdriver.Builder().usingServer('http://localhost:9515')
I want the webdriver to not start a new Chrome instance, but rather link to one that has already been started with the
--remote-debugging-port=XXXXX
Chrome parameter. This should be done with the "debuggerAddress" option/capability, but I am unsure how to achieve this using the JavaScript API.