• Packt logo
  • FutureLearn logo

Introduction to Automated Testing Solutions using Python and Selenium WebDriver

Learn how to save development time and spot bugs with test automation using Selenium WebDriver and Python.

A man in a blue shirt sits on a computer, smiling, in an office setting.

Develop your test automation skills and improve your software quality

Test automation allows developers to execute tests and analyse data quickly and efficiently.

On this course, you’ll delve into using Selenium WebDriver to script automated tests using Python as your main scripting language.

Hone your Python programming skills and object oriented principles

As one of the most popular OOP languages in the QA industry, understanding Python is vital for jumpstarting your career in software testing.

Before getting started with Selenium WebDriver, you’ll ensure your knowledge of Python is up to scratch. You’ll be guided through the very basics, exploring data types and variables, program flow control, and classes and objects.

This knowledge will allow you to begin writing test scripts in Selenium, as well as giving you basic programming skills to use in further coding projects.

Set up your Selenium Python package for automation testing

Using your knowledge of Python processes, you’ll move on to setting up your Selenium Python package, ready to dive into writing your first test scripts.

You’ll be guided through basic web driver methods and learn techniques to automate web elements. With access to a host of practice projects, you’ll be able to check your understanding of different elements and their real-world applications.

Learn how to automate functional testing

Functional testing ensures the reliability, quality, and performance of a web application before it is released.

With a variety of examples, you’ll learn how to implement automated functional testing using Python, equipping you to deliver products at a faster rate without compromising on quality.

You’ll finish this course by completing an end-to-end practice project, demonstrating the skills you’ve developed and giving you experience of test automation in action.

Download video: standard or HD

Skip to 0 minutes and 1 second SPEAKER: Looking to learn about automation testing? What if you could learn to use Python and Selenium WebDriver to do just that in three weeks? Let Rahul Shetty from Rahul Shetty Academy show you how to get the automation skills you need to succeed. This course will help you use Python basics, data types, and variables, apply programme flow control in Python, explain object-oriented functions in Python, learn techniques to automate web elements, apply exception handling mechanisms, explain synchronisation in Selenium WebDriver, use different types of locators in WebDriver API, explain functional automation using Python, apply advanced user interactions and child windows, use miscellaneous Selenium Python features, and learn skills in automated testing solutions using Python and Selenium WebDriver.

Skip to 1 minute and 7 seconds Take automation testing to the next level. Learn at your own pace in your own space. Step into your future with introduction to automated testing solutions using Python and Selenium WebDriver from Packt and FutureLearn.

Syllabus

  • Week 1

    Python basics, program flow control and object-oriented principles

    • Introduction to the course

      Welcome to Introduction to Automated Testing Solutions using Python and Selenium WebDriver and the start of your learning journey, brought to you by Packt.

    • Python and Selenium installation

      In this activity, we will discuss Python testing and its importance, Python installation, and working with PyCharm Editor.

    • Python basics, data types and variables

      In this activity, we will discuss Python basics and data types, including List, Tuple and Dictionary data types. We will explore creating dictionaries at run time and adding data to them.

    • Program flow control in Python

      In this activity, we will discuss the if-else condition, loops, programming with for and while loops and functions.

    • Object-oriented functions of Python

      In this activity, we will discuss object-oriented functions of Python including classes, objects, constructor, inheritance and strings.

    • Wrap up

      You have reached the end of Week 1. In this activity, you'll reflect on what you have learned.

  • Week 2

    Python continued and Selenium basics

    • Introduction to Week 2

      Welcome to Week 2. In this activity we'll highlight the main topics that will be covered this week.

    • Reading and Writing files in Python

      In this activity, we will discuss reading and writing files in Python, along with the importance of the readline method.

    • Exception handling mechanism

      In this activity, we will discuss the exception handling mechanism, including raising exceptions, the try-catch mechanism and using "finally" with exceptions.

    • Selenium Python package setup

      In this activity, we will discuss the Selenium Python package setup, how to invoke the Chrome browser and load websites, basic web driver methods and running tests in Firefox and Internet Explorer.

    • Locators in WebDriver API part 1

      In this activity, we will discuss different types of locators including inspecting HTML, the CSS selector and name locators and finding elements with Xpath and CSS using ChroPath.

    • Locators in WebDriver API part 2

      In this activity, we will discuss more types of locators including extracting text from a Web Page with validation Assertions, identifying links with text and building CSS around it and identifying Xpath and CSS.

    • Automate web elements part 1

      In this activity, we will discuss techniques to automate web elements, including identifying static drop-downs, validation assertions, running tests and handling auto-suggestive dynamic drop-downs.

    • Automate web elements part 2

      In this activity, we’ll discuss techniques to automate web elements, including getting the count of options, handling check box dynamically, understanding radio button automation and handling Java/JavaScript alert pop-ups.

    • Wrap up

      You have reached the end of Week 2. In this activity, you'll reflect on what you have learned.

  • Week 3

    Selenium continued and functional automation

    • Introduction to Week 3

      Welcome to Week 3. In this activity we'll highlight the main topics that will be covered this week.

    • Synchronisation in Selenium WebDriver

      In this activity, we will discuss synchronisation in the Selenium web driver, including waits, developing end-to-end TestCase, understanding implicit wait and explicit wait in Selenium.

    • Functional automation using Python

      In this activity, we will discuss functional automation using Python, including when to use explicit and implicit wait, application examples and building logic to automate HTML web tables.

    • Advanced user interactions and child windows

      In this activity, we will explore handling advanced user interactions and techniques for child windows.

    • Selenium Python miscellaneous features

      In this activity, we will discuss miscellaneous Selenium Python features including JavaScriptExecutor, examples of JavaScript executor methods and Chrome options.

    • End-to-end practice project

      In this activity, we will explore an application of the skills we have learnt in this course.

    • Wrap up

      You have reached the end of this course. In this activity, you will reflect on what you have learned.

When would you like to start?

Start straight away and join a global classroom of learners. If the course hasn’t started yet you’ll see the future date listed below.

Learning on this course

On every step of the course you can meet other learners, share your ideas and join in with active discussions in the comments.

What will you achieve?

By the end of the course, you‘ll be able to...

  • Discuss Python basics, data types and variables.
  • Describe program flow control in Python.
  • Explain object-oriented functions in Python.
  • Describe the exception handling mechanisms.
  • Discuss different types of locators in WebDriver API.
  • Discuss techniques to automate web elements.
  • Explain synchronisation in Selenium WebDriver.
  • Describe functional automation using Python.
  • Describe miscellaneous Selenium Python features.
  • Demonstrate skills in automated testing solutions using Python and Selenium WebDriver.

Who is the course for?

This course is designed for aspiring software developers and testers who want to gain a foundational understanding of Selenium Python packages and their test automation applications.

Who developed the course?

Packt

Founded in 2004 in Birmingham, UK, Packt’s mission is to help the world put software to work in new ways, through the delivery of effective learning and information services to IT professionals.

FutureLearn

FutureLearn is a leading social learning platform and has been providing high quality online courses for learners around the world over the last ten years.

What's included?

This is a premium course. These courses are designed for professionals from specific industries looking to learn with a smaller group of like-minded individuals.

  • Unlimited access to this course
  • Includes any articles, videos, peer reviews and quizzes
  • Certificate of Achievement to prove your success when you're eligible
  • Download and print your Certificate of Achievement anytime

Still want to know more? Check out our FAQs

Learning on FutureLearn

Your learning, your rules

  • Courses are split into weeks, activities, and steps to help you keep track of your learning
  • Learn through a mix of bite-sized videos, long- and short-form articles, audio, and practical activities
  • Stay motivated by using the Progress page to keep track of your step completion and assessment scores

Join a global classroom

  • Experience the power of social learning, and get inspired by an international network of learners
  • Share ideas with your peers and course educators on every step of the course
  • Join the conversation by reading, @ing, liking, bookmarking, and replying to comments from others

Map your progress

  • As you work through the course, use notifications and the Progress page to guide your learning
  • Whenever you’re ready, mark each step as complete, you’re in control
  • Complete 90% of course steps and all of the assessments to earn your certificate

Want to know more about learning on FutureLearn? Using FutureLearn

Do you know someone who'd love this course? Tell them about it...