Class BasePageImpl

java.lang.Object
net.serenitybdd.core.pages.PageObject
net.thucydides.core.pages.PageObject
io.meeds.qa.ui.pages.BasePageImpl
All Implemented Interfaces:
BasePage
Direct Known Subclasses:
GenericPage

public class BasePageImpl extends net.thucydides.core.pages.PageObject implements BasePage
  • Field Details

  • Constructor Details

    • BasePageImpl

      public BasePageImpl()
    • BasePageImpl

      public BasePageImpl(org.openqa.selenium.WebDriver driver)
  • Method Details

    • clickOnElement

      public void clickOnElement(ElementFacade element)
    • closeAlertIfOpened

      public void closeAlertIfOpened()
    • clickToConfirmDialog

      public void clickToConfirmDialog()
    • closeConfirmDialogIfDisplayed

      public void closeConfirmDialogIfDisplayed()
    • clickToCancelDialog

      public void clickToCancelDialog()
    • closeToastNotification

      public void closeToastNotification(boolean waitElement)
    • closeAllDialogs

      public void closeAllDialogs()
    • closeMenu

      public void closeMenu()
    • isMenuDisplayed

      public boolean isMenuDisplayed()
    • waitMenuToDisplay

      public void waitMenuToDisplay()
    • closeAllDrawers

      public void closeAllDrawers()
    • closeDrawerIfDisplayed

      public boolean closeDrawerIfDisplayed()
    • expandDrawer

      public void expandDrawer()
    • clickOnGoBack

      public void clickOnGoBack()
    • clickOnGoBackInDrawer

      public void clickOnGoBackInDrawer()
    • clickButton

      public void clickButton(String buttonText, int index)
    • clickButton

      public void clickButton(String buttonText)
    • clickMenuItem

      public void clickMenuItem(String menuItemText)
    • clickLink

      public void clickLink(String linkText)
    • clickOnText

      public void clickOnText(String text)
    • clickDrawerButton

      public void clickDrawerButton(String buttonText)
    • clickSelecdLevelDrawerButton

      public void clickSelecdLevelDrawerButton(String buttonText)
    • buttonIsDisabled

      public void buttonIsDisabled(String buttonText)
    • buttonIsEnabled

      public void buttonIsEnabled(String buttonText)
    • buttonInDrawerIsDisabled

      public void buttonInDrawerIsDisabled(String buttonText)
    • buttonInDrawerIsEnabled

      public void buttonInDrawerIsEnabled(String buttonText)
    • buttonInDrawerIsNotDisplayed

      public void buttonInDrawerIsNotDisplayed(String buttonText)
    • buttonInDrawerIsDisplayed

      public void buttonInDrawerIsDisplayed(String buttonText)
    • findButtonByXPathOrCSS

      public ButtonElementFacade findButtonByXPathOrCSS(String xpath)
    • findByXPathOrCSS

      public ElementFacade findByXPathOrCSS(String xpathOrCSSSelector)
      Description copied from interface: BasePage
      Method to find an element that has the type BaseElementFacade using an xpath.
      Specified by:
      findByXPathOrCSS in interface BasePage
      Parameters:
      xpathOrCSSSelector - : xpath of the element
      Returns:
      ElementFacade object
    • findTextBoxByXPathOrCSS

      public TextBoxElementFacade findTextBoxByXPathOrCSS(String xpathOrCSSSelector)
    • findTextByXPathOrCSS

      public TextElementFacade findTextByXPathOrCSS(String xpath)
    • getCurrentUrl

      public String getCurrentUrl()
    • mentionInField

      public boolean mentionInField(TextBoxElementFacade inputField, String user, int maxRetries)
    • mentionUserInCKEditor

      public boolean mentionUserInCKEditor(ElementFacade ckEditorFrame, TextBoxElementFacade ckEditorBody, String content, String user, boolean shouldExists)
    • openedDialogElement

      public ElementFacade openedDialogElement()
    • openedDrawerElement

      public ElementFacade openedDrawerElement()
    • expandDrawerButton

      public ElementFacade expandDrawerButton()
    • notificationContentElement

      public ElementFacade notificationContentElement(String message)
    • notificationContentElement

      public ElementFacade notificationContentElement(String message, String content)
    • verifyPageLoaded

      public void verifyPageLoaded()
    • waitCKEditorLoading

      public void waitCKEditorLoading()
    • waitDrawerCKEditorLoading

      public void waitDrawerCKEditorLoading()
    • waitCKEditorLoading

      public void waitCKEditorLoading(String parentXPath)
    • waitForDrawerToClose

      public void waitForDrawerToClose()
    • waitForDrawerToClose

      public void waitForDrawerToClose(String drawerId, boolean withOverlay)
    • waitForDrawerToLoad

      public void waitForDrawerToLoad()
    • waitForDrawerToOpen

      public void waitForDrawerToOpen()
    • waitForDrawerToOpen

      public void waitForDrawerToOpen(boolean throwException)
    • waitForDrawerToOpen

      public void waitForDrawerToOpen(String drawerId, boolean withOverlay)
    • waitForDrawerToOpen

      public void waitForDrawerToOpen(boolean withOverlay, boolean throwException)
    • waitForDrawerToOpen

      public void waitForDrawerToOpen(String drawerId, boolean withOverlay, boolean throwException)
    • waitForProgressBar

      public void waitForProgressBar()
    • waitForProgressBar

      public void waitForProgressBar(boolean waitForProgress)
    • pageProgressBar

      public ElementFacade pageProgressBar()
    • waitForMenuToOpen

      public void waitForMenuToOpen(String contentClass)
    • waitForMenuToClose

      public void waitForMenuToClose(String contentClass)
    • getButton

      public ElementFacade getButton(String buttonText)
    • getButton

      public ElementFacade getButton(String buttonText, int index)
    • getMenuItem

      public ElementFacade getMenuItem(String menuItemText)
    • getLink

      public ElementFacade getLink(String linkText)
    • getText

      public ElementFacade getText(String text)
    • getDrawerButton

      public ElementFacade getDrawerButton(String buttonName)
    • getSelecdLevelDrawerButton

      public ElementFacade getSelecdLevelDrawerButton(String buttonName, int index)
    • attachImageToOpenedDrawer

      public void attachImageToOpenedDrawer()
    • attachGifImageToCKeditor

      public void attachGifImageToCKeditor()
    • attachImageToCKeditor

      public void attachImageToCKeditor()
    • attachImageToCKeditor

      public void attachImageToCKeditor(String fileName)
    • attachFileInput

      public ElementFacade attachFileInput(boolean secondLevel)
    • attachImageToFileInput

      public void attachImageToFileInput(String xPathOrCss, String fileName)
    • attachImageToFileInput

      public void attachImageToFileInput(ElementFacade fileInput, String fileName)
    • pressEscape

      public void pressEscape()