Skip to content
CodeKruPro

Chrome is installed but there is no chromedriver. What happens?

QuizEasy-MediumAsked in: Accenture, Infosys, Wipro

A laptop has Google Chrome but no chromedriver anywhere. With Selenium 4.6 or later, the test creates a Chrome driver with no driver path set. What happens?

  • Selenium Manager, which ships with Selenium, finds or downloads a matching chromedriver and the test starts
  • The test fails at once: you must always download chromedriver by hand
  • Selenium falls back to the old JSON Wire protocol and drives Chrome without a driver
  • You must add the WebDriverManager library first

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in