com.atlassian.pageobjects.elements.query.webdriver
Class WebDriverQueryFunctions

java.lang.Object
  extended by com.atlassian.pageobjects.elements.query.webdriver.WebDriverQueryFunctions

public final class WebDriverQueryFunctions
extends Object

Collection of functions for implementing timed queries in WebDriver.


Method Summary
static com.google.common.base.Function<org.openqa.selenium.WebElement,String> getAttribute(String attributeName)
           
static com.google.common.base.Function<org.openqa.selenium.WebElement,org.openqa.selenium.Point> getLocation()
           
static com.google.common.base.Function<org.openqa.selenium.WebElement,org.openqa.selenium.Dimension> getSize()
           
static com.google.common.base.Function<org.openqa.selenium.WebElement,String> getTagName()
           
static com.google.common.base.Function<org.openqa.selenium.WebElement,String> getText()
           
static com.google.common.base.Function<org.openqa.selenium.WebElement,String> getValue()
           
static com.google.common.base.Function<org.openqa.selenium.WebElement,Boolean> hasAttribute(String attributeName, String expectedValue)
           
static com.google.common.base.Function<org.openqa.selenium.WebElement,Boolean> hasClass(String className)
           
static com.google.common.base.Function<org.openqa.selenium.WebElement,Boolean> hasText(String text)
           
static com.google.common.base.Function<org.openqa.selenium.WebElement,Boolean> hasValue(String value)
           
static com.google.common.base.Function<org.openqa.selenium.WebElement,Boolean> isEnabled()
           
static com.google.common.base.Function<org.openqa.selenium.WebElement,Boolean> isPresent()
           
static com.google.common.base.Supplier<Boolean> isPresent(org.openqa.selenium.SearchContext searchContext, org.openqa.selenium.By locator)
           
static com.google.common.base.Function<org.openqa.selenium.WebElement,Boolean> isSelected()
           
static com.google.common.base.Function<org.openqa.selenium.WebElement,Boolean> isVisible()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isPresent

public static com.google.common.base.Supplier<Boolean> isPresent(org.openqa.selenium.SearchContext searchContext,
                                                                 org.openqa.selenium.By locator)

isPresent

public static com.google.common.base.Function<org.openqa.selenium.WebElement,Boolean> isPresent()

isVisible

public static com.google.common.base.Function<org.openqa.selenium.WebElement,Boolean> isVisible()

isEnabled

public static com.google.common.base.Function<org.openqa.selenium.WebElement,Boolean> isEnabled()

isSelected

public static com.google.common.base.Function<org.openqa.selenium.WebElement,Boolean> isSelected()

getTagName

public static com.google.common.base.Function<org.openqa.selenium.WebElement,String> getTagName()

getText

public static com.google.common.base.Function<org.openqa.selenium.WebElement,String> getText()

getValue

public static com.google.common.base.Function<org.openqa.selenium.WebElement,String> getValue()

getLocation

public static com.google.common.base.Function<org.openqa.selenium.WebElement,org.openqa.selenium.Point> getLocation()

getSize

public static com.google.common.base.Function<org.openqa.selenium.WebElement,org.openqa.selenium.Dimension> getSize()

getAttribute

public static com.google.common.base.Function<org.openqa.selenium.WebElement,String> getAttribute(String attributeName)

hasAttribute

public static com.google.common.base.Function<org.openqa.selenium.WebElement,Boolean> hasAttribute(String attributeName,
                                                                                                   String expectedValue)

hasClass

public static com.google.common.base.Function<org.openqa.selenium.WebElement,Boolean> hasClass(String className)

hasText

public static com.google.common.base.Function<org.openqa.selenium.WebElement,Boolean> hasText(String text)

hasValue

public static com.google.common.base.Function<org.openqa.selenium.WebElement,Boolean> hasValue(String value)


Copyright © 2014 Atlassian. All rights reserved.