Package com.vaadin.flow.component.html
Class NativeDetailsTester
-
- All Implemented Interfaces:
-
com.vaadin.browserless.Clickable
public class NativeDetailsTester extends HtmlComponentTester<NativeDetails>
- Since:
1.0
-
-
Constructor Summary
Constructors Constructor Description NativeDetailsTester(NativeDetails component)Wrap given component for testing.
-
Method Summary
Modifier and Type Method Description 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.browserless.ComponentTester
ensureComponentIsUsable, find, getComponent, isUsable, setModal -
Methods inherited from class com.vaadin.flow.component.html.HtmlComponentTester
getText, getTitle -
Methods inherited from class com.vaadin.browserless.Clickable
click, 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.
-
-
-
-