Selenium / Quiz
Selenium in Python: Modern Idioms
find_element_by_id is dead, EC wants tuples, and your teardown leaks Chrome processes. Six questions on writing Selenium 4 Python that is not stuck in 2019.
- Difficulty
- Easy
- Format
- Quiz
- Points
- 100
- Estimate
- 9 min
// MISSION BRIEF
Your Mission
You are reviewing a Python suite migrated from Selenium 3 to 4. Half the calls raise AttributeError, the waits pass the wrong argument shapes, and CI is littered with zombie chromedriver processes.
Six questions on the Python binding's current idioms. Speed bonus active.
// FIRST CONTACT
Battle teaser
driver.find_element_by_id("email") raises AttributeError on Selenium 4.3+. The replacement:
- Adriver.get_element(By.ID, "email")
- Bdriver.find_element_by_css("#email")
- Cdriver.find_element(By.ID, "email")
- Ddriver.locate("id", "email")
Answers, scoring, hints, and the full battle stay sealed.
// SKILL TAGS
seleniumpythonwaitswebui-automation