Class TextBoxElementFacadeImpl

java.lang.Object
net.serenitybdd.core.pages.WebElementFacadeImpl
io.meeds.qa.ui.elements.ElementFacadeImpl
io.meeds.qa.ui.elements.TextBoxElementFacadeImpl
All Implemented Interfaces:
ElementFacade, TextBoxElementFacade, net.serenitybdd.core.pages.WebElementFacade, net.serenitybdd.core.pages.WebElementState, net.thucydides.core.pages.WebElementFacade, net.thucydides.core.pages.WebElementState, net.thucydides.core.webdriver.ConfigurableTimeouts, org.openqa.selenium.interactions.Locatable, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsElement

public class TextBoxElementFacadeImpl extends ElementFacadeImpl implements TextBoxElementFacade
  • Field Summary

    Fields inherited from class io.meeds.qa.ui.elements.ElementFacadeImpl

    webElement, xPathOrCSSSelector

    Fields inherited from class net.serenitybdd.core.pages.WebElementFacadeImpl

    NUMBER_OF_TRIES_FOR_UNREADY_ELEMENTS
  • Constructor Summary

    Constructors
    Constructor
    Description
    TextBoxElementFacadeImpl(org.openqa.selenium.WebDriver driver, org.openqa.selenium.support.pagefactory.ElementLocator locator, String xPathOrCSSSelector, org.openqa.selenium.WebElement element, long timeoutInMilliseconds, long waitForTimeoutInMilliseconds)
     
    TextBoxElementFacadeImpl(org.openqa.selenium.WebDriver driver, org.openqa.selenium.support.pagefactory.ElementLocator locator, org.openqa.selenium.WebElement element, long timeoutInMilliseconds, long waitForTimeoutInMilliseconds)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     
    void
    sendValueWithKeys(boolean clear, org.openqa.selenium.Keys keys, CharSequence... value)
     
    void
    sendValueWithKeysOnElement(boolean clear, org.openqa.selenium.Keys keys, CharSequence... value)
     
    void
     
    void
    setTextValue(String value, org.openqa.selenium.Keys keys)
    This method changes the text value of the WebElement followed by some Keys.
    Example: enter the value "abc" in the field MyWebElement then the Keys Enter would be:
    changeValueTo("abc", KEY.ENTER);
    wrapWebElementFacadeInTextBoxElement(org.openqa.selenium.WebDriver driver, net.serenitybdd.core.pages.WebElementFacade element, org.openqa.selenium.support.pagefactory.ElementLocator locator, String xPathOrCSSSelector, long implicitTimeoutInMilliseconds, long waitForTimeoutInMilliseconds)
     

    Methods inherited from class net.serenitybdd.core.pages.WebElementFacadeImpl

    and, clear, click, containsElements, containsElements, containsOnlyText, containsSelectOption, containsText, containsValue, contextClick, deselect, deselectAll, deselectByIndex, deselectByValue, deselectByVisibleText, doubleClick, driverIsDisabled, expect, expectingErrorMessage, find, findBy, findBy, findBy, findElement, findElements, findNestedElementsMatching, foundBy, fromWebElements, getAccessibleName, getAriaRole, getAttribute, getClock, getCoordinates, getCssValue, getCurrentImplicitTimeout, getDomAttribute, getDomProperty, getErrorMessage, getFirstSelectedOptionValue, getFirstSelectedOptionVisibleText, getFoundBy, getImplicitTimeout, getImplicitTimeoutInMilliseconds, getJavascriptExecutorFacade, getLocation, getLocator, getRect, getScreenshotAs, getSelectedValue, getSelectedValues, getSelectedVisibleTexts, getSelectedVisibleTextValue, getSelectOptions, getSelectOptionValues, getShadowRoot, getSize, getTagName, getText, getTextContent, getTextValue, getValue, getWrappedElement, hasClass, hasFocus, isSelected, notifyScreenChange, resetTimeouts, select, selectByIndex, selectByValue, selectByVisibleText, setImplicitTimeout, setWindowFocus, shouldBeCurrentlyVisible, shouldBeEnabled, shouldBePresent, shouldBeSelected, shouldBeVisible, shouldContainElements, shouldContainElements, shouldContainOnlyText, shouldContainSelectedOption, shouldContainText, shouldNotBeCurrentlyVisible, shouldNotBeEnabled, shouldNotBePresent, shouldNotBeSelected, shouldNotBeVisible, shouldNotContainText, submit, then, then, then, then, thenFind, thenFind, thenFindAll, thenFindAll, thenFindAll, timeoutInMilliseconds, toString, type, typeAndEnter, typeAndTab, waitForCondition, waitUntilDisabled, waitUntilElementAvailable, waitUntilElementPresent, waitUntilEnabled, waitUntilPresent, withTimeoutOf, withTimeoutOf, withTimeoutOf, wrapWebElement, wrapWebElement, wrapWebElement, wrapWebElement, wrapWebElement, wrapWebElement

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    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, 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
  • Constructor Details

    • TextBoxElementFacadeImpl

      public TextBoxElementFacadeImpl(org.openqa.selenium.WebDriver driver, org.openqa.selenium.support.pagefactory.ElementLocator locator, String xPathOrCSSSelector, org.openqa.selenium.WebElement element, long timeoutInMilliseconds, long waitForTimeoutInMilliseconds)
    • TextBoxElementFacadeImpl

      public TextBoxElementFacadeImpl(org.openqa.selenium.WebDriver driver, org.openqa.selenium.support.pagefactory.ElementLocator locator, org.openqa.selenium.WebElement element, long timeoutInMilliseconds, long waitForTimeoutInMilliseconds)
  • Method Details

    • wrapWebElementFacadeInTextBoxElement

      public static TextBoxElementFacadeImpl wrapWebElementFacadeInTextBoxElement(org.openqa.selenium.WebDriver driver, net.serenitybdd.core.pages.WebElementFacade element, org.openqa.selenium.support.pagefactory.ElementLocator locator, String xPathOrCSSSelector, long implicitTimeoutInMilliseconds, long waitForTimeoutInMilliseconds)
    • getTextBoxValue

      public String getTextBoxValue()
      Specified by:
      getTextBoxValue in interface TextBoxElementFacade
    • sendKeys

      public void sendKeys(CharSequence... value)
      Specified by:
      sendKeys in interface org.openqa.selenium.WebElement
      Overrides:
      sendKeys in class net.serenitybdd.core.pages.WebElementFacadeImpl
    • sendValueWithKeys

      public void sendValueWithKeys(boolean clear, org.openqa.selenium.Keys keys, CharSequence... value)
    • sendValueWithKeysOnElement

      public void sendValueWithKeysOnElement(boolean clear, org.openqa.selenium.Keys keys, CharSequence... value)
    • setTextValue

      public void setTextValue(String value)
      Specified by:
      setTextValue in interface TextBoxElementFacade
    • setTextValue

      public void setTextValue(String value, org.openqa.selenium.Keys keys)
      Description copied from interface: TextBoxElementFacade
      This method changes the text value of the WebElement followed by some Keys.
      Example: enter the value "abc" in the field MyWebElement then the Keys Enter would be:
      changeValueTo("abc", KEY.ENTER);
      Specified by:
      setTextValue in interface TextBoxElementFacade
      Parameters:
      value - String to fill the textBox field with.
      keys - Optional key to enter after having fulfilled the value in the specific field.