Opening the chrome driver and browser on a specific port, and connecting to already opened chrome browser.

Praveen David Mathew
2 min readMar 13, 2020

Introduction:

This article helps you in understanding how to start chrome driver on a specific port, connect to an existing browser session and opening chrome browser with debug port opened through selenium scripts.

You should use ChromeDriverService for starting chrome in a different port:

import org.openqa.selenium.chrome.WebDriver;      import…

--

--

Praveen David Mathew

An open source advocator/WebdriverIO Projectcommiter/Postman Supernova/Postman-html-extra contributor/Stack overflow sqa moderator/Speaker