Skip to Main Content
Mastering Selenium WebDriver 3.0 - Second Edition
book

Mastering Selenium WebDriver 3.0 - Second Edition

by Mark Collin
June 2018
Beginner to intermediate content levelBeginner to intermediate
376 pages
8h 58m
English
Packt Publishing
Content preview from Mastering Selenium WebDriver 3.0 - Second Edition

Switching from TestNG to JUnit

First of all, we need to make some changes to our POM.xml to use JUnit instead of TestNG; we will start with the properties block:

<properties>    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>    <project.reporting.outputEncoding>UTF-     8</project.reporting.outputEncoding>    <java.version>1.8</java.version>    <!-- Dependency versions -->    <selenium.version>3.12.0</selenium.version>    <junit.version>4.12</junit.version>    <assertj-core.version>3.10.0</assertj-core.version>    <query.version>1.2.0</query.version>    <commons-io.version>2.6</commons-io.version>    <httpclient.version>4.5.5</httpclient.version>    <!-- Plugin versions -->    <driver-binary-downloader-maven-plugin.version>1.0.17</driver-   binary-downloader-maven-plugin.version> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Selenium WebDriver 3 Practical Guide - Second Edition

Selenium WebDriver 3 Practical Guide - Second Edition

Pallavi Sharma, UNMESH GUNDECHA, Satya Avasarala

Publisher Resources

ISBN: 9781788299671Supplemental Content