Package io.meeds.qa.ui.elements
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
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetTextValue(String newValue) voidsetTextValue(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, setImplicitTimeoutMethods inherited from interface io.meeds.qa.ui.elements.ElementFacade
assertDisabled, assertEnabled, assertNotVisible, assertVisible, checkClickable, checkCurrentlyVisible, checkEnabled, checkNotVisible, checkPresent, checkVisible, click, findByXPath, getDriver, hover, isCurrentlyVisible, isNotVisible, scrollDown, scrollToTheRight, scrollToWebElementMethods 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
-
getTextBoxValue
String getTextBoxValue() -
setTextValue
-
setTextValue
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.
-