com.vaadin.testbench.

Interface HasPropertySettersGetters

    • Method Detail

      • setProperty

        void setProperty(String name,
                         String value)

        Sets a JavaScript property of the given element.

        Parameters:

        name - the name of the property

        value - 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 property

        value - 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 property

        value - 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 property

        value - 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 type property1.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 type property1.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 type property1.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 type property1.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 type property1.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 type property1.property2.property3

      • getProperty

        Object getProperty(String... propertyNames)

        Gets a JavaScript property of the given element.

        The return value needs to be cast manually to the correct type.

        Parameters:

        propertyNames - the name of on or more properties, forming a property chain of type property1.property2.property3