esam_testing_szenario6
open /pubman/faces/HomePage.jsp
clickAndWait form1:Header:lnkSubmission
clickAndWait lnkSubmission_lnkImport
clickAndWait //a[text()='PubMan Test Collection']
waitForElementPresent easySubmission:Import:selCurrentExternalServiceType
select easySubmission:Import:selCurrentExternalServiceType label=BioMed Central
click easySubmission:Import:selSelectFulltext:0
type easySubmission:Import:inpServiceID 1472-6890
clickAndWait easySubmission:Import:lnkImport
pause 5000
verifyTextPresent The identifier does not exist or the access is restricted.1472-6890
type easySubmission:Import:inpServiceID 1472-6890-9-1
clickAndWait easySubmission:Import:lnkImport
clickAndWait lnkSave
clickAndWait Header:lnkDepWorkspace
clickAndWait //a[@title='Molecular analysis of Mycobacterium isolates from extrapulmonary specimens obtained from patients in Mexico']/b
clickAndWait lnkSubmit
clickAndWait lnkSave
clickAndWait lnkRelease
clickAndWait lnkRelease
clickAndWait lnkViewLocalTagsPage
clickAndWait editLocalTags
type j_id_jsp_676480847_116:0:inpPubItemWriteBackLocalTags BioMed File
clickAndWait lnkAccept
clickAndWait lnkSave
clickAndWait lnkModify
clickAndWait btnAddTitle
select iterAlternativeTitle:0:selSelectAlternativeTitleType label=Other
type iterAlternativeTitle:0:inpAltTitleValue hello,world
clickAndWait fileUploads:0:btnAddFile
type fileUploads:1:inpAddFileFromUrl http://seleniumhq.org/docs/book/Selenium_Documentation.pdf
clickAndWait fileUploads:1:btnUploadFileFromUrl
select fileUploads:1:selFileContentCategory label=Abstract
select fileUploads:1:selFileVisibility label=Public
type locatorUploads:0:inpAddUrl http://de.wikipedia.org/wiki
clickAndWait locatorUploads:0:btnSaveUrl
select locatorUploads:0:selLocatorContentCategory label=Any fulltext
clickAndWait lnkSaveAndSubmit
type //div[@id='content']/div[2]/div[1]/div[2]/div/div[3]/span/textarea BioMed file
clickAndWait lnkSave
type Header:quickSearchString BioMed File
clickAndWait Header:btnQuickSearchStart
verifyTextPresent Molecular analysis of Mycobacterium
type Header:quickSearchString BioMed File
click Header:quickSearchCheckBox
clickAndWait Header:btnQuickSearchStart
verifyTextPresent Molecular analysis of Mycobacterium