public abstract class TypifiedElement extends Object implements org.openqa.selenium.WrapsElement, Named, org.openqa.selenium.WebElement
public class Link extends TypifiedElement {
public Link(WebElement wrappedElement) {
super(wrappedElement);
}
public String getReference() {
return getWrappedElement().getAttribute("href");
}
}
| Modifier | Constructor and Description |
|---|---|
protected |
TypifiedElement(org.openqa.selenium.WebElement wrappedElement)
Specifies wrapped
WebElement. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
click() |
boolean |
exists()
Determines whether or not this element exists on page.
|
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
String |
getAttribute(String name) |
String |
getCssValue(String propertyName) |
org.openqa.selenium.Point |
getLocation() |
String |
getName()
Returns name of the entity.
|
org.openqa.selenium.Rectangle |
getRect() |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> target) |
org.openqa.selenium.Dimension |
getSize() |
String |
getTagName() |
String |
getText() |
org.openqa.selenium.WebElement |
getWrappedElement() |
boolean |
isDisplayed() |
boolean |
isEnabled() |
boolean |
isSelected() |
void |
sendKeys(CharSequence... keysToSend) |
void |
setName(String name)
Sets a name of an element.
|
void |
submit() |
String |
toString()
Returns specified name, actually the same as
getName() method. |
protected TypifiedElement(org.openqa.selenium.WebElement wrappedElement)
WebElement.wrappedElement - WebElement to wrap.public String getName()
Namedpublic void setName(String name)
name - Name to set.public boolean exists()
public org.openqa.selenium.WebElement getWrappedElement()
getWrappedElement in interface org.openqa.selenium.WrapsElementpublic void click()
click in interface org.openqa.selenium.WebElementpublic void submit()
submit in interface org.openqa.selenium.WebElementpublic void sendKeys(CharSequence... keysToSend)
sendKeys in interface org.openqa.selenium.WebElementpublic void clear()
clear in interface org.openqa.selenium.WebElementpublic String getTagName()
getTagName in interface org.openqa.selenium.WebElementpublic String getAttribute(String name)
getAttribute in interface org.openqa.selenium.WebElementpublic boolean isSelected()
isSelected in interface org.openqa.selenium.WebElementpublic boolean isEnabled()
isEnabled in interface org.openqa.selenium.WebElementpublic String getText()
getText in interface org.openqa.selenium.WebElementpublic 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.WebElement findElement(org.openqa.selenium.By by)
findElement in interface org.openqa.selenium.SearchContextfindElement in interface org.openqa.selenium.WebElementpublic boolean isDisplayed()
isDisplayed in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.Point getLocation()
getLocation in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.Dimension getSize()
getSize in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.Rectangle getRect()
getRect in interface org.openqa.selenium.WebElementpublic String getCssValue(String propertyName)
getCssValue in interface org.openqa.selenium.WebElementpublic <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> target)
getScreenshotAs in interface org.openqa.selenium.TakesScreenshotCopyright © 2023 Yandex. All rights reserved.