Selenium WebDriver with Python - Basics to Intermediate
3.8 (185 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
2,397 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Selenium WebDriver with Python - Basics to Intermediate to your Wishlist.

Add to Wishlist

Selenium WebDriver with Python - Basics to Intermediate

Learn step by step how to automate web applications using selenium webdriver with an easy to learn programming language.
3.8 (185 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
2,397 students enrolled
Created by Gabiste Akoua
Last updated 10/2014
English
Current price: $10 Original price: $30 Discount: 67% off
1 day left at this price!
30-Day Money-Back Guarantee
Includes:
  • 3.5 hours on-demand video
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • By the end of this course, you will be able to build solid selenium automated tests using Selenium Webdriver Python API.
  • You will learn how to install selenium on different platforms (Windows, Mac OS X or Linux Ubuntu).
  • You will know how to locate web elements using XPATH or CSS Selectors.
  • You will learn how to apply actions (clicking an element, sending keys to an element, selecting an element from a drop-down list etc) to web elements.
  • You will learn how to queue selenium actions using ActionChains.
  • You will know how to organize your selenium tests code in packages and how to wrap selenium calls.
  • You will learn how to leverage concepts like Page Objects and UI Mapping in order to make your selenium tests code maintainable.
  • You will know how to use nose to collect selenium tests without the need of manually creating a test suite file.
  • You will learn how to distribute your selenium tests using Selenium Grid.
  • You will learn the best practices when writing your selenium tests.
View Curriculum
Requirements
  • Environment: MAC OS X, Windows or Ubuntu Desktop. Most of the tutorial uses MAC OS X but you will still be able to follow using Windows or Ubuntu.
  • Mac OS X and Ubuntu users: A system with Python 2.7.x is required for this training. OS X Lion, OS X Mavericks, Ubuntu 12, 13 or 14 come with Python 2.7.x already pre-installed.
  • Browsers: Firefox, Chrome and/or Internet Explorer.
  • Be comfortable with the command line.
  • Basic knowledge of Python.
Description

*******************************************************************************************************

Take this course and develop solid selenium tests quickly using a scripting language like Python.

This course covers:

  • Selenium installation on several platforms (Windows, Mac OS X and Linux Ubuntu)
  • Locating elements on a web page using XPATH, CSS SELECTORS etc.
  • The Selenium Webdriver Python API
  • Organizing and refactoring your selenium tests code
  • Implementing Page Objects and UI Mapping in order to make your selenium code maintainable.
  • Collecting selenium tests automatically using Nose so that you don't have to create manual test suite files.
  • Distributing Selenium Tests using Selenium Grid
  • The best practices when writing selenium tests

All concepts are explained using hands-on examples. You will apply your skills on a real web app built especially for this course.

*******************************************************************************************************

"""
This course helped me get an interview at Harvard University.
I have been trying to learn Selenium for ages, but I just wasn't getting it. Then I took a Python course, followed by this course. It was such fun! Because of this course, I was able to upload some coding samples navigating to my Github account, where I was navigating to the login screen and signing in using a test account I created.

The IT people at Harvard University liked it so much they are giving me an interview for a junior automated testing role. I would not be able to have been eligible without this course.

""

T.J. Maher

""
As title says Basics to Intermediate, it covers all

Very Good course, It covers everything from basic setup to best practices of writing solid tests. Best part is the use of unittest and nosetests which is very much required if we have lot of test cases to execute.

course will not only help beginners to start learning the basic concepts but will also help intermediates to understand best practices and managing test suites.

waiting for advanced section :)"

Ayush

""

If you want to learn Selenium with Python Bindings, Take this Course

Awesome course by an extremely helpful and well-organized professor. Clear instructions, lots of good examples and exercises, thorough, logical. Can't say enough good things. Gabiste is very helpful if you have any questions as well. Can't recommend enough.

""

Matt Vaccaro


*******************************************************************************************************

Who is the target audience?
  • QA Engineers and Developers
Students Who Viewed This Course Also Viewed
Curriculum For This Course
Expand All 81 Lectures Collapse All 81 Lectures 03:25:32
+
Introduction
4 Lectures 05:56

Welcome message and tutorial quick overview.

Preview 02:26

This lecture highlights what you should know before taking this course.

Preview 00:36

This lecture briefly describes each component of selenium.

Preview 01:57

This lecture explains how to navigate this course. Where to get the installation instructions PDF? where to get the locator strategies (Xpath or Css Selectors) cheat sheets? etc.

Preview 00:57
+
Installation and Configuration on Mac OS X
7 Lectures 10:43

In this lecture, I give a brief description of the tools that we are going to install. I am also attaching the installation instructions as downloadable content.

Preview 00:17

In this lecture, I show you how to install Firebug, FirePath and Selenium IDE.

Installing Firefox Add-ons
02:53

In this lecture, I show you how to install the ChromeDriver server which is needed to run tests on Chrome.

Installing ChromeDriver
03:03

In this lecture, I am installing the Java SDK.

Installing Java
00:44

In this lecture, I show you how to install pip which a tool for installing and managing python packages.

Installing Pip
01:39

In this lecture, I am installing selenium from the command line.

Installing Selenium
00:52

In this lecture, I am overwriting the "PYTHONPATH". This is important as later on we are going to use relative imports.

Overwriting the "PYTHONPATH"
01:15
+
Installation and Configuration on Windows
9 Lectures 13:09

In this video, I give you a brief description of the tools that we are going to install.

Preview 00:22

In this video, I show you how to install Firebug, FirePath and Selenium IDE.

Installing Firefox Add-Ons
01:30

In this video, I show you how to install and configure Python 2.7 on your Windows environment. I am using Windows 7 Professional for this installation.

Installing Python 2.7
02:35

In this lecture, I show you how to install pip which a tool for installing and managing python packages.

Installing Pip
02:00

In this video, I show you how to install Selenium Webdriver Python Bindings through Pip.

Installing Selenium
00:39

In this video, I am installing the JDK On windows.

Installing Java
01:54

In this video, I show you how to install ChromeDriver standalone server which is needed to run tests on the chrome browser.

Installing ChromeDriver
01:03

In this video, I show you how to install the IEDriver server that matches your Windows system type (32 or 64-bit). We are going to use IEDriver to run tests on the Internet Explorer browser. In this tutorial, I am using Internet Explorer 9 running on Windows 7 Professional 32-bit.

Installing IEDriver
01:29

In this video, I am configuring IE Protected Mode settings. This is required for certain IE versions.

Configuring Internet Explorer
01:37
+
Installation and Configuration on Ubuntu
9 Lectures 14:52

In this video, I give a brief description of the tools that we are going to install.

Preview 00:18

In this video, I show you how to upgrade Firefox and install Firebug, FirePath and Selenium IDE.

Upgrading Firefox and Installing Add-Ons
03:52

In this video, I show you how to install Chrome using the terminal.

Installing Chrome
01:59

In this video, I show you how to install the ChromeDriver standalone server which is needed to run tests on the Chrome browser.

Installing ChromeDriver
02:29

In this video, I show you how to install Java SDK using the terminal.

Installing Java
00:44

In this lecture, I show you how to install pip which a tool for installing and managing python packages.

Installing Pip
01:50

In this video, I show you how to install the selenium python bindings using Pip

Installing Selenium
00:35

In this video, I show you how to overwrite the PYTHONPATH on Ubuntu. This is needed as later on we will use relative imports.

Overwriting The PYTHONPATH
01:39

In this video, I show you how to install the Sublime Text 2 Editor from the terminal. This is the IDE that we will use to write our selenium tests.

Installing Sublime Text Editor
01:26
+
Overview of Selenium IDE
4 Lectures 12:17

In this video, I give you an overview of the Selenium IDE features. Selenium IDE is a tool to record and playback tests. In this lecture, I also show you how to record and playback your tests using this selenium tool.

Selenium IDE Features Overview
08:04

In this video, I explain the difference between an Assert and a Verify command. Understanding these checks is really important since these are two commands that you will have to use when testing web applications with selenium.

Assert Vs Verify
01:20

In this video, I show you how to create a test suite in Selenium IDE.

Creating a Test Suite
02:13

In this video, I discuss some of the limitations of Selenium IDE. Selenium Webdriver is the tool you should use if you want to develop robust tests.

Limitations
00:40
+
Creating My First Selenium Test
2 Lectures 07:22

In this video, I show you how to navigate to a web page using Firefox, Chrome or IE drivers.

Preview 01:45

One can use either Implicit wait or explicit wait to wait for web elements. In this video, I explain the difference between the two.

Implicit wait Vs. Explicit wait
05:37
+
Locating Web Elements
6 Lectures 10:51

In this video, I give a quick description of Xpath and Css Selector.

Introduction
00:45

In this video, I am showing you how to locate elements using Xpath. You need to have Firebug and FirePath plugins installed. You will also find attached a Cheat Sheet (PDF) of some basic Xpath locators.

Locating Elements Using XPATH (Cheat sheet attached)
02:26

In this video, I am showing you how to locate elements using CSS Selector. You need to have Firebug and FirePath plugins installed. You will also find attached a Cheat Sheet (PDF) of some basic CSS locators.

Locating Elements Using CSS Selector (Cheat sheet attached)
02:26

Dynamic elements can be really challenging to locate. In this video, I give you some tips on how to properly locate them.

Dealing with Dynamic Elements
00:45

In this video, I compare locator strategies (Xpath and Css Selector). Does Css always perform better than Xpath? Find out in the video.

Comparing Locator Strategies
01:17

Now show me what you got :-).
In case, you have a hard time seeing the links in the excercise:

http://travelingtony.weebly.com/contact.html

http://travelingtony.weebly.com/store/p1/Leatherback_Turtle_Picture.html

Exercise
03:12
+
Overview of Python Unittest Module
4 Lectures 06:49

In this video, I am giving an overview of the Python "unittest" module which is the equivalent of Java "Junit". This lecture is really important as we will use unittest to write our selenium tests.

Understanding the "Unittest" module
01:13

In this video, I explain how a basic test case is structured: setUp(), the test and tearDown(). I also run a test case and show you what the report looks like.

Structure of a Test Case
02:40

In this video, I provide a list of some of the assert methods. I also show you how to use them in your test cases.

Assert Methods
01:24

In this video, I show you how to create a test suite.

Creating My First Test Suite
01:32
+
Webdriver API: Finding Element(s) and Applying Basic Actions
6 Lectures 17:41

In this video, I show you how to find element(s) using the Webdriver Python API. There are several methods to find either an element or a group of elements. Understanding this is really important when learning Selenium Webdriver since selenium applies actions (click, send keys etc) on web elements.

Methods to Find Element(s)
08:17

What method should you use to find an element or elements? This is what I am discussing in this video.

Comparing Methods of Finding Element(s)
00:34

Time to apply actions on elements using selenium webdriver API. In this video, I show you how to click on an element and how to send keys to an element.

Clicking an Element or Sending Keys to an Element
02:16

Selecting an option from a drop-down is one of the common actions when using selenium webdriver. In this video, I show you how to do it using two methods.

Selecting an Option from a Drop-down
02:38

In this video, I show you how to get a web element text or attribute.

Getting an Element Text or Attribute
01:56

Now it is your time to shine :-).

Exercise
02:00
+
Webdriver API: Switching Focus to a Window, an Alert or a Frame
4 Lectures 06:59

In this video, I show you how to interact with elements inside a web page that opens as a separate window. Selenium webdriver provides a method to switch focus to such a window. Find more in the video :-)

Preview 02:33

How to switch to an alert? How to accept or dismiss an alert? I answer these questions in this video.

Switching Focus to an Alert
01:52

In this video, I show you how to switch focus to a frame. Selenium Webdriver won't interact with any elements inside a frame unless the focus is switch to that frame. Watch the video to see how this is done.

Switching Focus to a Frame
01:33

Your time to shine :-).

Exercise
01:01
8 More Sections
About the Instructor
Gabiste Akoua
3.8 Average rating
225 Reviews
5,601 Students
2 Courses
Selenium Consultant and QA Automation Professional.

With over nine years’ experience testing and automating applications, Gabiste is an expert Selenium consultant and quality assurance professional who is now prepared to share his knowledge on Udemy.

Gabiste has automated many web applications from end-to-end for desktop and mobile using Selenium Webdriver and Appium (with Python), and he has helped organizations from startups to well-established companies put in place solid Selenium automation frameworks and procedures, including training staff on their proper use. He is a strong proponent of using Selenium in the cloud, and he has implemented it for most of the companies he has worked with. He has built complex automation infrastructures that integrate code management systems like Github/Bitbucket, continuous integration servers like Jenkins, and cloud services like Sauce Labs.

Having recently discovered Udemy, he now wants to take advantage of that platform to share his experience and help others. Join Gabiste’s course to gain a deep understanding of Selenium Webdriver.