Selenium gui tests for Liferay + Vaadin Selenium gui tests for Liferay + Vaadin selenium selenium

Selenium gui tests for Liferay + Vaadin


Some times DuplicateFileException occurs during uploading file via our portlet (but in document manager there are no files)

it would be very useful to see the full stacktrace

Some times Selenium can not find elements on page.

I see 2 possible reasons/solutions:

  1. If a portlet is using ajax to load the content then your test should wait until the content has been loaded, try:

    waitForElementPresent(locator)

  2. If you do not use Vaadin TestBench then make sure you set debugId for vaadin elements:

    setDebugID("aButton");

How do you test your portlets?

We used selenium and cucumber, see: https://projects.savoirfairelinux.com/projects/ctr-liferay/wiki/Portal_-_Testing