Download presentation
Presentation is loading. Please wait.
1
Introduction of Selenium Webdriver Using Java
2
What is Selenium? Selenium is used for automating web applications for testing purposes. It is a suite of tools to automate browsers across many platforms. This is a stand alone tool. Selenium has the following tools : Selenium IDE Selenium RC Selenium Grid Selenium WebDriver
3
Selenium Webdriver Open Source Software
Supports Different Operating Environments Windows, Linux, Mac Supports Different languages like Java, C#, Ruby, Python, Javascript Supports cross browser testing like Firefox, Chrome, IE, Safari
4
Tools needed to Run Selenium
Java 8 Intellij Firebug Firepath Maven Junit
5
Java 8 Make sure to set the Environment variables for JAVA_HOME
Also set the path variable to for Java bin location
6
Firebug and Firepath Firebug and Firepath are the tools that integrate with firefox. These both helps to inspect the web elements and generate the Xpath.
7
Maven Install Maven software from
Unzip the software and specific the location in path variable
8
Junit Junit is test framework for Java programming language. Annotations in Junit: After Before AfterClass Ignore
9
JavaDoc Classes needed to write a basic selenium code WebDriver WebElement By
10
By Class By.ByClassName, By.ByCssSelector, By.ById, By.ByLinkText,
By.ByName, By.ByPartialLinkText, By.ByTagName, By.ByXPath,
11
Xpath Xpath is a syntax or language to find the web elements in a web page. Absolute Xpath Relative Xpath
12
Xpath //tagname[@attribute-name = ‘value’] Examples:
or class=‘input’] and class=‘input’] //input[text()=‘hello’]
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.