Skip to main content
Selenium is an open-source tool for automating web browsers. Selenium supports multiple programming languages, including Python, Java, and C#, and is widely used for web testing, scraping, and automating repetitive tasks. Selenium works across browsers like Chrome, Firefox, and Edge, and offers robust features for interacting with web elements. For more information, visit The Selenium Browser Automation Project.

Check whether Python is installed

Before anything, check whether Python is installed. Open a terminal (Command Prompt or shell) and run:
If Python is installed, this displays the version number:
Terminal showing the installed Python version number
If Python is already installed, skip ahead to Step 2 and install Selenium.

Step 1: Install Python

1

Download Python

Download Python from the official Python downloads page.
Python downloads page
2

Run the installer

Run the installer and make sure to check the option Add Python to PATH during installation.

Step 2: Install Selenium and WebDriver

1

Install Selenium

2

Install WebDriver

Step 3: Create a project directory

Create the project directory:
Navigate to the newly created directory and create a subdirectory for scripts:

Step 4: Write your Selenium script

Open a text editor and paste the following script:
Save the file as selenium_test.py inside the src directory. The script above uses IP whitelisting, so replace the proxy string with your own.

Step 5: Run your script

Open Command Prompt, navigate to the src directory, and run:

Expected output

The browser opens, navigates to https://www.maxmind.com/en/locate-my-ip-address, and displays your IP address and related details.
MaxMind page opened by Selenium showing the proxy IP address
The Command Prompt prints the page title:
Command Prompt showing the page title printed by the Selenium script
You are now ready to personalize your script and start using Selenium with NodeMaven proxies.