We have been using Selenium 3 (selenium-java 3.141.59)with Chrome Driver version 77. Lately we are trying use Chrome Driver version 83 or even Chrome Driver 107 with Selenium 3. Does going to Chrome version 83 or 104 require an upgrade to Selenium 4?
Asked
Active
Viewed 27 times
0
-
Why not try it out and see what happens? – Nico Haase Jul 07 '23 at 15:40
1 Answers
0
Using selenium3 and/or selenium4 broadly google-chrome and ChromeDriver major version must be in sync.
You can find a couple of relevant detailed discussions in:
- Server terminated early with status 1 error with Selenium for ChromeDriver and Chrome Browser and the log message "Only local connections are allowed"
- How to work with a specific version of ChromeDriver while Chrome Browser gets updated automatically through Python selenium
However, using Selenium v4.6 and onwards Selenium Manager would automatically download the matching ChromeDriver and you can simply:
Python sample code block:
from selenium import webdriver from selenium.webdriver.chrome.options import Options options = Options() options.add_argument("start-maximized") driver = webdriver.Chrome(options=options) driver.get("https://www.google.com/")
Java sample code block:
import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; ChromeOptions options = new ChromeOptions(); options.addArguments("--start-maximized"); WebDriver driver = new ChromeDriver(options); driver.get("https://www.google.com/");

undetected Selenium
- 183,867
- 41
- 278
- 352