public class ImpEnhancedWebElement extends Object implements EnhancedWebElement
| Modifier and Type | Field and Description |
|---|---|
Element.LocatorType |
locatorType |
| Constructor and Description |
|---|
ImpEnhancedWebElement(EnhancedBy parent,
int parentIndex,
org.openqa.selenium.WebDriver webDriver,
EnhancedBy element) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
clear(int index) |
void |
click() |
void |
click(int index) |
int |
count() |
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By arg0) |
EnhancedWebElement |
findElement(EnhancedBy parentElement,
int parentIndex,
EnhancedBy element) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
org.openqa.selenium.WebElement |
get(int index) |
String |
getAttribute(int index,
String name) |
String |
getAttribute(String name) |
String |
getAttribute(String name,
int index) |
org.openqa.selenium.By |
getBy() |
String |
getCssSelectorValue() |
String |
getCssValue(String arg0) |
String |
getCssValue(String arg0,
int index) |
List<org.openqa.selenium.WebElement> |
getElement()
gets the list of elements, then selects the first visible element from the
list in situation where the first elements are not visible, out of view
|
org.openqa.selenium.WebElement |
getElement(int index)
gets elements based on index location
|
org.openqa.selenium.By |
getElementCssSelector() |
org.openqa.selenium.By |
getElementCssSelector(int index) |
String |
getElementName() |
String |
getElementName(int index) |
List<org.openqa.selenium.WebElement> |
getElements() |
org.openqa.selenium.WebElement |
getFirstVisibleElement(List<org.openqa.selenium.WebElement> elements)
gets the first visible element filters hidden elements
|
org.openqa.selenium.Point |
getLocation() |
org.openqa.selenium.Point |
getLocation(int index) |
void |
getParentElement()
gets parent elements and stores in parentElements list
|
org.openqa.selenium.Rectangle |
getRect() |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> arg0) |
org.openqa.selenium.Dimension |
getSize() |
org.openqa.selenium.Dimension |
getSize(int index) |
String |
getTagName() |
String |
getTagName(int index) |
String |
getText() |
String |
getText(int index) |
List<String> |
getTextList() |
boolean |
isDisplayed() |
boolean |
isDisplayed(int index) |
boolean |
isElementExist(int index)
returns true if element is displayed sets timeout to minimum to get the value
quickly
|
boolean |
isEmpty() |
boolean |
isEnabled() |
boolean |
isEnabled(int index) |
boolean |
isExist(int... index)
returns if element exists
|
boolean |
isListExist()
returns if any element in a list is displayed
|
boolean |
isSelected() |
void |
mobileScroll(int index) |
void |
moveMouse() |
void |
moveMouse(int index) |
void |
scrollTo_mobile(int index) |
void |
scrollToView_Web(int index)
scroll to element on web
|
void |
scrollToView() |
void |
scrollToView(int index) |
void |
sendKeyByAction(int index,
CharSequence[] keysToSend) |
void |
sendKeyByJs(int index,
CharSequence[] keysToSend) |
void |
sendKeys(CharSequence... keysToSend) |
void |
sendKeys(int index,
CharSequence... keysToSend) |
void |
sendKeysByAction(int index,
CharSequence... keysToSend) |
void |
setAttribute(String attribute,
int index,
String value) |
void |
setAttribute(String attribute,
String value) |
void |
setValue(int index,
CharSequence... keysToSend) |
void |
submit() |
void |
submit(int index) |
public Element.LocatorType locatorType
public ImpEnhancedWebElement(EnhancedBy parent, int parentIndex, org.openqa.selenium.WebDriver webDriver, EnhancedBy element)
public EnhancedWebElement findElement(EnhancedBy parentElement, int parentIndex, EnhancedBy element)
findElement in interface EnhancedWebElementpublic void clear()
clear in interface org.openqa.selenium.WebElementpublic void clear(int index)
clear in interface EnhancedWebElementpublic String getCssValue(String arg0)
getCssValue in interface org.openqa.selenium.WebElementpublic String getCssValue(String arg0, int index)
getCssValue in interface EnhancedWebElementpublic org.openqa.selenium.Point getLocation()
getLocation in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.Point getLocation(int index)
getLocation in interface EnhancedWebElementpublic org.openqa.selenium.Dimension getSize()
getSize in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.Dimension getSize(int index)
public int count()
count in interface EnhancedWebElementpublic boolean isEmpty()
isEmpty in interface EnhancedWebElementpublic String getTagName()
getTagName in interface org.openqa.selenium.WebElementpublic String getTagName(int index)
public boolean isDisplayed()
isDisplayed in interface org.openqa.selenium.WebElementpublic boolean isDisplayed(int index)
isDisplayed in interface EnhancedWebElementpublic boolean isEnabled()
isEnabled in interface org.openqa.selenium.WebElementpublic boolean isEnabled(int index)
isEnabled in interface EnhancedWebElementpublic void submit()
submit in interface org.openqa.selenium.WebElementpublic void submit(int index)
public void click()
click in interface EnhancedWebElementclick in interface org.openqa.selenium.WebElementpublic void click(int index)
click in interface EnhancedWebElementpublic void scrollToView()
scrollToView in interface EnhancedWebElementpublic void scrollToView(int index)
scrollToView in interface EnhancedWebElementpublic void mobileScroll(int index)
element - public void scrollTo_mobile(int index)
public void scrollToView_Web(int index)
scrollToView_Web in interface EnhancedWebElementpublic boolean isExist(int... index)
isExist in interface EnhancedWebElementpublic boolean isListExist()
public boolean isElementExist(int index)
public void moveMouse()
moveMouse in interface EnhancedWebElementpublic void moveMouse(int index)
moveMouse in interface EnhancedWebElementpublic org.openqa.selenium.By getBy()
getBy in interface EnhancedWebElementpublic String getCssSelectorValue()
public void setValue(int index,
CharSequence... keysToSend)
setValue in interface EnhancedWebElementpublic void sendKeys(CharSequence... keysToSend)
sendKeys in interface EnhancedWebElementsendKeys in interface org.openqa.selenium.WebElementpublic void sendKeys(int index,
CharSequence... keysToSend)
sendKeys in interface EnhancedWebElementpublic void sendKeysByAction(int index,
CharSequence... keysToSend)
sendKeysByAction in interface EnhancedWebElementpublic void sendKeyByJs(int index,
CharSequence[] keysToSend)
sendKeyByJs in interface EnhancedWebElementpublic void sendKeyByAction(int index,
CharSequence[] keysToSend)
public String getAttribute(String name)
getAttribute in interface EnhancedWebElementgetAttribute in interface org.openqa.selenium.WebElementpublic String getAttribute(String name, int index)
getAttribute in interface EnhancedWebElementpublic void setAttribute(String attribute, String value)
setAttribute in interface EnhancedWebElementpublic void setAttribute(String attribute, int index, String value)
setAttribute in interface EnhancedWebElementpublic org.openqa.selenium.WebElement get(int index)
get in interface EnhancedWebElementpublic String getText()
getText in interface EnhancedWebElementgetText in interface org.openqa.selenium.WebElementpublic String getText(int index)
getText in interface EnhancedWebElementpublic List<String> getTextList()
getTextList in interface EnhancedWebElementpublic String getElementName()
getElementName in interface EnhancedWebElementpublic org.openqa.selenium.WebElement getElement(int index)
index - public void getParentElement()
public List<org.openqa.selenium.WebElement> getElement()
public List<org.openqa.selenium.WebElement> getElements()
getElements in interface EnhancedWebElementpublic org.openqa.selenium.WebElement getFirstVisibleElement(List<org.openqa.selenium.WebElement> elements)
elements - public boolean isSelected()
isSelected in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.By getElementCssSelector()
getElementCssSelector in interface EnhancedWebElementpublic org.openqa.selenium.Rectangle getRect()
getRect in interface org.openqa.selenium.WebElementpublic <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> arg0)
throws org.openqa.selenium.WebDriverException
getScreenshotAs in interface org.openqa.selenium.TakesScreenshotorg.openqa.selenium.WebDriverExceptionpublic List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements in interface org.openqa.selenium.SearchContextfindElements in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.By getElementCssSelector(int index)
getElementCssSelector in interface EnhancedWebElementpublic String getAttribute(int index, String name)
getAttribute in interface EnhancedWebElementpublic String getElementName(int index)
getElementName in interface EnhancedWebElementpublic org.openqa.selenium.WebElement findElement(org.openqa.selenium.By arg0)
findElement in interface org.openqa.selenium.SearchContextfindElement in interface org.openqa.selenium.WebElementCopyright © 2022. All rights reserved.