Recall & Review
beginner
What is the first step to set up a Python environment for Selenium testing?
Install Python on your computer from the official website (https://python.org). This gives you the Python interpreter to run your tests.
Click to reveal answer
beginner
Why should you use a virtual environment in Python testing?
A virtual environment keeps your project dependencies separate from other projects. This avoids conflicts and keeps your setup clean.
Click to reveal answer
beginner
Which command installs Selenium in your Python environment?
Use pip install selenium in your command line to add Selenium to your Python environment.
Click to reveal answer
beginner
What is the role of a WebDriver in Selenium testing?
WebDriver controls the browser to run your tests. You need to download the correct WebDriver for your browser (like ChromeDriver for Chrome).
Click to reveal answer
beginner
How do you verify Python and pip are installed correctly?
Run python --version and pip --version in your command line. They should show the installed versions without errors.
Click to reveal answer
What command creates a new virtual environment named 'venv'?
✗ Incorrect
The correct command is python -m venv venv which creates a virtual environment folder named 'venv'.
Which tool installs Python packages like Selenium?
✗ Incorrect
pip is the Python package installer used to add libraries like Selenium.
Why do you need a WebDriver for Selenium tests?
✗ Incorrect
WebDriver acts as a bridge to control the browser for running Selenium tests.
What does the command python --version show?
✗ Incorrect
It displays the version of Python installed on your system.
Which of these is a good reason to use a virtual environment?
✗ Incorrect
Virtual environments isolate project dependencies to prevent conflicts.
Explain the steps to set up a Python environment for Selenium testing from scratch.
Think about what you need before writing and running Selenium tests.
You got /5 concepts.
Why is it important to use a virtual environment when working on Selenium test projects?
Consider what happens if different projects need different package versions.
You got /4 concepts.