Class ConfirmDialogLocator
java.lang.Object
com.vaadin.browserless.locator.Locator<ConfirmDialog,ConfirmDialogLocator>
com.vaadin.flow.component.confirmdialog.ConfirmDialogLocator
- All Implemented Interfaces:
Clickable<ConfirmDialog>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class ConfirmDialogLocator
extends Locator<ConfirmDialog,ConfirmDialogLocator>
implements Clickable<ConfirmDialog>
Generated locator for
ConfirmDialog, derived from
ConfirmDialogTester. 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 TypeMethodDescriptionvoidcancel()Click cancel button.voidconfirm()Click the confirm button.voidEnsures the component is in a usable state before interaction.Gets the component being tested.Get the header of the confirm dialog.Get the header element set to the confirm dialog.getText()Get the confirmation message text set to the component.voidopen()Delegates toConfirmDialogTester.open().voidreject()Click reject button.Methods inherited from class com.vaadin.browserless.locator.Locator
atIndex, component, components, exists, inside, inside, invalidate, self, with, withAriaLabel, withAriaLabelContaining, withAttribute, withAttribute, withCaption, withCaptionContaining, withClassName, withCondition, withId, withLabel, withLabelContaining, withoutAttribute, withoutAttribute, withoutClassName, withoutTheme, withText, withTextContaining, withTheme, withValueMethods 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
-
ConfirmDialogLocator
public ConfirmDialogLocator() -
ConfirmDialogLocator
-
-
Method Details
-
getComponent
Description copied from interface:ClickableGets the component being tested.- Specified by:
getComponentin interfaceClickable<ConfirmDialog>- 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<ConfirmDialog>
-
open
public void open()Delegates toConfirmDialogTester.open(). -
confirm
public void confirm()Click the confirm button. Javadoc copied fromConfirmDialogTester.confirm(). -
cancel
public void cancel()Click cancel button. Javadoc copied fromConfirmDialogTester.cancel().- Throws:
IllegalStateException- when cancel button is not enabled
-
reject
public void reject()Click reject button. Javadoc copied fromConfirmDialogTester.reject().- Throws:
IllegalStateException- when reject button is not enabled
-
getText
Get the confirmation message text set to the component. Javadoc copied fromConfirmDialogTester.getText().- Returns:
- confirmation message
-
getHeader
Get the header of the confirm dialog. Javadoc copied fromConfirmDialogTester.getHeader().- Returns:
- current header of dialog
-
getHeaderElement
Get the header element set to the confirm dialog. Javadoc copied fromConfirmDialogTester.getHeaderElement().- Returns:
- header element
-