Skip to content
CodeKruPro

Passing a function versus calling it

QuizEasy-MediumPython only

page_loaded(driver) returns True when the page is ready. wait.until(...) is a Selenium wait that keeps checking a condition until it is true or time runs out. Which statements are true? Pick all that apply.

  • wait.until(page_loaded) passes the function itself, which the wait calls again and again
  • wait.until(page_loaded(driver)) passes the result of one call, a bool
  • Functions can be stored in lists and dicts
  • Only lambdas can be passed as arguments

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