Class MapElement.ConfigurationObjectReference
java.lang.Object
com.vaadin.flow.component.map.testbench.MapElement.ConfigurationObjectReference
- Direct Known Subclasses:
MapElement.ClusterFeatureReference,MapElement.FeatureCollectionReference,MapElement.FeatureReference,MapElement.FillReference,MapElement.GeometryReference,MapElement.IconReference,MapElement.LayerCollectionReference,MapElement.LayerReference,MapElement.MapReference,MapElement.SourceReference,MapElement.StrokeReference,MapElement.StyleReference,MapElement.TextReference,MapElement.ViewReference
- Enclosing class:
- MapElement
Abstract class for wrapping an in-browser OpenLayers configuration class
instance. The class holds a Javascript expression that defines the path
to the wrapped object, and provides methods for accessing properties of
the object (see
get(String, Object...) and related methods). All
properties are evaluated lazily using an MapElement.ExpressionExecutor,
which takes the path through the configuration hierarchy to that property
as Javascript expression and executes it through the Selenium API.-
Method Summary
Modifier and TypeMethodDescriptionbooleanexists()Extracts a value from the wrapped object by executing a Selenium Javascript call and returning the result.booleangetBoolean(String path, Object... args) Creates a path to a nested object as Javascript expression, based on the current path
-
Method Details
-
path
Creates a path to a nested object as Javascript expression, based on the current path- Parameters:
path- the nested pathargs- variable arguments to be interpolated into the path, works likeString.format(String, Object...)
-
get
Extracts a value from the wrapped object by executing a Selenium Javascript call and returning the result. The return type depends on how Selenium converts the Javascript values into Java types. See the more specific methods for returning values in specific types.- Parameters:
path- the nested path to the value to extractargs- variable arguments to be interpolated into the path, works likeString.format(String, Object...)
-
getBoolean
-
getString
-
getInt
-
getLong
-
getFloat
-
getDouble
-
getTypeName
-
exists
public boolean exists()
-