上QQ阅读APP看书,第一时间看更新
WebElements
Any HTML element on the page, such as a textbox, dropdown, radio button, checkbox, and so on can be considered as a WebElement. How can we access web elements on an HTML screen? Well, Selenium WebDriver provides us with the very useful WebElement interface. The only implementation class of this interface is the RemoteWebElement. Whenever an HTML element has to be operated upon in the code, it's a best practice to access the element using the WebElement interface. One of the parent interfaces of the WebElement interface is SearchContext, which we will look at next.