Package com.vaadin.flow.component.html
Class HrLocator
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.vaadin.browserless.locator.Locator
atIndex, component, components, exists, inside, inside, invalidate, self, with, withAriaLabel, withAriaLabelContaining, withAttribute, withAttribute, withCaption, withCaptionContaining, withClassName, withCondition, withId, withLabel, withLabelContaining, withoutAttribute, withoutAttribute, withoutClassName, withoutTheme, withText, withTextContaining, withTheme, withValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.browserless.Clickable
click, click, click, middleClick, middleClick, rightClick, rightClick
-
Constructor Details
-
HrLocator
public HrLocator() -
HrLocator
-
-
Method Details
-
getComponent
Description copied from interface:ClickableGets the component being tested.- Specified by:
getComponentin interfaceClickable<Hr>- Returns:
- the component under test
-
ensureComponentIsUsable
public void ensureComponentIsUsable()Description copied from interface:ClickableEnsures the component is in a usable state before interaction.- Specified by:
ensureComponentIsUsablein interfaceClickable<Hr>
-
getTitle
Get the title string set for the html component if available. Javadoc copied fromHtmlComponentTester.getTitle().- Returns:
- title string
- Throws:
IllegalStateException- if not title has been set
-
getText
Get the recursive text for target element. Javadoc copied fromHtmlComponentTester.getText().- Returns:
- recursive text of component
- Throws:
IllegalStateException- if component not visible
-