Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium Test Project

This project demonstrates how to automate a Google search using Selenium WebDriver in Python. The script opens Google, performs a search for a specific query, waits for the search results to load, and prints the titles of the search results.

In this project, I learned how to use Selenium WebDriver to automate web tasks. I gained experience with:

  • Initializing and configuring the WebDriver.
  • Interacting with web elements using different locators.
  • Implementing waits to handle dynamic web content.
  • Extracting and printing information from web pages.
selenium.demo.mp4

Project Description

The GoogleSearchTest project automates the following tasks:

  1. Opens the Google homepage.
  2. Searches for "Automation Step By Step".
  3. Waits for the search results page to load.
  4. Prints the titles of the search results.
  5. Closes the browser.

Technologies Used

  • Python
  • Selenium WebDriver

Prerequisites

Before running this project, you need to have the following installed:

  • Python (version 3.6 or higher)
  • Chrome browser
  • ChromeDriver (compatible with your Chrome browser version)
  • Selenium (install via pip)

Setup Instructions

  1. Clone the repository:
    git clone [https://github.com/ejmoore99/SeleniumTestProject1]
    cd GoogleSearchTest
    
  2. Install the required Python packages:
pip install selenium
  1. Download ChromeDriver:

Download the ChromeDriver that matches your Chrome browser version from here. Extract the downloaded file and place it in a directory of your choice. Update the path to the ChromeDriver in the script if necessary.

Running the Script

1. Navigate to the project directory:

cd GoogleSearchTest

2. Run the script:

python google_search_test.py

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages