WebDriver Maven Setup Tutorial

WebDriver Maven Setup is an essential tool to help better manage our test application. We can use Maven to help manage our dependency versions via the maven pom file. In this video tutorial we will go through how to setup Maven with WebDriver from scratch.

WebDriver Maven Setup Tutorial

webdriver maven setup

Direct Video Link

Maven is an excellent and very common tool in Java circles. Maven can easily be used to manage dependencies, create tasks and goals, produce artifacts and much more. The scope of this tutorial is to only discuss Maven setup but we will certainly revisit these ideas again sometime in the future.

WebDriver Test Rule Tutorial

WebDriver Test Rule is a way of performing further actions based on the results of a test. Assuming that a test a failed then we can write a rule to run certain actions when a test failures occurs. These tests rules are not subject to test failures only but are available for multiple test completions methods.

WebDriver Test Rule Video Tutorial

webdriver test rule

Direct Video Link

Test Rules can help to run additional methods which only run depending on the outcome of a test. This can be used to further help our test application in providing support code for our tests.

WebDriver Logger Tutorial

WebDriver Logger is the combination of using a Java logging class as well as a WebDriver to help log the events and actions which are taking place as your tests are running. The logger class can also help with logging managements as well as exporting your logging information into an external source file.

WebDriver Logger Video Tutorial

webdriver logger

Direct Video Link

We can use the logger class provided by Java top help define logging levels. This can help identify issues as well as manage noise levels when outputting logs. We can also easily export this into an external file such as a text file if needed.

WebDriver Randomizing Data Tutorial

WebDriver randomizing data is an idea where we want to ran the same test using randomly generated data. Using randomized test data for a test can bring to light test failures which otherwise may have passed. When randomizing data in a test your test scenario does not change but the data used for the test will and this may result in errors which you might have otherwise not know about.

WebDriver Randomizing Data Video Tutorial

webdriver randomizing data

Direct Video Link

Using randomized data can be a great way of uncovering bugs and defects in your code base whilst still ensuring that the scenario which you are testing is covered by your tests.

WebDriver Wait Tutorial

WebDriver Wait is an idea where we may want to wait for something to happen or appear before we decide to move onto the next step in a test. There are a number of ways we can wait inside a test and some approaches are better than others.

WebDriver Wait Video Tutorial

webdriver wait

Direct Video Link

In this video tutorial we will discuss how to wait until a condition has been satisfied before continuing on with our test. We will adventure ideas where we discuss how waiting in a tests actually effects the test as well as alternative methods to wait.

WebDriver Keyword Framework Tutorial

WebDriver Keyword framework is essentially an application framework which allows running tests defined by an external source such as a text of Excel sheet. This type of framework offer much versatility in writing a number of different tests without actually having to write much code. This type of testing can help really cover multiple permutations of a single given tests by pumping in as many variations of a given test. This video tutorial is divided into three parts.

WebDriver Keyword Framework Video Tutorial

webdriver keyword framework
Direct Video Link

webdriver keyword framework
Direct Video Link

webdriver keyword framework
Direct Video Link

The above three video tutorial start off with the basics of setting everything up and all the way to actually running tests driven by an external data source.

WebDriver Hamcrest Tutorial

WebDriver Hamcrest is an excellent alternative to use instead of the assertions which JUnit provides. In this video tutorial I will demonstrate the advantages which you can leverage when using Hamcrest assertions as opposed to JUnit assertions.

WebDriver Hamcrest Video Tutorial

webdriver hamcrest

Direct Video Link

Combing WebDriver with Hamcrest is an excellent way of helping debug when your tests fail. Assuming you had written a test using JUnit assertion methods then more likely then not your failures will simply be an assertion failure. However if you use Hamcrest then you will be able to get the actual results vs the expect results. This level of information can greatly help discover the reason behind the test failure.

WebDriver Action Builder Tutorial

WebDriver Action Builder class can be used to take control of the mouse cursor on a web page when writing web browser automated tests. This can be very helpful for writing tests where elements on a web page only appear on actions such as mouse move or hover over.

WebDriver Action Builder Video Tutorial

webdriver action builder

Direct Video Link

Sometimes elements remain hidden in the html source code until the mouse cursor is positioned over an element. For such scenarios the Action Builder class is an ideal technique to use as it allows the programmer to simulate such scenarios.

WebDriver Headless Browser Tutorial

WebDriver Headless Browser is the concept of running web browser based tests but in an invisible browser. When you run a test using Selenium WebDriver a browser window is opened in which you can visually see your http calls being made as well as interactions with your given web page. When running in a headless state your tests still run but the web browser page does not open.

WebDriver Headless Browser Video Tutorial

webdriver headless browser

Direct Video Link

There are many reasons why you may want to run your tests in a headless state. For instance running your tests in a CI environment such as Jenkins where you wont see a physical instance of a web browser.

WebDriver Screenshot Tutorial

WebDriver Screenshot taken can help to visually see a webpage. WebDriver provides many features but sadly there any methods which allows us to make visual assertions. Taking screenshots can help a person to visually assert that a test has passed.

WebDriver Screenshot Video Tutorial

webdriver screenshot

Direct Video Link

Note that when your tests are running in a headless state it is not possible to take screenshots as there is no visual representation of the webpage while the test is running. It is also advisable to write tests which are fully self sufficient. In other words a given tests should not need any manual intervention to decided if it has passed or not.