Class DetailsLocator
java.lang.Object
com.vaadin.browserless.locator.Locator<Details,DetailsLocator>
com.vaadin.flow.component.details.DetailsLocator
- All Implemented Interfaces:
Clickable<Details>,HasThemeFilter<Details,DetailsLocator>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class DetailsLocator
extends Locator<Details,DetailsLocator>
implements Clickable<Details>, HasThemeFilter<Details,DetailsLocator>
Generated locator for
Details, derived from
DetailsTester. Filter steps are inherited from
Locator; action methods delegate to a fresh tester
around the resolved component, so behavioral changes belong on the
tester, not here.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidHides contents as if the summary is clicked on the browser.voidEnsures the component is in a usable state before interaction.Gets the component being tested.booleanisOpen()Checks if the details are open.voidShows contents as if the summary is clicked on the browser.voidToggles details visibility, as if the summary is clicked on the browser.Methods inherited from class com.vaadin.browserless.locator.Locator
atIndex, component, components, exists, inside, inside, invalidate, self, with, withAttribute, withAttribute, withClassName, withCondition, withId, withoutAttribute, withoutAttribute, withoutClassNameMethods 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, rightClickMethods inherited from interface com.vaadin.browserless.locator.HasThemeFilter
withoutTheme, withTheme
-
Constructor Details
-
DetailsLocator
public DetailsLocator() -
DetailsLocator
-
-
Method Details
-
getComponent
Description copied from interface:ClickableGets the component being tested.- Specified by:
getComponentin interfaceClickable<Details>- Returns:
- the component under test
-
ensureComponentIsUsable
public void ensureComponentIsUsable()Description copied from interface:ClickableEnsures the component is in a usable state before interaction.- Specified by:
ensureComponentIsUsablein interfaceClickable<Details>
-
openDetails
public void openDetails()Shows contents as if the summary is clicked on the browser. An exception will be thrown if the details are already open. Javadoc copied fromDetailsTester.openDetails().- Throws:
IllegalStateException- if the component is not usable or if the details are already open.
-
closeDetails
public void closeDetails()Hides contents as if the summary is clicked on the browser. An exception will be thrown if the details are not open. Javadoc copied fromDetailsTester.closeDetails().- Throws:
IllegalStateException- if the component is not usable or if the details are not open.
-
toggleDetails
public void toggleDetails()Toggles details visibility, as if the summary is clicked on the browser. Javadoc copied fromDetailsTester.toggleDetails(). -
isOpen
public boolean isOpen()Checks if the details are open. Javadoc copied fromDetailsTester.isOpen().- Returns:
- true if the details are open, otherwise false.
-