public class SuggestInputElement extends BaseElement
Modifier and Type | Class and Description |
---|---|
class |
SuggestInputElement.SuggestionElement |
Constructor and Description |
---|
SuggestInputElement(org.openqa.selenium.WebElement originalInput) |
Modifier and Type | Method and Description |
---|---|
SuggestInputElement |
clear()
Removes the typed text.
|
SuggestInputElement |
clearSelectedSuggestions()
Removes all the selected elements.
|
SuggestInputElement |
click()
Clicks on the text input.
|
List<SuggestInputElement.SuggestionElement> |
getSelectedSuggestions() |
List<SuggestInputElement.SuggestionElement> |
getSuggestions() |
List<String> |
getValues() |
SuggestInputElement |
hideSuggestions()
Hides the suggestions panel.
|
SuggestInputElement |
selectByIndex(int index)
Selects an element by clicking on the suggestion with the given position.
|
SuggestInputElement |
selectByValue(String value)
Selects an element by clicking on the suggestion with the given value.
|
SuggestInputElement |
selectByVisibleText(String text)
Selects an element by clicking on the suggestion with the given label.
|
SuggestInputElement |
selectTypedText()
Selects and creates an element with the input text.
|
SuggestInputElement |
sendKeys(CharSequence... keysToSend)
Sends the given sequence of keys to the input.
|
SuggestInputElement |
waitForSuggestions()
Waits until the suggestions have been loaded.
|
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
public SuggestInputElement(org.openqa.selenium.WebElement originalInput)
public SuggestInputElement click()
public SuggestInputElement clear()
public SuggestInputElement clearSelectedSuggestions()
public SuggestInputElement sendKeys(CharSequence... keysToSend)
public SuggestInputElement waitForSuggestions()
public List<SuggestInputElement.SuggestionElement> getSuggestions()
public SuggestInputElement selectByIndex(int index)
public SuggestInputElement selectByValue(String value)
public SuggestInputElement selectByVisibleText(String text)
public SuggestInputElement selectTypedText()
public List<SuggestInputElement.SuggestionElement> getSelectedSuggestions()
public SuggestInputElement hideSuggestions()
Copyright © 2004–2021 XWiki. All rights reserved.