upload_file
open /pubman/faces/HomePage.jsp
clickAndWait form1:Header:lnkSubmission
clickAndWait lnkNewSubmission
clickAndWait //a[contains(text(),'PubMan Test Collection')]
waitForElementPresent cboGenre
selectAndWait cboGenre label=Book
type inputTitleText upload file
mouseDown iterCreatorOrganisationAuthors:0:inpcreator_persons_person_family_name_optional
keyPress iterCreatorOrganisationAuthors:0:inpcreator_persons_person_family_name_optional a
keyPress iterCreatorOrganisationAuthors:0:inpcreator_persons_person_family_name_optional b
waitForElementPresent //ul[3]/li[5]
mouseOver //ul[3]/li[5]
click //ul[3]/li[5]
waitForElementPresent iterCreatorOrganisation:0:inporganizations_organization_name
type txtDatePublishedInPrint 2011
type fileUploads:0:inpAddFileFromUrl www.cylex.ca/company/selenium-creative-ltd-12145804.kml
clickAndWait fileUploads:0:btnUploadFileFromUrl
verifyTextPresent File could not be fetched from external locator. Reason: Invalid URL.
type fileUploads:0:inpAddFileFromUrl http://www.cylex.ca/company/selenium-creative-ltd-12145804.kml
clickAndWait fileUploads:0:btnUploadFileFromUrl
click lnkValidate
verifyTextPresent The given mime type is not valid.
waitForElementPresent fileUploads:0:selFileVisibility
selectAndWait fileUploads:0:selFileVisibility label=Private
verifyTextPresent embargoed till
selectAndWait fileUploads:0:selFileVisibility label=Restricted
verifyTextPresent embargoed till
selectAndWait fileUploads:0:selFileVisibility label=Public
clickAndWait fileUploads:0:btnRemoveFile
type fileUploads:0:inpAddFileFromUrl http://seleniumhq.org/docs/book/Selenium_Documentation.pdf
clickAndWait fileUploads:0:btnUploadFileFromUrl
select fileUploads:0:selFileContentCategory label=Any fulltext
click lnkValidate
verifyTextPresent The Item is valid.
clickAndWait lnkSave
verifyTextPresent Selenium_Documentation.pdf (Any fulltext) [MD5]