| setTimeout |
45000 |
|
| storeGlobal |
javascript{Math.floor(Math.random()*11000)} |
randomSuffix |
| open |
index.php/missions/default |
|
| waitForPageToLoad |
|
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| clickAndWait |
css=a.icon-create |
|
| waitForPageToLoad |
|
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| type |
id=Mission_reward |
A litle candy |
| click |
css=button.ui-datepicker-trigger |
|
| click |
css=a.ui-state-default.ui-state-hover |
|
| click |
xpath=(//button[@type='button'])[4] |
|
| clickAndWait |
name=save |
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| assertTextPresent |
Description cannot be blank. |
|
| type |
id=Mission_description |
New mission ${randomSuffix} |
| click |
css=button.ui-datepicker-trigger |
|
| click |
link=27 |
|
| click |
xpath=(//button[@type='button'])[4] |
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| clickAndWait |
//div[@class='float-bar']/div/div/a/span[3] |
|
| waitForPageToLoad |
|
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| assertTextPresent |
Available |
|
| assertTextPresent |
New mission ${randomSuffix} |
|
| type |
id=Comment_description |
Start this one really quick or the candy goes away... |
| click |
css=span.z-label |
|
| waitForCondition |
selenium.browserbot.getCurrentWindow().jQuery.active == 0 |
30000 |
| waitForTextPresent |
Start this one really quick or the candy goes away... |
|
| assertTextPresent |
Delete |
|