Class DetailsTester
-
- All Implemented Interfaces:
-
com.vaadin.browserless.Clickable
public class DetailsTester<T extends Details> extends ComponentTester<T>
Tester for Details components.
- Since:
1.0
-
-
Constructor Summary
Constructors Constructor Description DetailsTester(T component)Wrap given component for testing.
-
Method Summary
Modifier and Type Method Description voidopenDetails()Shows contents as if the summary is clicked on the browser. voidcloseDetails()Hides contents as if the summary is clicked on the browser. voidtoggleDetails()Toggles details visibility, as if the summary is clicked on the browser. booleanisOpen()Checks if the details are open. -
Methods inherited from class com.vaadin.browserless.ComponentTester
ensureComponentIsUsable, find, getComponent, isUsable, setModal -
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
-
-
Constructor Detail
-
DetailsTester
DetailsTester(T component)
Wrap given component for testing.
- Parameters:
component- target component
-
-
Method Detail
-
openDetails
void openDetails()
Shows contents as if the summary is clicked on the browser. An exception will be thrown if the details are already open.
-
closeDetails
void closeDetails()
Hides contents as if the summary is clicked on the browser. An exception will be thrown if the details are not open.
-
toggleDetails
void toggleDetails()
Toggles details visibility, as if the summary is clicked on the browser.
-
isOpen
boolean isOpen()
Checks if the details are open.
- Returns:
true if the details are open, otherwise false.
-
-
-
-