Class ConfirmDialogLocator
java.lang.Object
com.vaadin.browserless.locator.Locator<com.vaadin.flow.component.confirmdialog.ConfirmDialog,ConfirmDialogLocator>
com.vaadin.flow.component.confirmdialog.ConfirmDialogLocator
- All Implemented Interfaces:
Clickable<com.vaadin.flow.component.confirmdialog.ConfirmDialog>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class ConfirmDialogLocator
extends Locator<com.vaadin.flow.component.confirmdialog.ConfirmDialog,ConfirmDialogLocator>
implements Clickable<com.vaadin.flow.component.confirmdialog.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
ConstructorsConstructorDescriptionCreates a locator that searches for aConfirmDialog.ConfirmDialogLocator(com.vaadin.flow.component.confirmdialog.ConfirmDialog component) Creates a locator already bound to the given component, so that the action methods run against it instead of against a lookup. -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Click cancel button.voidconfirm()Click the confirm button.voidEnsures the component is in a usable state before interaction.com.vaadin.flow.component.confirmdialog.ConfirmDialogGets the component being tested.Get the header of the confirm dialog.com.vaadin.flow.dom.ElementGet the header element set to the confirm dialog.getText()Get the confirmation message text set to the component.voidopen()Opens the dialog, as clicking the component that owns it would.voidreject()Click reject button.Methods inherited from class com.vaadin.browserless.locator.Locator
atIndex, component, components, exists, inside, inside, invalidate, self, with, withAttribute, withAttribute, withClassName, withCondition, withCondition, withId, withinSlot, 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
-
ConfirmDialogLocator
public ConfirmDialogLocator()Creates a locator that searches for aConfirmDialog. -
ConfirmDialogLocator
public ConfirmDialogLocator(com.vaadin.flow.component.confirmdialog.ConfirmDialog component) Creates a locator already bound to the given component, so that the action methods run against it instead of against a lookup.- Parameters:
component- the component the locator resolves to
-
-
Method Details
-
getComponent
public com.vaadin.flow.component.confirmdialog.ConfirmDialog getComponent()Description copied from interface:ClickableGets the component being tested.- Specified by:
getComponentin interfaceClickable<com.vaadin.flow.component.confirmdialog.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<com.vaadin.flow.component.confirmdialog.ConfirmDialog>
-
open
public void open()Opens the dialog, as clicking the component that owns it would. Javadoc copied fromConfirmDialogTester.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
public com.vaadin.flow.dom.Element getHeaderElement()Get the header element set to the confirm dialog. Javadoc copied fromConfirmDialogTester.getHeaderElement().- Returns:
- header element
- Throws:
NoSuchElementException- if no header element found
-