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

TestBench 4.2.0 element.click() fails on EdgeDriver #914

Open petrixh opened 7 years ago

petrixh commented 7 years ago

While working with a customer, we've found that the element.click() is very unreliable (probably not working at all) on EdgeDriver. If you use the alternate clicking method click(x, y) things start working, so it looks like the default click method is not hitting the component.

As a workaround, one can use click(x,y) for simple cases, but this also affects things like OptionGroupElement.selectByText() which internally uses WebElement.click().

Env: Own tests: Win 10 + Edge 38.14393.0.0/EdgeHTML 14.14393 + Driver: 3.14393/Release: 14393 Customer tested: Win 10 + Edge 40.15063.0.0/EdgeHTML 15.15063 Vaadin: 7.7.9 TestBench: 4.2.0

Possibly related to: https://github.com/vaadin/testbench/issues/578 https://github.com/vaadin/testbench/issues/903

petrixh commented 7 years ago

Adding a simple example project with a workaround in case some one needs it. Can be transformed back to a simple test case for the bug by removing the com.vaadin.testbench-package and the TestBenchElement.java class.

EdgeDriverWorkaroundIssue914.zip