Interface ElementFacade

All Superinterfaces:
net.thucydides.core.webdriver.ConfigurableTimeouts, org.openqa.selenium.interactions.Locatable, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, net.serenitybdd.core.pages.WebElementFacade, net.serenitybdd.core.pages.WebElementState, org.openqa.selenium.WrapsElement
All Known Subinterfaces:
ButtonElementFacade, TextBoxElementFacade, TextElementFacade
All Known Implementing Classes:
ButtonElementFacadeImpl, ElementFacadeImpl, TextBoxElementFacadeImpl, TextElementFacadeImpl

public interface ElementFacade extends net.serenitybdd.core.pages.WebElementFacade
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
     
    default void
     
    default void
     
    default void
     
    default void
     
    default void
     
    default void
     
    default void
     
    default void
     
    default void
     
    void
    Wrapper which is meant to click on a clickable element.
    <T extends ElementFacade>
    T
    Method to find an element inside an element using the xpath and to wrapp it in a BaseElementFacade instance
    org.openqa.selenium.WebDriver
     
    void
    this method is to make the mouse hover over the selected element.
    boolean
    this method will check if element is displayed or not without implicit timeout
    boolean
    Is this web element present and not visible on the screen This method will not throw an exception if the element is visible.
    void
    This method will scroll down the element
    void
    This method will scroll the element to the right
    void
    This method will scroll up or down until it reaches the web element

    Methods inherited from interface net.thucydides.core.webdriver.ConfigurableTimeouts

    getCurrentImplicitTimeout, resetTimeouts, setImplicitTimeout

    Methods inherited from interface org.openqa.selenium.interactions.Locatable

    getCoordinates

    Methods inherited from interface org.openqa.selenium.TakesScreenshot

    getScreenshotAs

    Methods inherited from interface org.openqa.selenium.WebElement

    findElement, findElements, getAccessibleName, getAriaRole, getCssValue, getDomAttribute, getDomProperty, getLocation, getRect, getShadowRoot, getSize, getTagName, isDisplayed, isEnabled, isSelected, sendKeys, submit

    Methods inherited from interface net.serenitybdd.core.pages.WebElementFacade

    and, clear, click, containsElements, containsElements, contextClick, deselect, deselectAll, deselectByIndex, deselectByValue, deselectByVisibleText, doubleClick, find, findBy, findBy, findBy, findNestedElementsMatching, getAttribute, getElement, getFirstSelectedOptionValue, getFirstSelectedOptionVisibleText, getImplicitTimeoutInMilliseconds, getSelectedValues, getSelectedVisibleTexts, getSelectOptions, getSelectOptionValues, getText, getTextContent, getValue, hasClass, isDisabled, select, selectByIndex, selectByValue, selectByVisibleText, setWindowFocus, shouldContainElements, shouldContainElements, then, then, then, then, thenFind, thenFind, thenFindAll, thenFindAll, thenFindAll, toString, type, typeAndEnter, typeAndTab, waitForCondition, waitUntilClickable, waitUntilDisabled, waitUntilEnabled, waitUntilNotVisible, waitUntilPresent, waitUntilVisible, withTimeoutOf, withTimeoutOf, withTimeoutOf

    Methods inherited from interface net.serenitybdd.core.pages.WebElementState

    containsOnlyText, containsSelectOption, containsText, containsValue, expect, getSelectedValue, getSelectedVisibleTextValue, getTextValue, hasFocus, isClickable, isCurrentlyEnabled, isEnabled, isPresent, isSelected, isVisible, shouldBeCurrentlyVisible, shouldBeEnabled, shouldBePresent, shouldBeSelected, shouldBeVisible, shouldContainOnlyText, shouldContainSelectedOption, shouldContainText, shouldNotBeCurrentlyVisible, shouldNotBeEnabled, shouldNotBePresent, shouldNotBeSelected, shouldNotBeVisible, shouldNotContainText

    Methods inherited from interface org.openqa.selenium.WrapsElement

    getWrappedElement
  • Method Details

    • click

      void click()
      Wrapper which is meant to click on a clickable element.
      Specified by:
      click in interface org.openqa.selenium.WebElement
      Specified by:
      click in interface net.serenitybdd.core.pages.WebElementFacade
    • findByXPath

      <T extends ElementFacade> T findByXPath(String xpath)
      Method to find an element inside an element using the xpath and to wrapp it in a BaseElementFacade instance
      Parameters:
      xpath - XPath of Sub element
      Returns:
      BaseElementFacade instance of the found element
    • getDriver

      org.openqa.selenium.WebDriver getDriver()
      Returns:
      currently used WebDriver
    • hover

      void hover()
      this method is to make the mouse hover over the selected element.
    • scrollToWebElement

      void scrollToWebElement()
      This method will scroll up or down until it reaches the web element
    • assertDisabled

      default void assertDisabled()
    • assertEnabled

      default void assertEnabled()
    • assertNotVisible

      default void assertNotVisible()
    • assertVisible

      default void assertVisible()
    • checkClickable

      default void checkClickable()
    • checkNotVisible

      default void checkNotVisible()
    • checkVisible

      default void checkVisible()
    • checkCurrentlyVisible

      default void checkCurrentlyVisible()
    • checkPresent

      default void checkPresent()
    • checkEnabled

      default void checkEnabled()
    • isCurrentlyVisible

      boolean isCurrentlyVisible()
      this method will check if element is displayed or not without implicit timeout
      Specified by:
      isCurrentlyVisible in interface net.serenitybdd.core.pages.WebElementState
      Returns:
      true if displayed else false
    • isNotVisible

      boolean isNotVisible()
      Is this web element present and not visible on the screen This method will not throw an exception if the element is visible. If the element is visible, the method will wait a bit to see if it appears later on.
      Returns:
      true if not visible else false
    • scrollDown

      void scrollDown()
      This method will scroll down the element
    • scrollToTheRight

      void scrollToTheRight()
      This method will scroll the element to the right