Package io.meeds.qa.ui.elements
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
-
Field Summary
Fields inherited from class io.meeds.qa.ui.elements.ElementFacadeImpl
webElement, xPathOrCSSSelectorFields inherited from class net.serenitybdd.core.pages.WebElementFacadeImpl
NUMBER_OF_TRIES_FOR_UNREADY_ELEMENTS -
Constructor Summary
ConstructorsConstructorDescriptionTextBoxElementFacadeImpl(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 TypeMethodDescriptionvoidsendKeys(CharSequence... value) voidsendValueWithKeys(boolean clear, org.openqa.selenium.Keys keys, CharSequence... value) voidsendValueWithKeysOnElement(boolean clear, org.openqa.selenium.Keys keys, CharSequence... value) voidsetTextValue(String value) voidsetTextValue(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);static TextBoxElementFacadeImplwrapWebElementFacadeInTextBoxElement(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 io.meeds.qa.ui.elements.ElementFacadeImpl
checkXpathFormat, click, findByXPath, findSubElementFacadeByXPathOrCSS, getDriver, getElement, getWebElementFacadeByXPathOrCSS, hover, isClickable, isCurrentlyEnabled, isCurrentlyVisible, isDisabled, isDisplayed, isElementNotVisible, isElementVisible, isEnabled, isNotVisible, isPresent, isVisible, scrollDown, scrollToTheRight, scrollToWebElement, waitUntilClickable, waitUntilNotVisible, waitUntilVisible, wrapWebElementFacadeMethods 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, wrapWebElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, 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
-
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
- Specified by:
getTextBoxValuein interfaceTextBoxElementFacade
-
sendKeys
- Specified by:
sendKeysin interfaceorg.openqa.selenium.WebElement- Overrides:
sendKeysin classnet.serenitybdd.core.pages.WebElementFacadeImpl
-
sendValueWithKeys
-
sendValueWithKeysOnElement
public void sendValueWithKeysOnElement(boolean clear, org.openqa.selenium.Keys keys, CharSequence... value) -
setTextValue
- Specified by:
setTextValuein interfaceTextBoxElementFacade
-
setTextValue
Description copied from interface:TextBoxElementFacadeThis 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:
setTextValuein interfaceTextBoxElementFacade- Parameters:
value- String to fill the textBox field with.keys- Optional key to enter after having fulfilled the value in the specific field.
-