WebDriver-introduction
WebDriver-introduction
Methods( Operations)
Locators( properties of objects)
Syntax:
Obj.getcurrenturl();
System.out.println(obj.getcurrenturl());
Or
String t2=obj.getcurrenturl();
System.out.println(t2);
syntax:
obj.findElement(By.locator(locatorvalue)).operations();
Installation process:
Java / jre1.7 jdk 1.7 selenium-server-standalone-2.53.0 jar files/
eclipse
In eclipse :
Create project ------------------collection of packages (yahoo
page)
Create package ------------------collection of classes ( inbox )
Create class ====================single program
(checkbox)
Import a jar file into project ( selenium-server-standalone-2.53.o) jar
file
*.