Vaadin 10 version
Pre-release
Pre-release
Vaadin TestBench is a tool for creating and running browser based integration tests for your Vaadin application. TestBench simulates a user of your application, performs the tasks specified using Java code and verifies that the expected actions take place in the application.
Changes since beta10
- #1075 Upgrade
license-checker
New Features since Version 5
Vaadin 10 support
ElementQuery
has been rewritten to work with Web Components and the DOM
$(ButtonElement.class)
searches for the tag defined inButtonElement
using@Element("some-tag")
and or using the attribute restrictions defined using@Attribute
id("someId")
restricts the search to elements with the given idattribute(name,value)
restricts the search to elements with the given attribute valueattributeContains(name,value)
restricts the search to elements where the given attribute contains the given valuefirst()
,last()
,all()
,get(i)
fetches the given matching elementonPage()
resets the search context to the root of the page- Supports component shadow roots and searches inside them
- Other methods previously available in
ElementQuery
were removed
New helpers
- Helpers for element integrations:
getProperty*
,hasAttribute
,callFunction
and more - Support for firing custom events
- Helper for finding the host IP
Uses Selenium 3.11.0
Incompatible changes
- Support for IE8, IE9, IE10 and PhantomJS was removed. These browsers are not supported by Vaadin 10.
- Support for Vaadin 8 has been removed. Use TestBench 5 for testing Vaadin 8 applications.
Bugfixes
- Fixed exception wrapping in
executeScript