WebElement in Selenium

Anything that is present on the web page is a WebElement such as Edit box, Text box, Links, Button, Image, Image link, Image button, Error message, Popup window, Checkbox, Radio button, Drop down box, List box, Web table, Frame, Date picker etc..

Status of Elements

  • Visible
  • Enabled
  • Disabled
  • Hidden

Action on WebElements

Browser

  • Launch the browser
  • Close the browser
  • Close all the browser
  • Navigate to a URL
  • Navigate back and forward
  • Minimize/Maximize the browser window
  • Full Screen
  • Refresh the browser
  • Copy the browser URL
  • Select Home
  • Delete all cookies

Web Page

  • Get page title
  • Get page URL
  • Get page source

Edit box

  • Enter a value
  • Clear the value
  • Get the copy value
  • Check the existence of edit box
  • Check enabled status

Link

  • Click
  • Check the existence of link
  • Check enabled status
  • Copy link name

Image

  • Check the existence of Image
  • Return Image title

Image link

  • Click
  • Check the existence of Image link
  • Copy link name

Image button

  • Click submit
  • Check the existence of Image button
  • Check the enabled status of the Image button
  • Return the Image button name

Checkbox

  • Select/unselect
  • Check the existence of the checkbox
  • Check the enabled status
  • Check the selected box

Button

  • Clicks
  • Check the existence of button
  • Check the enabled status
  • Return Button name

Radio Button

  • Click/Select
  • Check the selected status
  • Check the existence of button
  • Check the enabled status

Drop Down Box

  • Select an Item
  • Return item count
  • Check the existence of Drop Down
  • Check the enabled status

List Box

  • Select one or more item
  • Check the existence of List box
  • Check the enabled status

Web Table/ HTML Table

  • Check the existence of web table
  • Return a cell value
  • Return row count
  • Return column count

And so on, Don’t worry we can handle others element practically in “Handling Web Element” Chapter.

Comment here in which element you thought having more challenge during handling through Selenium and Why ?

Next

Leave a comment

Design a site like this with WordPress.com
Get started