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 Details

    • ConfirmDialogLocator

      public ConfirmDialogLocator()
      Creates a locator that searches for a ConfirmDialog.
    • 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: Clickable
      Gets the component being tested.
      Specified by:
      getComponent in interface Clickable<com.vaadin.flow.component.confirmdialog.ConfirmDialog>
      Returns:
      the component under test
    • ensureComponentIsUsable

      public void ensureComponentIsUsable()
      Description copied from interface: Clickable
      Ensures the component is in a usable state before interaction.
      Specified by:
      ensureComponentIsUsable in interface Clickable<com.vaadin.flow.component.confirmdialog.ConfirmDialog>
    • open

      public void open()
      Opens the dialog, as clicking the component that owns it would. Javadoc copied from ConfirmDialogTester.open().
    • confirm

      public void confirm()
      Click the confirm button. Javadoc copied from ConfirmDialogTester.confirm().
    • cancel

      public void cancel()
      Click cancel button. Javadoc copied from ConfirmDialogTester.cancel().
      Throws:
      IllegalStateException - when cancel button is not enabled
    • reject

      public void reject()
      Click reject button. Javadoc copied from ConfirmDialogTester.reject().
      Throws:
      IllegalStateException - when reject button is not enabled
    • getText

      public String getText()
      Get the confirmation message text set to the component. Javadoc copied from ConfirmDialogTester.getText().
      Returns:
      confirmation message
    • getHeader

      public String getHeader()
      Get the header of the confirm dialog. Javadoc copied from ConfirmDialogTester.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 from ConfirmDialogTester.getHeaderElement().
      Returns:
      header element
      Throws:
      NoSuchElementException - if no header element found