How to read text from PDF file using Java and Selenium Webdriver

Sometimes we need to verify a PDF content but Selenium WebDriver doesn’t have any direct methods to do that. If we want to extract the PDF content then we can use for example Apache PDFBox. Simply download the .jar files and add them to your Eclipse Class path. Here is a sample script which will […]

Read more
VisGrid – a GUI for Selenium Grid

VisGrid is a very useful GUI tool to start/stop the Selenium hub and to add/remove nodes to it. First step to download the program from http://www.codoid.com/products/view/2/30 and to extract wherever you want. We can start to program with the ‘VisGrid.jar’ file.

Read more
How to install and setup Jenkins

We use Ubuntu system as a base for this tutorial. Before we want to install Jenkins we need to install Java JDK. Ubuntu is using Openjdk, to install it type the following to terminal: $sudo apt-get install openjdk-7-jdk Ubuntu installs the JDK (in my case)to the /usr/lib/jvm/java-7-openjdk-amd64/  folder. In additional, Ubuntu also puts the JDK […]

Read more
Reading test data from a CSV file using JUnit

It is recommended that we store the test data separately from the test scripts. This data can be exported in CSV format. We can read CSV files using Java IO and utility classes. In this blog, we will read data from a CSV file and use this data to execute the test script.

Read more
Creating a data-driven test with JUnit

We can create data-driven Selenium WebDriver tests using the JUnit parameterization feature. This can be done by using the JUnit parameterized class runner. In this blog, we will create a simple JUnit test case to test Facebook registration. We will specify the test data within our JUnit test case class. We will use various JUnit […]

Read more
Recording videos of tests in Java

In Java, we can extend Selenium WebDriver test scripts to record videos by using an open source tool named Monte Media Library. In this blog we will look at how to configure and use the Monte Media Library’s ScreenRecorder class with Selenium, to record movies of tests. ScreenRecoder supports the AVI and QuickTime formats for […]

Read more
How to use Windows registry value from Selenium WebDriver

The WindowsUtils class provides various methods to interact with the registry on the Windows operating system. While running tests on the Windows operating system and Internet Explorer, the test might need to read and modify IE settings or there may be a need to get some settings related to the web server or database from […]

Read more