com.vaadin.testbench.
Interface HasPropertySettersGetters
-
All Superinterfaces:
org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement
All Known Subinterfaces:
All Known Implementing Classes:
AnchorElement, AppLayoutElement, AppLayoutMenuElement, BoardElement, ButtonElement, ChartElement, CheckboxElement, ComboBoxElement, ConfirmDialogElement, CookieConsentElement, CrudElement, DatePickerElement, DescriptionListElement, DialogElement, DivElement, EmphasisElement, FormLayoutElement, GridElement, GridTHTDElement, GridTRElement, H1Element, H2Element, H3Element, H4Element, H5Element, H6Element, HorizontalLayoutElement, HrElement, ImageElement, InputTextElement, IronListElement, LabelElement, ListItemElement, MenuItemElement, NativeButtonElement, NotificationElement, OrderedListElement, ParagraphElement, PasswordFieldElement, ProgressBarElement, RadioButtonElement, RadioButtonGroupElement, RowElement, SelectElement, SpanElement, SplitLayoutElement, TabElement, TabsElement, TestBenchElement, TextAreaElement, TextFieldElement, UnorderedListElement, UploadElement, VerticalLayoutElement
public interface HasPropertySettersGetters extends org.openqa.selenium.WebElement
-
-
Method Summary
All Methods Modifier and Type Method and Description Object
getProperty(String... propertyNames)
Gets a JavaScript property of the given element.
Boolean
getPropertyBoolean(String... propertyNames)
Gets a JavaScript property of the given element as a boolean.
Double
getPropertyDouble(String... propertyNames)
Gets a JavaScript property of the given element as a double.
TestBenchElement
getPropertyElement(String... propertyNames)
Gets a JavaScript property of the given element as a DOM element.
List<TestBenchElement>
getPropertyElements(String... propertyNames)
Gets a JavaScript property of the given element as a list of DOM elements.
Integer
getPropertyInteger(String... propertyNames)
Gets a JavaScript property of the given element as an integer.
String
getPropertyString(String... propertyNames)
Gets a JavaScript property of the given element as a string.
void
setProperty(String name, Boolean value)
Sets a JavaScript property of the given element.
void
setProperty(String name, Double value)
Sets a JavaScript property of the given element.
void
setProperty(String name, Integer value)
Sets a JavaScript property of the given element.
void
setProperty(String name, String value)
Sets a JavaScript property of the given element.
-
-
-
Method Detail
-
setProperty
void setProperty(String name, String value)
Sets a JavaScript property of the given element.
Parameters:
name
- the name of the propertyvalue
- the value to set
-
setProperty
void setProperty(String name, Boolean value)
Sets a JavaScript property of the given element.
Parameters:
name
- the name of the propertyvalue
- the value to set
-
setProperty
void setProperty(String name, Double value)
Sets a JavaScript property of the given element.
Parameters:
name
- the name of the propertyvalue
- the value to set
-
setProperty
void setProperty(String name, Integer value)
Sets a JavaScript property of the given element.
Parameters:
name
- the name of the propertyvalue
- the value to set
-
getPropertyString
String getPropertyString(String... propertyNames)
Gets a JavaScript property of the given element as a string.
Parameters:
propertyNames
- the name of on or more properties, forming a property chain of typeproperty1.property2.property3
-
getPropertyBoolean
Boolean getPropertyBoolean(String... propertyNames)
Gets a JavaScript property of the given element as a boolean.
Parameters:
propertyNames
- the name of on or more properties, forming a property chain of typeproperty1.property2.property3
-
getPropertyElement
TestBenchElement getPropertyElement(String... propertyNames)
Gets a JavaScript property of the given element as a DOM element.
Parameters:
propertyNames
- the name of on or more properties, forming a property chain of typeproperty1.property2.property3
-
getPropertyElements
List<TestBenchElement> getPropertyElements(String... propertyNames)
Gets a JavaScript property of the given element as a list of DOM elements.
Parameters:
propertyNames
- the name of on or more properties, forming a property chain of typeproperty1.property2.property3
-
getPropertyDouble
Double getPropertyDouble(String... propertyNames)
Gets a JavaScript property of the given element as a double.
Parameters:
propertyNames
- the name of on or more properties, forming a property chain of typeproperty1.property2.property3
-
getPropertyInteger
Integer getPropertyInteger(String... propertyNames)
Gets a JavaScript property of the given element as an integer.
Parameters:
propertyNames
- the name of on or more properties, forming a property chain of typeproperty1.property2.property3
-
-