Sessionpublic interface Selector
| Modifier and Type | Method | Description |
|---|---|---|
default Integer |
getNodeId(Integer context,
String selector,
Object... args) |
|
default Integer |
getNodeId(String selector) |
|
default String |
getObjectId(Integer contextId,
String selector,
Object... args) |
|
default String |
getObjectId(String selector) |
|
default String |
getObjectId(String selector,
Object... args) |
|
default List<String> |
getObjectIds(String selector) |
|
default List<String> |
getObjectIds(String selector,
Object... args) |
|
default String |
getObjectIdWithContext(Integer contextId,
String selector,
Object... args) |
|
default Object |
getProperty(String selector,
String propertyName) |
Gets the property value of the matched element
|
default Object |
getProperty(String selector,
String propertyName,
Object... args) |
Gets the property value of the matched element
|
default Object |
getPropertyByObjectId(String objectId,
String name) |
Gets the property value of the matched element
|
default PropertyDescriptor |
getPropertyDescriptor(String objectId,
String name) |
|
Session |
getThis() |
|
default boolean |
matches(Integer contextId,
String selector,
Object... args) |
This method returns
true if the element would be selected by
the specified selector string; otherwise, returns false. |
default boolean |
matches(String selector) |
This method returns
true if the element would be selected by the specified selector string;
otherwise, returns false. |
default boolean |
matches(String selector,
Object... args) |
This method returns
true if the element would be selected by the specified selector string;
otherwise, returns false. |
default Session |
releaseObject(String objectId) |
|
default void |
setProperty(String selector,
String propetyName,
Object value) |
Sets the property value of the matched element
|
default void |
setProperty(String selector,
String propertyName,
Object value,
Object... args) |
Sets the property value of the matched element
|
default boolean matches(String selector)
true if the element would be selected by the specified selector string;
otherwise, returns false.selector - css or xpath selectorargs - format stringtrue if the element selected by the specified selectordefault boolean matches(String selector, Object... args)
true if the element would be selected by the specified selector string;
otherwise, returns false.selector - css or xpath selectorargs - format stringtrue if the element selected by the specified selectordefault boolean matches(Integer contextId, String selector, Object... args)
true if the element would be selected by
the specified selector string; otherwise, returns false.selector - css or xpath selectorargs - format stringtrue if the element selected by the specified
selectordefault Object getProperty(String selector, String propertyName)
selector - css or xpath selectorpropertyName - property namedefault Object getProperty(String selector, String propertyName, Object... args)
selector - css or xpath selectorpropertyName - property nameargs - format stringdefault void setProperty(String selector, String propetyName, Object value)
selector - css or xpath selectorpropertyName - property namevalue - property valuedefault void setProperty(String selector, String propertyName, Object value, Object... args)
selector - css or xpath selectorpropertyName - property namevalue - property valueargs - format stringdefault PropertyDescriptor getPropertyDescriptor(String objectId, String name)
default Object getPropertyByObjectId(String objectId, String name)
selector - css or xpath selectorpropertyName - property namedefault String getObjectIdWithContext(Integer contextId, String selector, Object... args)
Session getThis()
Copyright © 2017–2018 WebFolder OÜ. All rights reserved.