public class StaticListItemsEditor extends BaseElement
Constructor and Description |
---|
StaticListItemsEditor(org.openqa.selenium.WebElement container)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String value,
String label)
Adds a new item with the specified value and label.
|
org.openqa.selenium.WebElement |
getItem(String valueOrLabel) |
org.openqa.selenium.WebElement |
getLabelInput() |
org.openqa.selenium.WebElement |
getValueInput() |
void |
moveBefore(String valueToMove,
String beforeValue)
Reorders list items.
|
void |
remove(String value)
Removes the item with the specified value.
|
void |
setLabel(String value,
String newLabel)
Changes item label.
|
int |
size() |
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
public StaticListItemsEditor(org.openqa.selenium.WebElement container)
container
- the element that wraps the editorpublic void remove(String value)
value
- the value of the item to be removedpublic void add(String value, String label)
value
- item valuelabel
- item labelpublic org.openqa.selenium.WebElement getValueInput()
public org.openqa.selenium.WebElement getLabelInput()
public void setLabel(String value, String newLabel)
value
- item valuenewLabel
- the new item labelpublic void moveBefore(String valueToMove, String beforeValue)
valueToMove
- the value of the item to be movedbeforeValue
- the value of the reference itempublic org.openqa.selenium.WebElement getItem(String valueOrLabel)
valueOrLabel
- the value of the label of a list itempublic int size()
Copyright © 2004–2021 XWiki. All rights reserved.