Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do-while-Implementation #8

Open
llischka opened this issue Sep 23, 2014 · 0 comments
Open

do-while-Implementation #8

llischka opened this issue Sep 23, 2014 · 0 comments

Comments

@llischka
Copy link

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

peter-lyons-kehl referenced this issue in SeLite/SelBlocksGlobalOld Jul 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants