Skip to content
CodeKruPro

What changed in Selenium 4 (Java)?

QuizMediumJava onlyAsked in: Accenture, Infosys, Wipro

Which of these are true for Selenium 4 in Java? Choose all that apply.

  • It uses the W3C WebDriver protocol as its standard way to talk to browsers
  • Relative locators such as RelativeLocator.with(By.tagName("input")).below(...) are available
  • driver.switchTo().newWindow(WindowType.TAB) opens a new tab and switches to it
  • new WebDriverWait(driver, 10) with a plain number of seconds still compiles in 4.45
  • Selenium Manager can set up the browser driver for you

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