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()
National Stock Exchange India Limited || Ex-Senior Software Engineer at VISA, Bengaluru, India
6 年Nice Pritam ??
QA | Appium | Selenium |
6 年Very good explained about these methods, Thanks Pritam Maske for sharing