0
0
Selenium Pythontesting~10 mins

Implicit waits in Selenium Python - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set an implicit wait of 10 seconds in Selenium.

Selenium Python
driver.[1](10)
Drag options to blanks, or click blank then click option'
Await_for
Bwait
Cset_wait
Dimplicitly_wait
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'wait' instead of 'implicitly_wait' causes an AttributeError.
Forgetting to call the method on the driver object.
2fill in blank
medium

Complete the code to import the Selenium WebDriver module correctly.

Selenium Python
from selenium import [1]
Drag options to blanks, or click blank then click option'
Awaits
Bwebdriver
Cselenium
Ddriver
Attempts:
3 left
💡 Hint
Common Mistakes
Importing 'waits' which does not exist.
Using 'driver' which is not a module.
3fill in blank
hard

Fix the error in the code to set implicit wait correctly.

Selenium Python
driver.[1](5)
Drag options to blanks, or click blank then click option'
AimplicitlyWait
Bimplicitly_wait()
Cimplicitly_wait
Dwait_time
Attempts:
3 left
💡 Hint
Common Mistakes
Assigning a value to 'implicitly_wait' instead of calling it.
Using camelCase 'implicitlyWait' which is incorrect in Python.
4fill in blank
hard

Fill both blanks to create a WebDriver instance and set an implicit wait of 15 seconds.

Selenium Python
driver = [1].Chrome()
driver.[2](15)
Drag options to blanks, or click blank then click option'
Awebdriver
Bimplicitly_wait
Cwait
Ddriver
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'driver.Chrome()' which is incorrect.
Using 'wait' instead of 'implicitly_wait'.
5fill in blank
hard

Fill all three blanks to import WebDriver, create a Firefox driver, and set implicit wait to 20 seconds.

Selenium Python
from selenium import [1]
driver = [2].Firefox()
driver.[3](20)
Drag options to blanks, or click blank then click option'
Awebdriver
Cimplicitly_wait
Dwait
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'wait' instead of 'implicitly_wait' for the last blank.
Using different module names for import and driver creation.