public class LspsMultiSelectList extends InputComponent
driver, seleniumElement
Constructor and Description |
---|
LspsMultiSelectList(WebElement element,
WebDriver driver) |
Modifier and Type | Method and Description |
---|---|
void |
addToSelection(String text)
Adds element text to the selection
|
void |
clear()
Clears the selection - makes all items deselected.
|
String[] |
getSelection()
Returns the current selection.
|
void |
removeFromSelection(String text)
Removes element text from the selection
|
void |
select(String... text)
Makes given items selected.
|
String |
toString() |
checkNotReadOnly, clearElementClientSide, getLabel, isReadOnly, isRequired
as, click, click, doubleClick, extractedSeleniumIfTestBench, extractedSeleniumIfTestBench, focus, getAttribute, getCaption, getClassNames, getErrorMessage, getHint, getId, getModelingId, getText, 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, webElementsByXpath
public LspsMultiSelectList(WebElement element, WebDriver driver)
public void select(String... text)
text
- a list of item texts which are to be selected. Not null, may be empty.org.openqa.selenium.NoSuchElementException
- if there is no item with given text.public void addToSelection(String text)
text
- public void removeFromSelection(String text)
text
- public String[] getSelection()
public void clear()
public String toString()
toString
in class InputComponent
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.