Working with WebElements

In this lesson, we’ll learn about the basic components and types of web elements.

WebElement is an interface for the Selenium to perform any action on the webpage, anything present on the web page is a web element like text, link, image, input field, etc. and to perform any action on the web element we should first identify it.

Basic components of a WebElement #

  • HTML Tag
  • Attributes

Methods available for interacting with a page are available in the WebElement class:

Types of WebElement #

  • Edit Box
  • Link
  • Button
  • Image, Image Link, Image Button
  • Text Area
  • Check Box
  • Radio Button
  • Drop Down Box
  • List Box
  • Combo Box

Identifying WebElement in Selenium WebDriver has already been discussed in the previous chapter.

Get hands-on with 1000+ tech skills courses.