Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How to use selenium-chrome-driver without chromedriver?


Asked by Holden Pollard on Dec 11, 2021 Chrome A guide to developing tools



There are 2 dependencies. One for Chrome Driver. But to use chrome driver dependency you have to add webdrivermanager dependency. It is compulsory dependency for browser driver.
Additionally,
We can open Chrome browser in Selenium webdriver. We can launch Chrome by instantiating an object of the ChromeDriver class with the help of the below statement. WebDriver driver = new ChromeDriver(); Next we have to download the chromedriver and configure it to our project by following the below step by step processes −
Furthermore, Selenium ChromeDriver is used to run automation tests on Chrome. Read this article to know how to install chromedriver and use it on Windows and MacOS. Join the DZone community and get the full member experience.
Indeed,
It uses Chrome DevTools to control chrome browser. ChromeDriver requires Chrome Browser installed on the local system and uses the same chrome only for performing actions. How to Use ChromeDriver in Our WebDriver Test?
Similarly,
You used to be able to use PhantomJS for this, but since PhantomJS itself is discontinued, so is the Selenium PhantomJS driver. The good news is, that you can simply use Chrome. Chrome itself has gotten the feature of being able to run without an actual browser window.