Search code examples
selenium-webdrivervaadin7cucumber-jvm

Can we Test a Vaadin application with Selenium and cucumber?


i have to Test a Vaadin application with cucumber and Selenium web driver(using Java script Executor).is it a good approach for vaadin application Testing?


Solution

  • Yes, You can use Selenium and cucumber but you need to manage your framework to handle multiple windows and using Event firing and event listener classes.

    My understanding of Vaadin application in which a UI is a viewport running in a web page. A web page can actually have multiple such UIs within it. Such situation is typical especially with portlets in a portal --So your framework or test should handle multiple windows. -- Need to handle Vaadin Sessions. Vaadin follows an event-driven programming paradigm, in which events, and listeners that handle the events, are the basis of handling user interaction in an application

    You need to have good knowledge of Selenium to automate Vaadin