Interface Selector

  • All Known Implementing Classes:
    Session

    public interface Selector
    • Method Detail

      • matches

        default boolean matches​(String selector)
        This method returns true if the element would be selected by the specified selector string; otherwise, returns false.
        Parameters:
        selector - css or xpath selector
        args - format string
        Returns:
        true if the element selected by the specified selector
      • matches

        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.
        Parameters:
        selector - css or xpath selector
        args - format string
        Returns:
        true if the element selected by the specified selector
      • matches

        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.
        Parameters:
        selector - css or xpath selector
        args - format string
        Returns:
        true if the element selected by the specified selector
      • getProperty

        default Object getProperty​(String selector,
                                   String propertyName)
        Gets the property value of the matched element
        Parameters:
        selector - css or xpath selector
        propertyName - property name
        Returns:
        property value
      • getProperty

        default Object getProperty​(String selector,
                                   String propertyName,
                                   Object... args)
        Gets the property value of the matched element
        Parameters:
        selector - css or xpath selector
        propertyName - property name
        args - format string
        Returns:
        property value
      • setProperty

        default void setProperty​(String selector,
                                 String propetyName,
                                 Object value)
        Sets the property value of the matched element
        Parameters:
        selector - css or xpath selector
        propertyName - property name
        value - property value
      • setProperty

        default void setProperty​(String selector,
                                 String propertyName,
                                 Object value,
                                 Object... args)
        Sets the property value of the matched element
        Parameters:
        selector - css or xpath selector
        propertyName - property name
        value - property value
        args - format string
      • getPropertyByObjectId

        default Object getPropertyByObjectId​(String objectId,
                                             String name)
        Gets the property value of the matched element
        Parameters:
        selector - css or xpath selector
        propertyName - property name
        Returns:
        property value
      • getObjectId

        default String getObjectId​(String selector)
      • releaseObject

        default Session releaseObject​(String objectId)