Interface TextBoxElementFacade

All Superinterfaces:
net.thucydides.core.webdriver.ConfigurableTimeouts, ElementFacade, 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 Implementing Classes:
TextBoxElementFacadeImpl

public interface TextBoxElementFacade extends ElementFacade
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    setTextValue(String newValue)
     
    void
    setTextValue(String newValue, 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);

    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

    • getTextBoxValue

      String getTextBoxValue()
    • setTextValue

      void setTextValue(String newValue)
    • setTextValue

      void setTextValue(String newValue, 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);
      Parameters:
      newValue - String to fill the textBox field with.
      keys - Optional key to enter after having fulfilled the value in the specific field.