Hello Paul, IWebElement is an Interface in Selenium C# which inherit ISearchContext interface. IWebElement has many method which made our task easy. IWebElement is a selenium Web Element class which represents an HTML element (body, table, tr etc) on a page in your selenium automation code. With the IWebElement instance, you can interact with an element, retrieve it's attributes and properties. Some of the methods of this interface are:
-
Clear: Clears the content of this element.
-
Click: Clicks this element.
-
FindElement: Finds the first IWebElement using the given method. (Inherited from ISearchContext.)
-
FindElements: Finds all IWebElements within the current context using the given mechanism. (Inherited from ISearchContext.)
-
GetAttribute: Gets the value of the specified attribute for this element.
-
GetCssValue: Gets the value of a CSS property of this element.
-
SendKeys: Simulates typing text into the element.
-
Submit: Submits this element to the web server.