From the course: Using Python for Automation

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Automate basic browser interactions

Automate basic browser interactions - Python Tutorial

From the course: Using Python for Automation

Automate basic browser interactions

- It's time to delegate all those tedious, repetitive online tasks to your Python scripts. Clicking buttons, typing into forms, navigating pages are now all automated. In this lesson, you'll be exploring how to use Selenium to automate basic browser interactions in Python. This is a dummy website for web automation testing. Your goal is to build automation for filling in this web form. Copy the URL and open up automate_basic_browser_starter_code.py in VS code. Some of the code has already been provided in the exercise file. As you follow along in this demo, you'll be replacing the placeholders to complete the code. The necessary libraries have been imported at the top. Note that I'm using the Chrome browser, so I've imported the web driver specific to Chrome. If you're using a different browser, you'll need to adjust the second and third import statements to suit your browser. Paste the URL from the web form to define the URL variable as a stream. The driver has been instantiated, the…

Contents