Package io.meeds.qa.ui.elements
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 TypeMethodDescriptiondefault voiddefault voiddefault voiddefault voiddefault voiddefault voiddefault voiddefault voiddefault voiddefault voidvoidclick()Wrapper which is meant to click on a clickable element.<T extends ElementFacade>
TfindByXPath(String xpath) Method to find an element inside an element using the xpath and to wrapp it in a BaseElementFacade instanceorg.openqa.selenium.WebDrivervoidhover()this method is to make the mouse hover over the selected element.booleanthis method will check if element is displayed or not without implicit timeoutbooleanIs this web element present and not visible on the screen This method will not throw an exception if the element is visible.voidThis method will scroll down the elementvoidThis method will scroll the element to the rightvoidThis method will scroll up or down until it reaches the web elementMethods inherited from interface net.thucydides.core.webdriver.ConfigurableTimeouts
getCurrentImplicitTimeout, resetTimeouts, setImplicitTimeoutMethods inherited from interface org.openqa.selenium.interactions.Locatable
getCoordinatesMethods inherited from interface org.openqa.selenium.TakesScreenshot
getScreenshotAsMethods inherited from interface org.openqa.selenium.WebElement
findElement, findElements, getAccessibleName, getAriaRole, getCssValue, getDomAttribute, getDomProperty, getLocation, getRect, getShadowRoot, getSize, getTagName, isDisplayed, isEnabled, isSelected, sendKeys, submitMethods 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, withTimeoutOfMethods 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, shouldNotContainTextMethods 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:
clickin interfaceorg.openqa.selenium.WebElement- Specified by:
clickin interfacenet.serenitybdd.core.pages.WebElementFacade
-
findByXPath
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:
isCurrentlyVisiblein interfacenet.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
-