Selenium Tutorial

Selenium Tool Suit Versions of Selenium Selenium Testing Difference Between Selenium and QTP Advantage and Disadvantage of Selenium

Selenium IDE Topics

Selenium-IDE Introduction Installation /download  Selenium–IDE (Firefox) Installation /download Selenium–IDE (Google Chrome) Characteristics of Selenium-IDE First test case of Selenium-IDE Login test for Selenium-IDE Selenium-IDE commands Selenium-IDE locators Id locator Name Locator  X Path Locator CSS Selector Locator Locating by ID Locating by Class Locating by Attribute Locating by ID/Class & Attribute Locating by Sub-string Locating by inner text Link Text Locator Advantage and Disadvantage of Selenium-IDE

Selenium WebDriver Topics

WebDriver introduction Characteristics of WebDriver Difference Between Selenium RC and WebDriver Installation steps of WebDriver WebDriver Class Diagram/ Architecture WebDriver control commands Browser control Navigation control Web element control Operational control Data capture control Verification control WebDriver working with chrome browser WebDriver working with Firefox browser WebDriver working with internet explorer browser WebDriver working with Microsoft Edge browser WebDriver locator Id Locator Name Locator Class name Locator Xpath Locator XPath axes Link text Locator Partial link text Locator Tag name Locator Css Selector Tag and Id Tag and Class Tag and Attribute Tag, class, and Attribute Sub string matches WebDriver wait statements Drop down handling Mouse and keyboard controls Drag and drop Event Handling Window Handling: New tab/new window Alert pop up Handling Checkbox Handling Radio button Handling Selenium Assertion

Selenium WebDriver – Web Element Controls

Selenium WebDriver – Web Element Controls

A web element is an interface that is implemented by a remote web element class.

  • The Web element control can be used to perform the data capture, verification, and operational control commandsin the web driver.
  • Web element control cannot be used without findElement(), because every element should be identified in the HTML document before operating the web element.
  • The Html source code consists of a start tagend tag, and the content… in between.
  • An Html source code is written as: <tagname> content </tagname>

We have several web elements commands and actions in WebDriver. The  following commands are shown in the below screenshot:

several web elements commands and actions in web driver

Web elements command can be divided into three different methods which are as following:

Web elements command

Let see some of the web element and their web element controls which is as shown below:

web element and their web element controls
Web Element Web Element-Controls
Edit box sendKeys(“”), clear(), getAttribute(), getSize(), getLocation(), isDisplayed(), isEnabled()
Button
Checkbox
Radio box  
click(), Submit(), getCssValue(), isSelected(), getAttribute(), getSize(), getLocation(), isDisplayed(), isEnabled()
link click(), getText(), getCssValue(), getSize(), getLocation(), isDisplayed(), isEnabled()
Image   click(), getSize(), getLocation(), isDisplayed(), isEnabled()
Dropdown Select
Dropdown menu Actions
webText getText(), getCssValue(), getSize(), getLocation(), isDisplayed(), isEnabled()