Skip to content

Support for Vaadin 10 and Web Components

Pre-release
Pre-release
Compare
Choose a tag to compare
@alvarezguille alvarezguille released this 02 Nov 09:12

ElementQuery has been rewritten to work with Web Components and the DOM

  • $(ButtonElement.class) searches for the tag defined in ButtonElement using @Element("some-tag")
  • id("someId") restricts the search to elements with the given id
  • attr(name,value) restricts the search to elements with the given attribute value
  • first(), last(), all(), get(i) fetches the given matching element
  • onPage() resets the search context to the root of the page
  • Other methods previously available in ElementQuery were removed

New helper methods added to TestBenchElement:

  • getPropertyString(name), getPropertyBoolean(name), getPropertyDouble(name) fetches the property from the element
  • setProperty(name,value) sets the property on the element
  • callFunction(name, parameters) calls the given function on the element using the given parameters

Support for IE8, IE9, IE10 and PhantomJS was removed. These browsers are not supported by Vaadin 10.

A HasElementQuery interface was added to make it easier to create helper interfaces using element queries.