plone / plone.app.robotframework

Provides Robot Framework compatible resources and tools for writing functional Selenium tests (including acceptance tests) for Plone CMS and its add-ons.
https://docs.plone.org/external/plone.app.robotframework/docs/source/index.html
11 stars 17 forks source link

Add keywords for making sure an element is visible before clicking #134

Closed mauritsvanrees closed 2 years ago

mauritsvanrees commented 2 years ago

Several core Plone robot tests are currently unstable. We see that it often helps to make sure an element is visible in the viewport before trying to click on it. See for example these fixes. There in CMFPlone I add three keywords to help here, and avoid needing up to four lines to click an element. Basically we do this:

Wait Until Page Contains Element  ${element}
Set Focus To Element  ${element}
Wait Until Element Is Visible  ${element}
Click Element  ${element}

I added keywords for this in CMFPlone, but we should move them to plone.app.robotframework.