esam_testing_szenario4.1_4
open /pubman/faces/HomePage.jsp
clickAndWait form1:Header:lnkSubmission
clickAndWait lnkSubmission_lnkImport
clickAndWait //a[text()='PubMan Test Collection']
waitForElementPresent easySubmission:Import:selCurrentExternalServiceType
selectAndWait easySubmission:Import:selCurrentExternalServiceType label=PubMedCentral
click easySubmission:Import:selSelectFulltext:1
type easySubmission:Import:inpServiceID PMC2850461
clickAndWait easySubmission:Import:lnkImport
pause 5000
verifyTextPresent The identifier does not exist or the access is restricted.PMC2850461
type easySubmission:Import:inpServiceID PMC1913543
clickAndWait easySubmission:Import:lnkImport
clickAndWait lnkSave
clickAndWait Header:lnkDepWorkspace
clickAndWait //a[@title='Bio::NEXUS: a Perl API for the NEXUS format for comparative biological data']
clickAndWait lnkEdit
type fileUploads:0:inpAddFileFromUrl http://seleniumhq.org/docs/book/Selenium_Documentation.pdf
clickAndWait fileUploads:0:btnUploadFileFromUrl
select fileUploads:0:selFileContentCategory label=Abstract
selectAndWait fileUploads:0:selFileVisibility label=Private
type locatorUploads:0:inpAddUrl http://de.wikipedia.org/wiki
clickAndWait locatorUploads:0:btnSaveUrl
select locatorUploads:0:selLocatorContentCategory label=Any fulltext
type fileUploads:0:inpFileDescription American Science
type fileUploads:0:fileLicenseDate 2010
click //button[@type='button']
click cc_js_nc
click //button[@type='button' and @onclick="$(this).parents('.licenseArea').find('.licenseURL').val($(this).parents('.messageArea').find('#cc_js_result_uri').val());       
     $(this).parents('.messageArea').addClass('noDisplay');"]
clickAndWait lnkSaveAndSubmit
pause 5000
clickAndWait lnkSave
clickAndWait lnkRelease
type //div[@id='content']/div[2]/div[1]/div[2]/div/div[3]/span/textarea test PubMed
clickAndWait lnkRelease
type Header:quickSearchString Bio::NEXUS
clickAndWait Header:btnQuickSearchStart
verifyTextPresent Error in search!
type Header:quickSearchString NEXUS
clickAndWait Header:btnQuickSearchStart
verifyTextPresent Bio::NEXUS: a Perl API for the NEXUS format for comparative biological data
clickAndWait Header:lnkDepWorkspace
type Header:quickSearchString NEXUS
click Header:quickSearchCheckBox
clickAndWait Header:btnQuickSearchStart
verifyTextPresent Bio::NEXUS: a Perl API for the NEXUS format for comparative biological data