Class DetailsTester
-
- All Implemented Interfaces:
public class DetailsTester<T extends Details> extends ComponentTester<T>
Tester for Details components.
-
-
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. -
-
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.
-
-
-
-