public interface SelenideElement
extends org.openqa.selenium.WebElement
| Modifier and Type | Method and Description |
|---|---|
ShouldableWebElement |
append(java.lang.String text)
Append given test to the text field
Implementation details:
This is the same as
|
boolean |
exists() |
ShouldableWebElement |
find(org.openqa.selenium.By selector) |
ShouldableWebElement |
find(org.openqa.selenium.By selector,
int index) |
ShouldableWebElement |
find(java.lang.String cssSelector) |
ShouldableWebElement |
find(java.lang.String cssSelector,
int index) |
void |
followLink()
Actual for <a href> elements.
|
SelenideElement |
getSelectedOption()
Find selected option from this select field
|
java.lang.String |
getSelectedText()
Get text of selected option in select field
|
java.lang.String |
getSelectedValue()
Get value of selected option in select field
|
boolean |
isDisplayed()
Check if this element exists and visible.
|
ShouldableWebElement |
pressEnter()
Press ENTER.
|
void |
selectOption(java.lang.String text) |
void |
selectOptionByValue(java.lang.String value) |
ShouldableWebElement |
setValue(java.lang.String text)
Clear the text field and enter given text.
|
ShouldableWebElement |
should(Condition... condition) |
ShouldableWebElement |
shouldBe(Condition... condition) |
ShouldableWebElement |
shouldHave(Condition... condition) |
ShouldableWebElement |
shouldNot(Condition... condition) |
ShouldableWebElement |
shouldNotBe(Condition... condition) |
ShouldableWebElement |
shouldNotHave(Condition... condition) |
java.lang.String |
text() |
java.lang.String |
toString()
Displays WebElement in human-readable format
|
org.openqa.selenium.WebElement |
toWebElement() |
java.io.File |
uploadFromClasspath(java.lang.String fileName) |
java.lang.String |
val()
Get the "value" attribute of the element
|
ShouldableWebElement |
val(java.lang.String text)
Same as #type(java.lang.String)
|
ShouldableWebElement |
waitUntil(Condition condition,
long timeoutMilliseconds) |
ShouldableWebElement |
waitWhile(Condition condition,
long timeoutMilliseconds) |
void followLink()
ShouldableWebElement setValue(java.lang.String text)
1. WebElement.clear() 2. WebElement.sendKeys(text)
text - Any text to enter into the text field.ShouldableWebElement val(java.lang.String text)
ShouldableWebElement append(java.lang.String text)
WebElement.sendKeys(text)
text - Any text to append into the text field.ShouldableWebElement pressEnter()
$("query").val("Aikido techniques").pressEnter();
Implementation details:
This is the same as WebElement.sendKeys(Keys.ENTER)
java.lang.String text()
java.lang.String val()
boolean exists()
boolean isDisplayed()
isDisplayed in interface org.openqa.selenium.WebElementShouldableWebElement should(Condition... condition)
ShouldableWebElement shouldHave(Condition... condition)
ShouldableWebElement shouldBe(Condition... condition)
ShouldableWebElement shouldNot(Condition... condition)
ShouldableWebElement shouldNotHave(Condition... condition)
ShouldableWebElement shouldNotBe(Condition... condition)
ShouldableWebElement waitUntil(Condition condition, long timeoutMilliseconds)
ShouldableWebElement waitWhile(Condition condition, long timeoutMilliseconds)
java.lang.String toString()
toString in class java.lang.ObjectShouldableWebElement find(java.lang.String cssSelector)
ShouldableWebElement find(java.lang.String cssSelector, int index)
ShouldableWebElement find(org.openqa.selenium.By selector)
ShouldableWebElement find(org.openqa.selenium.By selector, int index)
java.io.File uploadFromClasspath(java.lang.String fileName)
void selectOption(java.lang.String text)
void selectOptionByValue(java.lang.String value)
SelenideElement getSelectedOption()
org.openqa.selenium.NoSuchElementException - if no options are selectedjava.lang.String getSelectedValue()
java.lang.String getSelectedText()
org.openqa.selenium.WebElement toWebElement()