vaadin / testbench

Vaadin TestBench is a tool for automated user interface testing of Vaadin applications.
https://vaadin.com/testbench
Other
20 stars 22 forks source link

Add support for EventFiringWebDrivers #809

Open vaadin-bot opened 7 years ago

vaadin-bot commented 7 years ago

Originally by @Ansku


EventFiringWebDriver and TestBenchDriverProxy both wrap the underlying driver and override the functionality. Unfortunately they don't do it in a particularly compatible manner.

Attached a starting point for integrating the behaviours. Has only been tested against the test generated by Eclipse Vaadin plug-in legacy project yet.

Creating the driver: setDriver(new PhantomJSDriver());

Registering a WebDriverEventListener: getDriver().register(eventListener);


Imported from https://dev.vaadin.com/ issue #20360

vaadin-bot commented 7 years ago

Originally by @Ansku


Attachment added: EventFiringTestBenchDriver.java (2.6 KiB)

vaadin-bot commented 7 years ago

Originally by @Ansku


Attachment added: EventFiringTestBenchTestCase.java (0.9 KiB)

vaadin-bot commented 7 years ago

Originally by @Ansku


Proposed classes still don't fix the behaviour when the search happens via ByVaadin.

vaadin-bot commented 7 years ago

Originally by @Ansku


Updated workaround in https://vaadin.com/pro/support#1451 (only accessible to Vaadin staff, if anyone else is interested let me know). It was rather harder to get this working with ByVaadin, so the solution is version-specific and I didn't add it here. Might give ideas for an actual patch, though.