testbench-support - Vaadin Add-on Directory
Support library that enables the use of Selenium's PageFactory and Page Objects Pattern with Vaadin TestBench 4The new component based Element API for TestBench 4 is great and alleviates the need to write homemade helper functions or library.
However, since Selenium's PageFactory works using dynamic proxies, you'll get a ClassCastException if you replace the WebElement attributes in your Page Objects by a subclasses of TestBenchElement.
This library makes it possible to benefit from the new TestBench Element API while using the Page Objects Pattern supported by Selenium's PageFactory.
Source CodeUsage example