public class WebElementReference
extends java.lang.Object
| Constructor and Description |
|---|
WebElementReference(org.openqa.selenium.WebDriver webDriver,
org.openqa.selenium.By by,
long defaultTimeout) |
WebElementReference(org.openqa.selenium.WebDriver webDriver,
org.openqa.selenium.SearchContext searchContext,
org.openqa.selenium.By by,
long defaultTimeout) |
WebElementReference(org.openqa.selenium.WebDriver webDriver,
org.openqa.selenium.SearchContext searchContext,
java.lang.String key,
long defaultTimeout) |
WebElementReference(org.openqa.selenium.WebDriver webDriver,
java.lang.String key,
long defaultTimeout) |
| Modifier and Type | Method and Description |
|---|---|
WebElementReference |
clear() |
WebElementReference |
clear(long timeout) |
WebElementReference |
click() |
WebElementReference |
click(long timeout) |
WebElementReference |
deselectAll() |
WebElementReference |
deselectAll(long timeout) |
WebElementReference |
deselectByIndex(int index) |
WebElementReference |
deselectByIndex(int index,
long timeout) |
WebElementReference |
deselectByValue(java.lang.String value) |
WebElementReference |
deselectByValue(java.lang.String value,
long timeout) |
WebElementReference |
deselectByVisibleText(java.lang.String text) |
WebElementReference |
deselectByVisibleText(java.lang.String text,
long timeout) |
java.util.List<org.openqa.selenium.WebElement> |
getAllSelectedOptions() |
java.util.List<org.openqa.selenium.WebElement> |
getAllSelectedOptions(long timeout) |
java.lang.String |
getAttribute(java.lang.String name) |
java.lang.String |
getAttribute(java.lang.String name,
long timeout) |
org.openqa.selenium.Point |
getCenter() |
org.openqa.selenium.Point |
getCenter(long timeout) |
java.lang.String |
getCssValue(java.lang.String propertyName) |
java.lang.String |
getCssValue(java.lang.String propertyName,
long timeout) |
org.openqa.selenium.WebElement |
getFirstSelectedOption() |
org.openqa.selenium.WebElement |
getFirstSelectedOption(long timeout) |
org.openqa.selenium.Point |
getLocation() |
org.openqa.selenium.Point |
getLocation(long timeout) |
java.util.List<org.openqa.selenium.WebElement> |
getSelectOptions() |
java.util.List<org.openqa.selenium.WebElement> |
getSelectOptions(long timeout) |
org.openqa.selenium.Dimension |
getSize() |
org.openqa.selenium.Dimension |
getSize(long timeout) |
java.lang.String |
getTagName() |
java.lang.String |
getTagName(long timeout) |
java.lang.String |
getText() |
java.lang.String |
getText(long timeout) |
org.openqa.selenium.WebElement |
getWebElement() |
java.util.List<org.openqa.selenium.WebElement> |
getWebElements() |
boolean |
isDisplayed() |
boolean |
isDisplayed(long timeout) |
boolean |
isEnabled() |
boolean |
isEnabled(long timeout) |
WebElementReference |
isMultiSelect() |
WebElementReference |
isMultiSelect(long timeout) |
boolean |
isNotPresent() |
boolean |
isPresent() |
boolean |
isSelected() |
boolean |
isSelected(long timeout) |
WebElementReference |
moveTo() |
WebElementReference |
moveTo(long timeout) |
WebElementReference |
selectByIndex(int index) |
WebElementReference |
selectByIndex(int index,
long timeout) |
WebElementReference |
selectByValue(java.lang.String value) |
WebElementReference |
selectByValue(java.lang.String value,
long timeout) |
WebElementReference |
selectByVisibleText(java.lang.String text) |
WebElementReference |
selectByVisibleText(java.lang.String text,
long timeout) |
WebElementReference |
sendKeys(java.lang.CharSequence text) |
WebElementReference |
sendKeys(java.lang.CharSequence text,
long timeout) |
WebElementReference |
submit() |
WebElementReference |
submit(long timeout) |
WebElementReference |
waitForText(java.lang.String message) |
WebElementReference |
waitForText(java.lang.String message,
long timeout) |
WebElementReference |
waitToAppear() |
WebElementReference |
waitToAppear(long timeout) |
void |
waitToDisappear() |
void |
waitToDisappear(long timeout) |
public WebElementReference(org.openqa.selenium.WebDriver webDriver,
org.openqa.selenium.By by,
long defaultTimeout)
public WebElementReference(org.openqa.selenium.WebDriver webDriver,
java.lang.String key,
long defaultTimeout)
public WebElementReference(org.openqa.selenium.WebDriver webDriver,
org.openqa.selenium.SearchContext searchContext,
org.openqa.selenium.By by,
long defaultTimeout)
public WebElementReference(org.openqa.selenium.WebDriver webDriver,
org.openqa.selenium.SearchContext searchContext,
java.lang.String key,
long defaultTimeout)
public boolean isPresent()
public boolean isNotPresent()
public org.openqa.selenium.Point getCenter()
throws SeleniumBrowserException
SeleniumBrowserExceptionpublic org.openqa.selenium.Point getCenter(long timeout)
throws SeleniumBrowserException
SeleniumBrowserExceptionpublic WebElementReference click() throws SeleniumBrowserException
SeleniumBrowserExceptionpublic WebElementReference click(long timeout) throws SeleniumBrowserException
SeleniumBrowserExceptionpublic WebElementReference submit()
public WebElementReference submit(long timeout)
public WebElementReference sendKeys(java.lang.CharSequence text) throws SeleniumBrowserException
SeleniumBrowserExceptionpublic WebElementReference sendKeys(java.lang.CharSequence text, long timeout) throws SeleniumBrowserException
SeleniumBrowserExceptionpublic WebElementReference clear() throws SeleniumBrowserException
SeleniumBrowserExceptionpublic WebElementReference clear(long timeout) throws SeleniumBrowserException
SeleniumBrowserExceptionpublic java.lang.String getTagName()
public java.lang.String getTagName(long timeout)
public java.lang.String getAttribute(java.lang.String name)
public java.lang.String getAttribute(java.lang.String name,
long timeout)
public boolean isSelected()
public boolean isSelected(long timeout)
public boolean isEnabled()
public boolean isEnabled(long timeout)
public boolean isDisplayed()
public boolean isDisplayed(long timeout)
public org.openqa.selenium.Point getLocation()
public org.openqa.selenium.Point getLocation(long timeout)
public org.openqa.selenium.Dimension getSize()
public org.openqa.selenium.Dimension getSize(long timeout)
public java.lang.String getCssValue(java.lang.String propertyName)
public java.lang.String getCssValue(java.lang.String propertyName,
long timeout)
throws SeleniumBrowserException
SeleniumBrowserExceptionpublic WebElementReference moveTo() throws SeleniumBrowserException
SeleniumBrowserExceptionpublic WebElementReference moveTo(long timeout) throws SeleniumBrowserException
SeleniumBrowserExceptionpublic java.lang.String getText()
throws SeleniumBrowserException
SeleniumBrowserExceptionpublic java.lang.String getText(long timeout)
throws SeleniumBrowserException
SeleniumBrowserExceptionpublic WebElementReference waitForText(java.lang.String message) throws SeleniumBrowserException
SeleniumBrowserExceptionpublic WebElementReference waitForText(java.lang.String message, long timeout) throws SeleniumBrowserException
SeleniumBrowserExceptionpublic org.openqa.selenium.WebElement getWebElement()
public java.util.List<org.openqa.selenium.WebElement> getWebElements()
public WebElementReference waitToAppear() throws SeleniumBrowserException
SeleniumBrowserExceptionpublic WebElementReference waitToAppear(long timeout) throws SeleniumBrowserException
SeleniumBrowserExceptionpublic void waitToDisappear()
throws SeleniumBrowserException
SeleniumBrowserExceptionpublic void waitToDisappear(long timeout)
throws SeleniumBrowserException
SeleniumBrowserExceptionpublic WebElementReference isMultiSelect()
public WebElementReference isMultiSelect(long timeout)
public java.util.List<org.openqa.selenium.WebElement> getSelectOptions()
public java.util.List<org.openqa.selenium.WebElement> getSelectOptions(long timeout)
public java.util.List<org.openqa.selenium.WebElement> getAllSelectedOptions()
public java.util.List<org.openqa.selenium.WebElement> getAllSelectedOptions(long timeout)
public org.openqa.selenium.WebElement getFirstSelectedOption()
public org.openqa.selenium.WebElement getFirstSelectedOption(long timeout)
public WebElementReference selectByVisibleText(java.lang.String text)
public WebElementReference selectByVisibleText(java.lang.String text, long timeout)
public WebElementReference selectByIndex(int index)
public WebElementReference selectByIndex(int index, long timeout)
public WebElementReference selectByValue(java.lang.String value)
public WebElementReference selectByValue(java.lang.String value, long timeout)
public WebElementReference deselectAll()
public WebElementReference deselectAll(long timeout)
public WebElementReference deselectByValue(java.lang.String value)
public WebElementReference deselectByValue(java.lang.String value, long timeout)
public WebElementReference deselectByIndex(int index)
public WebElementReference deselectByIndex(int index, long timeout)
public WebElementReference deselectByVisibleText(java.lang.String text)
public WebElementReference deselectByVisibleText(java.lang.String text, long timeout)