open |
restAPI/systemLog?token=dolog&level=INFO&message=-----Selenium upload |
|
retrieveTestFolderPath |
|
|
storeExpression |
javascript{ storedVars['testfolderpath'] + 'test-file.txt';} |
testFile |
echo |
${testFile} |
|
open |
collaboration/default/collaboration/testBrowserSocialWorkspa/social@dashboard |
|
waitForElementPresent |
//a/img[@alt="create document"] |
|
selectOpenSocialGadgetFrame |
library |
|
click |
//a/img[@alt="create document"] |
|
waitForElementPresent |
link=File |
|
click |
link=File |
|
waitForElementPresent |
//input[@name="dc:title"] |
|
type |
//input[@name="dc:title"] |
testFile |
type |
//input[@name="file:content"] |
${testFile} |
click |
//input[@name="createDocument"] |
|
pause |
2500 |
|
waitForElementPresent |
css=img[alt="download"] |
|
waitForElementPresent |
css=img[alt="download"] |
|
verifyElementPresent |
//a[contains(@href, 'test-file.txt')]/img[@alt="download"] |
|
verifyElementPresent |
//a[contains(@href, "testFile")]/img[@alt="remove"] |
|
click |
//a[contains(@href, "testFile")]/img[@alt="remove"] |
|
waitForElementPresent |
//button[@name="ok"] |
|
click |
//button[@name="ok"] |
|