Can I pass chromedriver path directly to WebDriver?

I am curious to know if I can the path of chromedriver directly to selenium-webdriver in the code itself, without setting the PATH environment variable?

2 Likes