public class LspsComboBox extends InputComponent
driver, seleniumElement| Constructor and Description |
|---|
LspsComboBox(WebElement element,
WebDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNewItem(java.lang.String text)
Adds new item into the combo box.
|
protected void |
clear() |
java.util.List<java.lang.String> |
getFirstPopupPage(java.lang.String filter)
Returns list of items on the first popup page
|
WebElement |
getInputField() |
java.lang.String |
getPlaceholder()
Return value of placeholder attribute.
|
java.util.List<WebElement> |
getPopupSuggestionElements()
Gets the elements of all suggestions on the current page.
|
java.lang.String |
getText()
Get the visible (i.e.
|
java.lang.String |
getValue()
Return value of the combo box element.
|
boolean |
isTextInputAllowed()
Checks if text input is allowed for the combo box.
|
void |
selectBySubstring(java.lang.String text)
Input the given text to ComboBox and click on the first suggestion that contains the text.
|
protected void |
selectByTextFromPopup(java.lang.String text) |
protected boolean |
selectSuggestion(java.lang.String text) |
void |
setValue(java.lang.String text)
Input the given text to ComboBox and click on the suggestion if it matches exactly.
|
java.lang.String |
toString() |
checkNotReadOnly, clearElementClientSide, getLabel, isReadOnly, isRequiredas, click, click, doubleClick, extractedSeleniumIfTestBench, extractedSeleniumIfTestBench, focus, getAttribute, getCaption, getClassNames, getErrorMessage, getHint, getId, getModelingId, hasClassName, isEnabled, isValid, isVisible, rightClick, scrollIntoView, sleep, toHTML, toInnerHTML, webElementsByLspsId$, actions, clickButton, contains, createIdLocator, findAllByAttributeValue, findAllByClassname, findAllByFormId, findAllById, findAllByIdPrefix, findAllByLspsId, findAllByTextContent, findAllByXpath, findByAttributeValue, findByClassname, findByFormId, findById, findByIdPrefix, findByLspsId, findByTextContent, findByXpath, findCaptionByTextContent, findElement, findElements, findNthByTag, getDriver, getLspsCommandExecutor, waitForVaadin, webElementsByExactTextContent, webElementsByFormId, webElementsById, webElementsByIdPrefix, webElementsByLspsFormId, webElementsByTextContent, webElementsByXpathpublic void setValue(java.lang.String text)
getValue() is
always changed to given value, however invalid values (values not present in the suggestion list) are rejected by the server.text - the text to set, not null.protected void selectByTextFromPopup(java.lang.String text)
protected boolean selectSuggestion(java.lang.String text)
public void addNewItem(java.lang.String text)
text - new item textpublic java.lang.String getText()
UIComponentgetText in class UIComponentpublic void selectBySubstring(java.lang.String text)
text - public java.util.List<java.lang.String> getFirstPopupPage(java.lang.String filter)
filter - public java.lang.String getValue()
public java.lang.String getPlaceholder()
public java.lang.String toString()
toString in class InputComponentpublic WebElement getInputField()
public boolean isTextInputAllowed()
true if text input is allowed, false
otherwiseprotected void clear()
public java.util.List<WebElement> getPopupSuggestionElements()
Opens the popup if not already open.
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.