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, waitForPresent
public LabelElement(String label, org.openqa.selenium.By by)
public String getText()
HtmlElement
getText
in class HtmlElement
public boolean isTextPresent(String pattern)
HtmlElement
isTextPresent
in class HtmlElement
@Deprecated public String getExpectedText()
Copyright © 2016. All rights reserved.