setTimeout |
30000 |
|
open |
restAPI/systemLog?token=dolog&level=WARN&message=----- Selenium createFile |
|
open |
logout |
|
open |
nxpath/default/default-domain/workspaces/testWorkspace1/testFilesFolder@view_documents |
|
type |
username |
jsmith |
type |
password |
jsmith1 |
clickAndWait |
Submit |
|
verifyTextPresent |
jsmith |
|
mouseDown |
link=New |
|
clickAndWait |
link=File |
|
type |
//td[@class="fieldColumn"]/input[@type="text"] |
testFile1 |
type |
//td[@class="fieldColumn"]/textarea |
desc testFile1 |
retrieveTestFolderPath |
|
|
storeExpression |
javascript{storedVars.testfolderpath + 'hello.pdf';} |
filepath |
echo |
${filepath} |
|
type |
//input[@type="file"] |
${filepath} |
click |
//input[@value="upload"] |
|
clickAndWait |
//input[@value='Create'] |
|
assertTextNotPresent |
Invalid file |
|
verifyTextPresent |
testFile1 |
|
verifyTextPresent |
desc testFile1 |
|
verifyTextPresent |
0.0 |
|
verifyElementPresent |
link=hello.pdf (1 kB) |
|
clickAndWait |
link=Log out |
|