You can read the article in
Here is the link -
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());
Watch video How to connect Selenium to an existing browser that was opened manually? online without registration, duration 09 minute 44 second in high hd quality. This video was added by user CosmoCode 18 August 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 36 thousand once and liked it 448 people.