public class LspsComboBox extends InputComponent
driver, seleniumElement| Constructor and Description |
|---|
LspsComboBox(WebElement element,
WebDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNewItem(String text)
Adds new item into the combo box.
|
protected void |
clear() |
List<String> |
getFirstPopupPage(String filter)
Returns list of items on the first popup page
|
WebElement |
getInputField() |
String |
getPlaceholder()
Return value of placeholder attribute.
|
List<WebElement> |
getPopupSuggestionElements()
Gets the elements of all suggestions on the current page.
|
String |
getText()
Get the visible (i.e.
|
String |
getValue()
Return value of the combo box element.
|
boolean |
isTextInputAllowed()
Checks if text input is allowed for the combo box.
|
void |
selectBySubstring(String text)
Input the given text to ComboBox and click on the first suggestion that contains the text.
|
protected void |
selectByTextFromPopup(String text) |
protected boolean |
selectSuggestion(String text) |
void |
setValue(String text)
Input the given text to ComboBox and click on the suggestion if it matches exactly.
|
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(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(String text)
protected boolean selectSuggestion(String text)
public void addNewItem(String text)
text - new item textpublic String getText()
UIComponentgetText in class UIComponentpublic void selectBySubstring(String text)
text - public List<String> getFirstPopupPage(String filter)
filter - public String getValue()
public String getPlaceholder()
public String toString()
toString in class InputComponentpublic WebElement getInputField()
public boolean isTextInputAllowed()
true if text input is allowed, false
otherwiseprotected void clear()
public List<WebElement> getPopupSuggestionElements()
Opens the popup if not already open.
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.