Skip to content
CodeKruPro

What changed in Selenium 4 (Python)?

QuizMediumPython onlyAsked in: Accenture, Infosys, Wipro

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

  • Lookups use driver.find_element(By.ID, "x"); the old find_element_by_id style was removed in 4.3
  • driver.switch_to.new_window("tab") opens a new tab and switches to it
  • Relative locators are available through locate_with
  • webdriver.Remote(..., desired_capabilities={...}) is the way to start a Grid session
  • 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