Package org.xwiki.ckeditor.test.po
Class MacroDialogSelectModal
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.ckeditor.test.po.MacroDialogSelectModal
-
public class MacroDialogSelectModal extends BaseElement
Page Object for the macro selection modal.- Since:
- 14.9
- Version:
- $Id: 166f195274461d8c3eaa97247c2440fca44543fc $
-
-
Constructor Summary
Constructors Constructor Description MacroDialogSelectModal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MacroDialogEditModal
clickSelect()
Click on the macro selection button.void
filterByText(String value, long expectedCount)
Filter the list of macro by text.Optional<org.openqa.selenium.WebElement>
getFirstMacro()
MacroDialogSelectModal
waitUntilReady()
Wait until the macro selection modal is loaded.-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Method Detail
-
waitUntilReady
public MacroDialogSelectModal waitUntilReady()
Wait until the macro selection modal is loaded.- Returns:
- the current page object
-
filterByText
public void filterByText(String value, long expectedCount)
Filter the list of macro by text.- Parameters:
value
- the text to filter (e.g., "Pages")expectedCount
- the expected number of macros listed after filtering
-
getFirstMacro
public Optional<org.openqa.selenium.WebElement> getFirstMacro()
- Returns:
- the first listed macro
-
clickSelect
public MacroDialogEditModal clickSelect()
Click on the macro selection button.- Returns:
- the page object for the macro dialog edition modal
-
-