0
0
Selenium Pythontesting~10 mins

Selenium installation (pip install selenium) 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 import the Selenium WebDriver module.

Selenium Python
from selenium import [1]
Drag options to blanks, or click blank then click option'
Adriver
Bwebdriver
Cselenium
Dbrowser
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'driver' instead of 'webdriver' causes import errors.
Trying to import 'selenium' directly does not give access to WebDriver.
2fill in blank
medium

Complete the command to install Selenium using pip.

Selenium Python
pip [1] selenium
Drag options to blanks, or click blank then click option'
Alist
Bremove
Cinstall
Dupdate
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pip remove selenium' will try to uninstall Selenium.
Using 'pip update selenium' is not a valid pip command.
3fill in blank
hard

Fix the error in the import statement to use Selenium WebDriver.

Selenium Python
import selenium.[1]
Drag options to blanks, or click blank then click option'
Adriver
Bbrowser
Cselenium
Dwebdriver
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'selenium.driver' causes module not found errors.
Trying to import 'selenium.selenium' is invalid.
4fill in blank
hard

Fill both blanks to complete the pip command to upgrade Selenium.

Selenium Python
pip [1] --[2] selenium
Drag options to blanks, or click blank then click option'
Ainstall
Bupgrade
Cremove
Dforce
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pip upgrade selenium' alone is invalid.
Using '--force' is not the standard option to upgrade.
5fill in blank
hard

Fill all three blanks to write a Python code snippet that opens Chrome using Selenium.

Selenium Python
from selenium import [1]

browser = [2].[3]()
Drag options to blanks, or click blank then click option'
Awebdriver
CChrome
Dbrowser
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'browser.Chrome()' causes errors because 'browser' is not imported.
Importing 'driver' instead of 'webdriver' causes import errors.