Open llischka opened 10 years ago
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
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