Package com.vaadin.flow.component.html
Class HtmlComponentTester<T extends com.vaadin.flow.component.HtmlComponent>
java.lang.Object
com.vaadin.browserless.ComponentTester<T>
com.vaadin.flow.component.html.HtmlComponentTester<T>
- Type Parameters:
T- component type
- All Implemented Interfaces:
Clickable<T>
- Direct Known Subclasses:
HrTester,HtmlContainerTester,ImageTester,NativeDetailsTester
public class HtmlComponentTester<T extends com.vaadin.flow.component.HtmlComponent>
extends ComponentTester<T>
Tester for HtmlComponent components.
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.vaadin.browserless.ComponentTester
blur, canSetValueAsUser, clearAsUser, clickClearButtonAsUser, ensureComponentIsUsable, ensureComponentIsUsable, ensureComponentIsUsableOrDetach, ensureVisible, ensureVisible, find, findAllByQuery, findByQuery, fireDomEvent, fireDomEvent, fireDomEvent, focus, getComponent, getField, getField, getMethod, getMethod, isComponentReadOnly, isFocused, isUsable, isUsable, notUsableReasons, notUsableReasons, roundTrip, setModal, setPropertyAsUser, setValueAsUser, setValueAsUserMethods 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
-
HtmlComponentTester
Wrap given component for testing.- Parameters:
component- target component
-
-
Method Details
-
getTitle
Get the title string set for the html component if available.- Returns:
- title string
- Throws:
IllegalStateException- if not title has been set
-
getText
Get the recursive text for target element.- Returns:
- recursive text of component
- Throws:
IllegalStateException- if component not visible
-