Class MasterDetailLayoutLocator
java.lang.Object
com.vaadin.browserless.locator.Locator<MasterDetailLayout,MasterDetailLayoutLocator>
com.vaadin.flow.component.masterdetaillayout.MasterDetailLayoutLocator
- All Implemented Interfaces:
Clickable<MasterDetailLayout>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class MasterDetailLayoutLocator
extends Locator<MasterDetailLayout,MasterDetailLayoutLocator>
implements Clickable<MasterDetailLayout>
Generated locator for
MasterDetailLayout, derived from
MasterDetailLayoutTester. 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 TypeMethodDescriptionvoidEnsures the component is in a usable state before interaction.Gets the component being tested.Gets the component currently shown in the detail area.Gets the placeholder component currently shown in the detail area.Gets the component currently shown in the master area.booleanChecks whether the detail placeholder is currently shown to the user.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, withoutClassName, withTestIdMethods 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, rightClick
-
Constructor Details
-
MasterDetailLayoutLocator
public MasterDetailLayoutLocator() -
MasterDetailLayoutLocator
-
-
Method Details
-
getComponent
Description copied from interface:ClickableGets the component being tested.- Specified by:
getComponentin interfaceClickable<MasterDetailLayout>- 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<MasterDetailLayout>
-
getMaster
Gets the component currently shown in the master area. Javadoc copied fromMasterDetailLayoutTester.getMaster().- Returns:
- the component in the master area, or
nullif there is no component in the master area - Throws:
IllegalStateException- if the layout is not visible to the user
-
getDetail
Gets the component currently shown in the detail area. Javadoc copied fromMasterDetailLayoutTester.getDetail().- Returns:
- the component in the detail area, or
nullif no detail content is set - Throws:
IllegalStateException- if the layout is not visible to the user
-
getDetailPlaceholder
Gets the placeholder component currently shown in the detail area. The placeholder is only shown to the user while no detail content is set. Javadoc copied fromMasterDetailLayoutTester.getDetailPlaceholder().- Returns:
- the placeholder component shown in the detail area, or
nullif no placeholder is set - Throws:
IllegalStateException- if the layout is not visible to the user, or if detail content is set so the placeholder is not shown
-
isDetailPlaceholderVisible
public boolean isDetailPlaceholderVisible()Checks whether the detail placeholder is currently shown to the user. A placeholder is shown when one is set and there is no detail content. Javadoc copied fromMasterDetailLayoutTester.isDetailPlaceholderVisible().- Returns:
trueif the placeholder is shown,falseotherwise- Throws:
IllegalStateException- if the layout is not visible to the user
-