public class EWebElement extends Object
Constructor and Description |
---|
EWebElement() |
EWebElement(List<org.openqa.selenium.WebElement> list) |
EWebElement(org.openqa.selenium.WebElement element) |
Modifier and Type | Method and Description |
---|---|
EWebElement |
child()
Get immediate child of current web element
|
EWebElement |
children()
Get the children of current node in list .
|
EWebElement |
childrenUntil(String xpathExpression)
Get the children of the current elements, up to the matched element.
|
void |
clear()
Executes the clear keys command on the first element in the elements list stored inside.
|
void |
click()
Click on first web element represented by the said extended webelement
|
void |
clickAll()
Click on all webelement represented by the said extended webelement
|
EWebElement |
closest(String xpathSelector)
For each element in the set, get the first element that matches the
selector by testing the element itself and traversing up through its
ancestors in the DOM tree.
|
EWebElement |
filter(Filter... filters)
Filters the elements stored inside this EWebElement based on given filters
|
EWebElement |
find(org.openqa.selenium.By by)
Get the descendants of each element in the current set of matched
elements using the given By locator.
|
EWebElement |
find(String cssSelector)
Get the descendants of each element in the current set of matched
elements.
|
org.openqa.selenium.WebElement |
firstElement()
Get the first web element
|
EWebElement |
firstEWebElement()
Gets first extended eWeblement
|
String |
getAttribute(String name)
Returns the attribute value of the first element in the elements list stored inside.
|
String |
getTagName()
Returns the tag name of the first element in the elements list stored inside.
|
String |
getText()
Returns the text of the first element in the elements list stored inside.
|
List<org.openqa.selenium.WebElement> |
getWebElements()
Return the list of all webelements represented by this extended webelement
|
EWebElement |
immediateChildren()
Get immediate children of first WebElement stored in the EWebElement
|
boolean |
isAllDisplayed()
Executes the isDisplayed command on all the elements list stored inside.
|
boolean |
isDisplayed()
Executes the isDisplayed command on the first element in the elements list stored inside.
|
boolean |
isEnabled()
Executes the isEnabled command on the first element in the elements list stored inside.
|
boolean |
isSelected()
Executes the isSelected command on the first element in the elements list stored inside.
|
org.openqa.selenium.WebElement |
lastElement()
Get last web element
|
EWebElement |
lastEWebElement()
Return the extended webelement for the last webelement in the said EWebelement
|
EWebElement |
next()
Get the immediately following sibling.
|
EWebElement |
nextAll()
Get all following siblings of each element in the set of matched
elements.
|
EWebElement |
nextUntil(String xpathExpression)
Get all following siblings of each element up to .
|
EWebElement |
nthEWebElement(int index)
Get extended webelement for the webelement present at the given index
|
org.openqa.selenium.WebElement |
nthWebElement(int index)
Get nth element
|
EWebElement |
parent()
Get immediate parent of current web element
|
EWebElement |
parents()
Get the all parents of current node in list .
|
EWebElement |
parentsUntil(String xpathExpression)
Get the ancestors of the current elements, up to the matched element.
|
EWebElement |
prev()
Get the immediately preceding sibling.
|
EWebElement |
prevAll()
Get all preceding siblings of each element in the set of matched
elements.
|
EWebElement |
prevUntil(String xpathExpression)
Get all preceding siblings of each element up to .
|
void |
sendKeys(CharSequence... keysToSend)
Executes the send keys command on the first element in the elements list stored inside.
|
EWebElement |
siblings()
Get all sibling of current element .
|
int |
size()
Get the size of webelements represented by the said extended webelement
|
void |
submit()
Executes the submit action on the first element in the elements list stored inside.
|
void |
type(String value)
Type onto the first element if its an input box represented by the said extended webelement.
|
public EWebElement()
public EWebElement(List<org.openqa.selenium.WebElement> list)
public EWebElement(org.openqa.selenium.WebElement element)
public void click()
public void clickAll()
public void type(String value)
value
- that needs to be typed.public org.openqa.selenium.WebElement firstElement() throws NoEWebElementException
NoEWebElementException
public EWebElement firstEWebElement()
EWebElement
for the first webelementpublic org.openqa.selenium.WebElement lastElement()
WebElement
public EWebElement lastEWebElement()
EWebElement
for the last WebElement
public org.openqa.selenium.WebElement nthWebElement(int index)
index
- public EWebElement nthEWebElement(int index)
index
- position of the webelement for which you need to get the extended webelementEWebElement
for the webelement preset at the said index.public List<org.openqa.selenium.WebElement> getWebElements()
WebElement
public int size()
Integer
public EWebElement nextAll()
EWebElement
representing all sibling of the first elementpublic EWebElement prevAll()
public EWebElement prev()
public EWebElement next()
public EWebElement nextUntil(String xpathExpression)
xpathExpression
- public EWebElement prevUntil(String xpathExpression)
xpathExpression
- public EWebElement find(String cssSelector)
cssSelector
- public EWebElement siblings()
public EWebElement parent()
public EWebElement parentsUntil(String xpathExpression)
xpathExpression
- public EWebElement parents()
public EWebElement closest(String xpathSelector)
xpathSelector
- public EWebElement child()
public EWebElement immediateChildren()
public EWebElement childrenUntil(String xpathExpression)
xpathExpression
- public EWebElement children()
public EWebElement find(org.openqa.selenium.By by)
by
- By locatorpublic void submit()
public void sendKeys(CharSequence... keysToSend)
keysToSend
- public void clear()
public String getTagName()
public String getAttribute(String name)
name
- Name of the attribute for which the value has to be fetched.public boolean isSelected()
public boolean isEnabled()
public String getText()
public boolean isDisplayed()
public boolean isAllDisplayed()
public EWebElement filter(Filter... filters)
filters
- An array filters that needs to be applied to the said list.Copyright © 2014. All rights reserved.