Class NativeDetailsTester
-
- All Implemented Interfaces:
-
com.vaadin.flow.component.html.testbench.ClickHandler
public class NativeDetailsTester extends HtmlComponentTester<T> implements ClickHandler
-
-
Constructor Summary
Constructors Constructor Description NativeDetailsTester(NativeDetails component)Wrap given component for testing.
-
Method Summary
Modifier and Type Method Description voidclick(int button, MetaKeys metaKeys)NativeDetails.SummarygetSummary()Get the summary component of this Details element. StringgetSummaryText()Get the summary text. ComponentgetContent()Get details content if the details is opened. voidtoggleContent()Toggle the open state of the component. -
Methods inherited from class com.vaadin.testbench.unit.ComponentTester
find, getComponent, isUsable, setModal -
Methods inherited from class com.vaadin.flow.component.html.testbench.HtmlComponentTester
getText, getTitle -
Methods inherited from class com.vaadin.flow.component.html.testbench.ClickHandler
click, click, middleClick, middleClick, rightClick, rightClick -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getSummary
NativeDetails.Summary getSummary()
Get the summary component of this Details element.
- Returns:
summary component
-
getSummaryText
String getSummaryText()
Get the summary text.
- Returns:
text in the summary element
-
getContent
Component getContent()
Get details content if the details is opened.
- Returns:
details content
-
toggleContent
void toggleContent()
Toggle the open state of the component.
-
-
-
-