Releases: vaadin/testbench
Vaadin 10 version
Documentation →
Demo Project →
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 beta3
ci-sauce
dependency was removed
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
Vaadin 10 version
Documentation →
Demo Project →
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 beta2
- Upgrade Selenium to 3.11.0
- Fix "cyclic object value" problems in browsers using polyfills
- Improved support for running tests on Saucelabs
- Added possibility to define browsers to test using an environment variable
TESTBENCH_GRID_BROWSERS
or a system propertycom.vaadin.testbench.Parameters.gridBrowsers
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
Vaadin 10 version
Documentation →
Demo Project →
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 beta1
- Fixed
TestBenchElement.isEnabled()
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.9.1
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
Vaadin 10 version
Documentation →
Demo Project →
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.
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.9.1
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
Selenium 3.9.1
- Upgraded to Selenium 3.9.1 (latest)
- Fixed exception wrapping in
executeScript
@Attribute for defining additional constraints on element classes
Add @Attribute for defining additional constraints on element classes… … (#1000) Also add support finding elements based on attribute tokens like a single class
Bugfix release
Fix issue when attribute values contain special characters
Support for finding the IP address of the host
6.0.0.alpha12 Fix typos
Bugfixes and support for firing custom events
Fix ElementQuery for built-in elements or elements without a shadow r… …oot (#990) Fixes #989
Support finding any element, optionally with a given tag name
$(TestBenchElement.class)
now matches any element
$("some-tag-name")
can be used to find elements of type <some-tag-name>
when no element class is available