Book Image

Selenium Essentials

By : Prashanth Sams
Book Image

Selenium Essentials

By: Prashanth Sams

Overview of this book

Table of Contents (12 chapters)

Apache POI Data-Driven framework


Apache Poor Obfuscation Implementation (POI) is a set of Java-based libraries used to manipulate Microsoft Excel documents, such as the .xls and .xlsx file formats. It is an extensive API used to automate Selenium Data-Driven tests that lets you create, modify, read, and write Excel data. Unlike JXL API, it supports both Binary and SpreadsheetML workbooks. Configuring JXL API is easier compared to Apache POI. However, Apache POI has as many features to work with modern Microsoft products. Obviously, the test performance with the .xlsx file will be slower compared to the .xls file in Apache POI.

A dependency of Apache POI is the xmlbeans library, which has to be added in the build path before executing tests. Another Java framework for older versions of Apache POI is dom4j. The following screenshot displays a list of library files required to support the Apache POI Data-Driven framework:

The preceding JAR files are the significant libraries to be added in the...