jonhoo / fantoccini

A high-level API for programmatically interacting with web pages through WebDriver.
Apache License 2.0
1.68k stars 125 forks source link

How to specify options for webdriver? #213

Closed ksubox closed 1 year ago

ksubox commented 1 year ago

Hello, I need to connect to existing instance of Chrome over Chromedriver. So I need to specify debuggerAddress = "127.0.0.1:xxxx". Could you tell me how to do this?

Actually I need something like that in Java:

ChromeOptions options = new ChromeOptions();
options.setExperimentalOption(“debuggerAddress”,”localhost:9595“);
ChromeDriver driver = new ChromeDriver(options);
jonhoo commented 1 year ago

You should be able to include those via capabilities is my guess, which you can set using ClientBuilder::capabilities.