Overview of Selenium WebDriver
Selenium 1.0 (Selenium IDE + selenium RC + Selenium Grid)
Selenium 2.0 (Selenium IDE + Selenium RC + Selenium WebDriver + Selenium Grid)
Note: Selenium WebDriver merged amongst Selenium 1.0
-------------------------------------------------
Selenium WebDriver Introduction:
> It is a virtually of import tool inward Selenium suite.
> It is has programming interface allows us to practise together with execute Test cases against dissimilar browsers (ex: Firefox, IE, Google Chrome etc...)
> WebDriver supports diverse programming languages to heighten Test cases.
Java
.NET
PHP
Perl
Python
Ruby
-----------
> WebDriver supports diverse operating environments to practise together with execute Test cases
(Ex: MS Windows, UNIX together with Macintosh etc...)
> WebDriver supports Data Driven testing, cross browser testing.
> Webdriver is faster than other tools of Selenium suite.
> WebDriver supports Parallel examination execution amongst the attention of TestNG.
> WebDriver doesn't convey IDE, alone Programming interface.
> WebDriver doesn't convey built inward Result reporting facility, it provides summary only.
(* amongst the attention of TestNG nosotros tin generate HTML examination reports.)
> No object Repository inward selenium WebDriver (It is for entire Suite), together with hence no centralized maintenance of Objects)
---------------
Using Element locators, Webdriver methods together with Java programming features nosotros tin create
and execute Test cases.
Element Locators - to recognize / seat Elements (Objects)
Webdriver Methods - to perform operations on Elements.
Java programming features - Enhancing Test Cases.
--------------------------------------------
Selenium Webdriver Environment Setup:
i) Download together with install Java (JDK) software - to heighten examination cases using Java programming features.
ii) Set Path surroundings variable- to access Java from whatsoever directory.
iii) Download Eclipe IDE together with extract
iv) Download WebDriver Java Language binding together with add together Webdriver jounce files (in Eclipse)
--------------------------
v) Install Firebug together with FirePath plug ins for Mozilla Firefox browser to inspect Elements.
Note: For Internet explorer together with Google chrome, no require to install whatsoever plug ins, They convey built inward Developer tools.
Note 2: Element locators together with WebDriver methods are mutual for all browsers, browser driver alone varies from i browser to another.
Note 3: Firefox driver is default driver inward Webdriver, For IE together with Chrome nosotros require to download drivers.
----------------------------------------------------
Download Selenium WebDriver Java binding from www.seleniumhq.org website together with extract.
Navigation for adding Webdriver jounce files inward Eclipse.
Create Java project
> Select src together with correct click
> Build path
> Configure Build Path
> conduct Libraries tab
> Click "Add External JARs
> Browser path of the WebDriver jars
> Add
-------------------------
Pre-requisites to Create Automated Tests
Test / Test Script / Test Case
> Import WebDriver Libraries together with Firefox driver/IE driver/Chrome Driver
> Using Web Element (object) locators together with WebDriver methods write object telephone hollo upward statements
> Insert Java programmatic statements to heighten Test cases.
---------------------------------------------------------
Selenium 1.0 (Selenium IDE + selenium RC + Selenium Grid)
Selenium 2.0 (Selenium IDE + Selenium RC + Selenium WebDriver + Selenium Grid)
Note: Selenium WebDriver merged amongst Selenium 1.0
-------------------------------------------------
Selenium WebDriver Introduction:
> It is a virtually of import tool inward Selenium suite.
> It is has programming interface allows us to practise together with execute Test cases against dissimilar browsers (ex: Firefox, IE, Google Chrome etc...)
> WebDriver supports diverse programming languages to heighten Test cases.
Java
.NET
PHP
Perl
Python
Ruby
-----------
> WebDriver supports diverse operating environments to practise together with execute Test cases
(Ex: MS Windows, UNIX together with Macintosh etc...)
> WebDriver supports Data Driven testing, cross browser testing.
> Webdriver is faster than other tools of Selenium suite.
> WebDriver supports Parallel examination execution amongst the attention of TestNG.
> WebDriver doesn't convey IDE, alone Programming interface.
> WebDriver doesn't convey built inward Result reporting facility, it provides summary only.
(* amongst the attention of TestNG nosotros tin generate HTML examination reports.)
> No object Repository inward selenium WebDriver (It is for entire Suite), together with hence no centralized maintenance of Objects)
---------------
Using Element locators, Webdriver methods together with Java programming features nosotros tin create
and execute Test cases.
Element Locators - to recognize / seat Elements (Objects)
Webdriver Methods - to perform operations on Elements.
Java programming features - Enhancing Test Cases.
--------------------------------------------
Selenium Webdriver Environment Setup:
i) Download together with install Java (JDK) software - to heighten examination cases using Java programming features.
ii) Set Path surroundings variable- to access Java from whatsoever directory.
iii) Download Eclipe IDE together with extract
iv) Download WebDriver Java Language binding together with add together Webdriver jounce files (in Eclipse)
--------------------------
v) Install Firebug together with FirePath plug ins for Mozilla Firefox browser to inspect Elements.
Note: For Internet explorer together with Google chrome, no require to install whatsoever plug ins, They convey built inward Developer tools.
Note 2: Element locators together with WebDriver methods are mutual for all browsers, browser driver alone varies from i browser to another.
Note 3: Firefox driver is default driver inward Webdriver, For IE together with Chrome nosotros require to download drivers.
----------------------------------------------------
Download Selenium WebDriver Java binding from www.seleniumhq.org website together with extract.
Navigation for adding Webdriver jounce files inward Eclipse.
Create Java project
> Select src together with correct click
> Build path
> Configure Build Path
> conduct Libraries tab
> Click "Add External JARs
> Browser path of the WebDriver jars
> Add
-------------------------
Pre-requisites to Create Automated Tests
Test / Test Script / Test Case
> Import WebDriver Libraries together with Firefox driver/IE driver/Chrome Driver
> Using Web Element (object) locators together with WebDriver methods write object telephone hollo upward statements
> Insert Java programmatic statements to heighten Test cases.
---------------------------------------------------------