net.thucydides.core.pages
Interface WebElementFacade

Package class diagram package WebElementFacade
All Superinterfaces:
org.openqa.selenium.internal.Locatable, org.openqa.selenium.SearchContext, org.openqa.selenium.WebElement, WebElementState, org.openqa.selenium.internal.WrapsElement
All Known Implementing Classes:
WebElementFacadeImpl

public interface WebElementFacade
extends org.openqa.selenium.WebElement, org.openqa.selenium.internal.WrapsElement, org.openqa.selenium.internal.Locatable, WebElementState


Method Summary
 WebElementFacade and()
          Convenience method to chain method calls more fluently.
 void clear()
           
 void click()
          Wait for an element to be visible and enabled, and then click on it.
 WebElementFacade find(org.openqa.selenium.By bySelector)
           
 WebElementFacade findBy(org.openqa.selenium.By selector)
           
 WebElementFacade findBy(String xpathOrCssSelector)
           
 String getAttribute(String name)
           
 List<String> getSelectOptions()
           
 String getText()
           
 long getTimeoutInMilliseconds()
           
 String getValue()
           
 WebElementFacade selectByIndex(int indexValue)
           
 WebElementFacade selectByValue(String value)
           
 WebElementFacade selectByVisibleText(String label)
           
 void setWindowFocus()
           
 WebElementFacade then()
          Convenience method to chain method calls more fluently.
 WebElementFacade then(org.openqa.selenium.By bySelector)
           
 WebElementFacade then(String xpathOrCssSelector)
           
 List<WebElementFacade> thenFindAll(org.openqa.selenium.By selector)
           
 List<WebElementFacade> thenFindAll(String xpathOrCssSelector)
           
 String toString()
           
 WebElementFacade type(String value)
          Type a value into a field, making sure that the field is empty first.
 WebElementFacade typeAndEnter(String value)
          Type a value into a field and then press Enter, making sure that the field is empty first.
 WebElementFacade typeAndTab(String value)
          Type a value into a field and then press TAB, making sure that the field is empty first.
 org.openqa.selenium.support.ui.Wait<org.openqa.selenium.WebDriver> waitForCondition()
           
 WebElementFacade waitUntilDisabled()
           
 WebElementFacade waitUntilEnabled()
           
 WebElementFacade waitUntilNotVisible()
           
 WebElementFacade waitUntilPresent()
           
 WebElementFacade waitUntilVisible()
           
 WebElementFacade withTimeoutOf(int timeout, TimeUnit unit)
           
 
Methods inherited from interface org.openqa.selenium.WebElement
findElement, findElements, getCssValue, getLocation, getSize, getTagName, isDisplayed, isEnabled, isSelected, sendKeys, submit
 
Methods inherited from interface org.openqa.selenium.internal.WrapsElement
getWrappedElement
 
Methods inherited from interface org.openqa.selenium.internal.Locatable
getCoordinates
 
Methods inherited from interface net.thucydides.core.pages.WebElementState
containsOnlyText, containsSelectOption, containsText, getSelectedValue, getSelectedVisibleTextValue, getTextValue, hasFocus, isCurrentlyEnabled, isCurrentlyVisible, isEnabled, isPresent, isSelected, isVisible, shouldBeCurrentlyVisible, shouldBeEnabled, shouldBePresent, shouldBeVisible, shouldContainOnlyText, shouldContainSelectedOption, shouldContainText, shouldNotBeCurrentlyVisible, shouldNotBeEnabled, shouldNotBePresent, shouldNotBeVisible, shouldNotContainText
 

Method Detail

then

WebElementFacade then(String xpathOrCssSelector)

findBy

WebElementFacade findBy(String xpathOrCssSelector)

thenFindAll

List<WebElementFacade> thenFindAll(String xpathOrCssSelector)

findBy

WebElementFacade findBy(org.openqa.selenium.By selector)

find

WebElementFacade find(org.openqa.selenium.By bySelector)

then

WebElementFacade then(org.openqa.selenium.By bySelector)

getAttribute

String getAttribute(String name)
Specified by:
getAttribute in interface org.openqa.selenium.WebElement

thenFindAll

List<WebElementFacade> thenFindAll(org.openqa.selenium.By selector)

getTimeoutInMilliseconds

long getTimeoutInMilliseconds()

withTimeoutOf

WebElementFacade withTimeoutOf(int timeout,
                               TimeUnit unit)

and

WebElementFacade and()
Convenience method to chain method calls more fluently.


then

WebElementFacade then()
Convenience method to chain method calls more fluently.


getSelectOptions

List<String> getSelectOptions()

type

WebElementFacade type(String value)
Type a value into a field, making sure that the field is empty first.

Parameters:
value -

typeAndEnter

WebElementFacade typeAndEnter(String value)
Type a value into a field and then press Enter, making sure that the field is empty first.

Parameters:
value -

typeAndTab

WebElementFacade typeAndTab(String value)
Type a value into a field and then press TAB, making sure that the field is empty first. This currently is not supported by all browsers, notably Firefox.

Parameters:
value -

setWindowFocus

void setWindowFocus()

selectByVisibleText

WebElementFacade selectByVisibleText(String label)

selectByValue

WebElementFacade selectByValue(String value)

selectByIndex

WebElementFacade selectByIndex(int indexValue)

waitUntilVisible

WebElementFacade waitUntilVisible()

waitUntilPresent

WebElementFacade waitUntilPresent()

waitForCondition

org.openqa.selenium.support.ui.Wait<org.openqa.selenium.WebDriver> waitForCondition()

waitUntilNotVisible

WebElementFacade waitUntilNotVisible()

getValue

String getValue()

getText

String getText()
Specified by:
getText in interface org.openqa.selenium.WebElement

waitUntilEnabled

WebElementFacade waitUntilEnabled()

waitUntilDisabled

WebElementFacade waitUntilDisabled()

click

void click()
Wait for an element to be visible and enabled, and then click on it.

Specified by:
click in interface org.openqa.selenium.WebElement

clear

void clear()
Specified by:
clear in interface org.openqa.selenium.WebElement

toString

String toString()
Overrides:
toString in class Object


Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.