public class LabelElement extends HtmlElement
driver, element, logger, webUXDriver| Constructor and Description |
|---|
LabelElement(String label,
org.openqa.selenium.By by) |
| Modifier and Type | Method and Description |
|---|---|
String |
getExpectedText()
Deprecated.
|
String |
getText()
Returns the text body of the underlying WebElement.
|
boolean |
isTextPresent(String pattern)
Whether or not the indicated text is contained in the element's getText() attribute.
|
captureSnapshot, captureSnapshot, click, clickAt, clickAt, findElement, fireEvent, getAllElements, getAttribute, getBy, getCssValue, getDriver, getElement, getEval, getHeight, getLabel, getLocation, getLocator, getSize, getTagName, getValue, getWidth, init, isDisplayed, isElementPresent, isEnabled, isSelected, mouseDown, mouseOver, mouseUp, sendKeys, simulateClick, simulateMouseOver, simulateMoveToElement, sleep, toHTML, toString, waitForPresent, waitForPresentpublic LabelElement(String label, org.openqa.selenium.By by)
public String getText()
HtmlElementgetText in class HtmlElementpublic boolean isTextPresent(String pattern)
HtmlElementisTextPresent in class HtmlElement@Deprecated public String getExpectedText()
Copyright © 2015. All rights reserved.