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

Support the clear() method on TestBenchElement. #1800

Open jorgheymans opened 4 weeks ago

jorgheymans commented 4 weeks ago

Also reported here https://vaadin.com/forum/t/clear-value-for-vaadin-text-field/160779/2

It would be nice to be able to do $(TestBenchElement.class).id("abc").clear() as the api allows to. Currently we're getting org.openqa.selenium.InvalidElementStateException: invalid element state for this.

The workaround works though: sendKeys(Keys.chord(Keys.CONTROL, "a"), Keys.DELETE);