clickAndWait |
//a[contains(@href, 'comicpress-manager') and contains(text(), 'Upload')] |
|
type |
upload-0 |
/home/john/Desktop/comicpress/selenium/1990-01-01-sample-comic.jpeg |
getEval |
n = new Date(); storedVars['upload_date'] = n.getFullYear() + "-" + (n.getMonth() + 1) + "-" + n.getDate(); |
|
type |
override-date |
${upload_date} |
clickAndWait |
top-submit |
|
clickAndWait |
link=Edit post |
|
storeLocation |
post_location |
|
assertElementPresent |
preview-comic |
|
assertTextPresent |
sample-comic.jpeg |
|
clickAndWait |
link=ComicPress Config |
|
clickAndWait |
//input[@value='Update Config'] |
|
open |
${post_location} |
|
assertElementPresent |
preview-comic |
|
assertTextPresent |
sample-comic.jpeg |
|
click |
link=Move to Trash |
|
waitForPageToLoad |
30000 |
|
assertTextPresent |
Post moved to the trash. |
|