Selenium Class 33: WebElement Methods in Selenium

Published: 12 January 2022
on channel: Testing Tutorialspoint
720
7

WebElement Methods in Selenium:
-------------------------------
- sendkeys: Use this method to simulate typing into an element which may set its value.

- Clear: if this element is a text entry element, this will clear the value.

- click: click this element

- getAttribute: Get the value of the given attribute of the element

- getCssValue: Get the value of the css properity

- getLocation: where on this page is the top left hand corner of the rendered element

- getSize: what is the width and hight of the rendered element

- getTagName: Get the tagName of this element

- getText: Get the visible text.

- isDisplayed: is this element displayed or not? this method avoids the problem of having to parse an element's style attribut.

- isEnabled: is the element currently enabled or not? this will generally return true for everything but disabled input element

- isSelected: determine whether or not this element is selected or not.


Watch video Selenium Class 33: WebElement Methods in Selenium online, duration hours minute second in high quality that is uploaded to the channel Testing Tutorialspoint 12 January 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 720 times and liked it 7 visitors.