CONTENTS :
• Introduction
• Components
• Selenium commands
• Advantages
• Disadvantages
• Conclusion
• Selenium is a suite of tools used for
browser automation
• A well organized tool to develop test cases
or test suites
• Jason Huggins introduced selenium
• It is developed using java scripts
• It composed of 4 main components
IDE, Remote Control, Webdriver and Grid
• A tool to test the web based applications
Selenium is mainly built on 3 components.
1.Selenium IDE
2.Selenium RC
3.Selenium Grid
4.Selenium Webdriver
• IDE stands for Integrated Development
Environment.
• Which is used for Record and Play back the
scripts.
• It is an Add on for Mozilla Firefox, which
means we can download the Selenium IDE
from Mozilla Firefox and we can Record
and Run the scripts in Mozilla Firefox only.
• Selenium IDE is accountable for user
actions.
• We can Run the Recorded scripts against
other browsers by using Selenium RC.
• RC stands for Remote Control.
• It is a Server and launches the Browser.
• It acts as a API and Library of Selenium.
• We need to configure the Selenium RC with
the supported language, then we can
automate the application.
• Selenium Grid is used for launching the
multiple browsers with supported operating
system in parallel.
• We can run the scripts on different browsers
in parallel.
• It allows you to easily run multiple tests in
parallel, on multiple machines, in a
heterogeneous environment.
Selenium Web Driver:
• Selenium WebDriver is the successor to
Selenium RC.
• Selenium WebDriver accepts commands
and sends them to a browser.
• This is implemented through a browser-
specific browser driver, which sends
commands to a browser and retrieves
results.
1. get(String url) command :
Syntax: driver.get(URL);
It loads a new web page in the current browser
window and accepts a string parameter that
specifies the URL of the web page to be loaded.
2. getTitle() Command :
Syntax: driver.getTitle();
It gets the title of the current web page
displayed in the browser. It does not accept
any parameters. It returns the title of the
specified URL as a string.
3. getCurrentUrl() Command :
Syntax: driver.getCurrentUrl();
It gets the URL of the current web page
shown in the browser. It does not accept any
parameters and returns the URL as a string.
4. getPageSource() Command:
Syntax: driver.getPageSource();
It gets the entire page source of the current web page loaded in the browser. It
does not accept any parameters, but it does return the page source as a string.
5. close() Command :
Syntax: driver.close();
It closes the current browser window or tab. Also, this command does not accept
any types of parameters. It also does not return anything.
6. quit() Command :
Syntax: driver.quit();
It closes all the browser windows and tabs for a particular WebDriver session.
This command does not accept any parameters and not return anything.
etc…
• Open Source
• Multi-Language Support
• Multi-Browser Support
• Platform Support
• Flexibility

seldmskksnnisjals, sjnsjjs dsajdjsadsdjsnsjn.pptx

  • 1.
    CONTENTS : • Introduction •Components • Selenium commands • Advantages • Disadvantages • Conclusion
  • 2.
    • Selenium isa suite of tools used for browser automation • A well organized tool to develop test cases or test suites • Jason Huggins introduced selenium • It is developed using java scripts • It composed of 4 main components IDE, Remote Control, Webdriver and Grid • A tool to test the web based applications
  • 3.
    Selenium is mainlybuilt on 3 components. 1.Selenium IDE 2.Selenium RC 3.Selenium Grid 4.Selenium Webdriver
  • 4.
    • IDE standsfor Integrated Development Environment. • Which is used for Record and Play back the scripts. • It is an Add on for Mozilla Firefox, which means we can download the Selenium IDE from Mozilla Firefox and we can Record and Run the scripts in Mozilla Firefox only. • Selenium IDE is accountable for user actions. • We can Run the Recorded scripts against other browsers by using Selenium RC.
  • 5.
    • RC standsfor Remote Control. • It is a Server and launches the Browser. • It acts as a API and Library of Selenium. • We need to configure the Selenium RC with the supported language, then we can automate the application.
  • 6.
    • Selenium Gridis used for launching the multiple browsers with supported operating system in parallel. • We can run the scripts on different browsers in parallel. • It allows you to easily run multiple tests in parallel, on multiple machines, in a heterogeneous environment.
  • 7.
    Selenium Web Driver: •Selenium WebDriver is the successor to Selenium RC. • Selenium WebDriver accepts commands and sends them to a browser. • This is implemented through a browser- specific browser driver, which sends commands to a browser and retrieves results.
  • 8.
    1. get(String url)command : Syntax: driver.get(URL); It loads a new web page in the current browser window and accepts a string parameter that specifies the URL of the web page to be loaded. 2. getTitle() Command : Syntax: driver.getTitle(); It gets the title of the current web page displayed in the browser. It does not accept any parameters. It returns the title of the specified URL as a string. 3. getCurrentUrl() Command : Syntax: driver.getCurrentUrl(); It gets the URL of the current web page shown in the browser. It does not accept any parameters and returns the URL as a string.
  • 9.
    4. getPageSource() Command: Syntax:driver.getPageSource(); It gets the entire page source of the current web page loaded in the browser. It does not accept any parameters, but it does return the page source as a string. 5. close() Command : Syntax: driver.close(); It closes the current browser window or tab. Also, this command does not accept any types of parameters. It also does not return anything. 6. quit() Command : Syntax: driver.quit(); It closes all the browser windows and tabs for a particular WebDriver session. This command does not accept any parameters and not return anything. etc…
  • 10.
    • Open Source •Multi-Language Support • Multi-Browser Support • Platform Support • Flexibility