March 2015
Intermediate to advanced
194 pages
3h 59m
English
WebElement is an HTML element that helps the users to drive automation tests. Selenium WebDriver provides well-organized web page interactions through WebElements, such as locating elements, getting attribute properties, asserting text present in WebElement, and more. However, to interact with hidden elements in a web page, it is necessary to unhide the hidden elements first. Let's discuss Selenium WebElement functions further:
getText(): This function delivers the innerText attribute of WebElement. The following is the syntax for this function:driver.findElement(By.locatorType("path")).getText();The following is an example on the Google page that returns the innerText attribute of a Google search button using the getText() ...
Read now
Unlock full access