Methods of the Selenium Web Element

Any element present on the web page is known as web element.Using find element we can identify element present in the web page.Once it is identified we need to perform operation on web element .Web element is a interface which contains some specific methodĀ  to perform operation on web element.

The following method are available in selenium web element.

click()
clear()
sendKeys()getText()
isDisplayed()
isSelected()
isEnabled()
getTagname()
getcssValue()

We can get following css value of an web element color,font,size.
getattribute()
getlocation()

This method will find the locationĀ  value of an element in x and y axis.
getcssvalue()
getAttiribute()

It is used to find out back end attribute of any web element.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *