Category

Selenium

Add some ‘Weight’ to your Selenium Tests with ‘Waits’! – Part 4: Create your own Wait Methods

By | Automation, Selenium | 3 Comments

In the previous three blog posts in this series we have covered three different types of Selenium waits: Part 1 – Implcit Waits Part 2 – Explicit Waits Part 3 – Fluent Waits Feel free to go back over any of the posts above if you need to refresh your memory or have a recap. In this, the final blog post of the series on Waits, we are going to…

Read More

Add some ‘Weight’ to your Selenium Tests with ‘Waits’! – Part 3: Fluent Waits

By | Automation, Selenium | 5 Comments

In the last blog post we looked at Explicit waits, and we discussed why these are probably the default waits that you want to start with for the majority of your Selenium scripts, especially if you are new to Selenium. Today we are going to look at another type of waits – Fluent waits. Fluent waits are a little bit more advanced in that they have more customisation available to…

Read More

Add some ‘Weight’ to your Selenium Tests with ‘Waits’! – Part 2: Explicit Waits

By | Automation, Selenium | 5 Comments

In Part 1 of this series on Waits in Selenium (here) we had a look at Implicit Waits. We observed that whilst Implicit Waits are a good way to quickly and easily add some waits to your Selenium tests, they are far from perfect and they do raise some problems for us. Today we are going to learn about another type of waits – Explicit Waits. These types of waits…

Read More

Add some ‘Weight’ to your Selenium Tests with ‘Waits’! – Part 1: Implicit Waits

By | Automation, Selenium | 5 Comments

In this series of blog posts we are going to learn about a fundamental component of Selenium tests – waits. Why would we need to use waits in our tests? Well whenever you are using a webpage you will often find that certain elements are not available on the page right away, either because they are still being loaded or for some other reason. Without any waits in your scripts,…

Read More

Using Assertions in your Selenium Tests

By | Automation, Selenium | No Comments

In today’s blog post we are going to learn a bit more about some of the most common assertions used in Selenium testing and get some practice with them. Writing good assertions are a critical part of writing good automation tests as they are used to determine whether an expected behaviour has occurred (or not) and will control whether or not the test will ultimately pass or fail. For this…

Read More

Essential Tools for Writing Selenium Tests – FireBug & FirePath

By | Automation, Selenium | 3 Comments

In our previous blog posts we have talked a lot about getting Selenium itself installed and looked at some of the other external dependencies that we need for our automation testing. However, we have yet to write any meaningful tests beyond opening a web page and checking that the title is correct. That is going to change very soon, but before we move on there are a couple more (closely…

Read More

Running Selenium Tests in Google Chrome with ChromeDriver

By | Automation, Selenium | 4 Comments

So if you have been following along with my recent blog posts, you should be up and running with Selenium and hopefully executing some basic tests with the Firefox browser. As I mentioned before, Firefox is a great browser to start with because there is no extra configuration required. However, in your automation career you will doubtless need to use additional browsers. Today we are going to look at getting…

Read More

A Gentle, Newbie-Friendly Guide to Installing Selenium WebDriver – Part 3: Get Testing!

By | Automation, Selenium | 17 Comments

In Part 2 (here) of this guide, we went through downloading the Intellij IDE and installing Selenium and Junit through Maven. This is all we need to get started with writing automated tests, so let’s go ahead and jump straight in! Before we go on, I am going to assume that you have the Firefox browser installed. If you don’t, go ahead and download it (here). Firefox is a great…

Read More

A Gentle, Newbie-Friendly Guide to Installing Selenium WebDriver – Part 2: Get Intellij!

By | Automation, Selenium | 12 Comments

If you followed the 5-minute “Getting Started with Maven” guide from the previous post (link here incase you missed it), then you should now have Maven installed on your machine. From installing Maven, you should inturn also have installed the JDK on your machine. If not, go and check the Maven guide and come back here once you have the JDK and Maven installed. We are now ready for the…

Read More

A Gentle, Newbie-Friendly Guide to Installing Selenium WebDriver – Part 1: Use Maven!

By | Automation, Selenium | No Comments

For my first (meaningful) post, I thought a good place to start would be to share how I went about installing everything that I needed to start doing automated testing with Selenium WebDriver. There are multiple ways to get up and running with Selenium but this is my approach. Its a fairly easy way to get started quickly whilst also being quite comprehensive. This guide will detail how to get…

Read More