Selenium / Quiz

ExpectedConditions: Choose Your Predicate

presenceOf is not visibilityOf is not clickable. Picking the wrong condition creates tests that pass while lying. Six questions on the predicate menu.

Difficulty
Medium
Format
Quiz
Points
150
Estimate
9 min

// MISSION BRIEF

Your Mission

Every explicit wait asks one question. The ExpectedConditions library offers dozens of ready-made questions, and picking a weaker one than you mean is the polite way to write a flaky test.

Six questions on matching conditions to intent. Speed bonus active.

// FIRST CONTACT

Battle teaser

presenceOfElementLocated vs visibilityOfElementLocated:

  1. AVisibility passes for elements still outside the DOM
  2. BPresence passes when the element is in the DOM even if hidden; visibility additionally requires it to be displayed with non-zero size
  3. CPresence requires the element to be on screen
  4. DThey are synonyms
Answers, scoring, hints, and the full battle stay sealed.

// SKILL TAGS

seleniumexpected-conditionswaitsjavaui-automation