Buttons and Selenium

Hello!

In my application I have several buttons ( com.vaadin.ui.Button ). When I click on any of them in Selenium IDE, nothing happens - no action is added to the test script.

Questions:

  1. Why does it happen?

  2. What can do in order to press these buttions in a Selenium test?

Thanks in advance

Dmitri

Hello again!

One solution is to use NativeButton instead of Button.

Best regards

Dmitri

It might be that an onClick event is not enough for the VButton. Instead, try using both onMouseDown+onMouseUp sequentially.

Have you taken a look of Vaadin TestBench - a selenium based testing product specially made for Vaadin?


http://vaadin.com/add-ons/testbench

Yes, I’m evaluating it.

Best regards

Dmitri