Java Selenium web automation example

Selenium Webdriver became a defacto standard for automating the web based test. Here we will see a very basic example of web automation using Selenuium framework. Source code folder structure: java-selenium-web-automation-gradle-example ├──build.gradle ├──settings.gradle └──src └──main └──java └──com └──firstfewlines └──SeleniumSample.java 1. build.gradle group 'com.firstfewlines' version '1.0-SNAPSHOT' apply plugin: 'java' apply plugin: 'application' sourceCompatibility = 1.8 mainClassName = 'com.firstfewlines.SeleniumSample' repositories { mavenCentral() } dependencies { compile('org.seleniumhq.selenium:selenium-java:3.4.0') { exclude group: 'org.