Methods of WebElement Interface
Methods of WebElement Interface

Methods of WebElement Interface

When we use Selenium to automate web application there are two most important Interfaces.

1.WebDriver 
2.WebElement

So today we will going to see the methods of WebElement interface, to understand it better I have categories those into four groups.

A. Find : What we find using web element.

       1.findElement
       2.findElements 

B. Actions : What all actions we perform on web element ( button/text-box).

         1.click()
         2.clear()
         3.sendKeys()
         4.submit()           

C. Verification : What all kind of verification we do on web element.

         1.isDisplayed()
         2.isEnabled()
         3.isSelected() 

D. Extracts : What all information we get from web element

        1.getAttribute(String attributeName)
        2.getCssValue()
        3.getTagName()
        4.getText()  
        5.getSize()
        6.getLocation()
        7.getRect()  


Swapnil Jamdade

National Stock Exchange India Limited || Ex-Senior Software Engineer at VISA, Bengaluru, India

6 年

Nice Pritam ??

Nagesh Chinkeri

QA | Appium | Selenium |

6 年

Very good explained about these methods, Thanks Pritam Maske for sharing

要查看或添加评论,请登录

Pritam Maske的更多文章

  • ChromeDriver Compatibility With Chrome Browser

    ChromeDriver Compatibility With Chrome Browser

    This Article Will help you to find proper driver browser combination for selenium webdriver automation Chrome Driver…

    1 条评论
  • normalize-space() method

    normalize-space() method

    As I mentioned in my previous article : "Basics of XPath" , normalize-space is a string function of XML core library…

    5 条评论
  • Automation Using Internet Explorer 11

    Automation Using Internet Explorer 11

    While automating any application for windows platform with IE 11 you will encounter with following issue :…

    13 条评论
  • Basics of XPath

    Basics of XPath

    XPath is a language for addressing parts of an XML document, designed to be used by both XSLT and XPointer. XPath -…

    13 条评论
  • How to handle browser level notification using Selenium Webdriver

    How to handle browser level notification using Selenium Webdriver

    Please Follow below steps : For Old Chrome Version (50): Step 1: //Create an instance of ChromeOptions…

    26 条评论

社区洞察

其他会员也浏览了