Skip to content

do-while-Implementation #8

Open
@llischka

Description

@llischka

What I need is a do-while loop. So that I could reduce the number of required commands in my scripts yet. Would you still implement this?

Here's what I would like to use: Currently with while:
| storeElementPresent | //div[contains(@Class, 'error')] | key_exists
| while | ${key_exists}==true |
| createRandomString | 6 | project_key
| type | id=key | ${project_key}
| clickAndWait | id=submit
| storeElementPresent | //div[contains(@Class, 'error')] | key_exists
| endWhile |

Desired and shorter with do-while:
| do | |
| createRandomString | 6 | project_key
| type | id=key | ${project_key}
| clickAndWait | id=submit |
| storeElementPresent | //div[contains(@Class, 'error')] | key_exists
| whileDo | ${key_exists}==true

Source: http://refactoror.wikia.com/wiki/Selblocks_Reference

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions