This project is a basic web automation test for signing up on the Selenium Blog website using Python and Selenium WebDriver. The test script automates the process of filling out the signup form, entering an email and verifying the success message.
Before you start, make sure that you have the following apps on your machine:
- Python 3.x
- Selenium WebDriver
- Firefox browser
- Geckodriver (for Firefox)
-
Clone the repo:
git clone https://github.com/yourusername/selenium-blog-signup.git cd selenium-blog-signup -
Install the required Python packages:
pip install selenium
-
Download and install Geckodriver:
- Download Geckodriver from the official website.
- Extract the downloaded file and add the path to your system's PATH environment variable.
-
Navigate to the project directory:
cd selenium-blog-signup -
Run the test script:
python test_signup.py
The test script test_signup.py performs the following actions:
- Opens the Firefox browser and navigates to the Selenium Blog signup page.
- Fills out the signup form with a unique username and email address.
- Submits the form.
- Verifies that the success message is displayed.