You can read the article in CosmoCode.io
Here is the link - CosmoCode.io/h...
Ever wondered how to connect Selenium to a browser that was not opened by Selenium?
In this video, I'll demonstrate a way to make it possible.
Here is an equivalent Java code -
System.setProperty("webdriver.chrome.driver", "C:\\selenium\\chromedriver.exe");
ChromeOptions options = new ChromeOptions();
options.setExperimentalOption("debuggerAddress", "127.0.0.1:9222");
WebDriver driver = new ChromeDriver(options);
System.out.println(driver.getTitle());
Негізгі бет How to connect Selenium to an existing browser that was opened manually?
Пікірлер: 80