ValidateFields
deleteAllVisibleCookies
setTimeout 100000
open /vivo/
assertTitle VIVO
clickAndWait link=Log in
assertTitle Log in to VIVO
type loginName testAdmin@cornell.edu
type loginPassword Password
clickAndWait loginForm
clickAndWait link=Index
clickAndWait link=Faculty Member
assertTitle Faculty Member
clickAndWait link=Furter, Frank
assertTitle Furter, Frank
click //div[@id='wrapper-content']/ul/li[4]
clickAndWait css=#relatedBy-Authorship > a.add-relatedBy > img.add-individual
assertTitle Edit
verifyTextPresent Create publication entry for Furter, Frank
verifyTextPresent Publication Type
verifyTextPresent Title
verifyTextPresent Publication Date
clickAndWait link=Cancel
assertTitle Furter, Frank
clickAndWait css=#relatedBy-Authorship > a.add-relatedBy > img.add-individual
assertTitle Edit
verifyTextPresent Create publication entry for Furter, Frank
verifyTextPresent Publication Type
verifyTextPresent Title
verifyTextPresent Publication Date
select typeSelector label=Chapter
clickAndWait link=Cancel
clickAndWait css=#relatedBy-Authorship > a.add-relatedBy > img.add-individual
assertTitle Edit
verifyTextPresent Create publication entry for Furter, Frank
verifyTextPresent Publication Type
verifyTextPresent Title
verifyTextPresent Publication Date
select typeSelector label=Chapter
verifyTextPresent Create publication entry for Furter, Frank
verifyTextPresent Publication Type
verifyTextPresent Title
verifyTextPresent Published in
verifyTextPresent Editor: Last name
verifyTextPresent First name
verifyTextPresent Publisher
verifyTextPresent Place of Publication
verifyTextPresent Volume
verifyTextPresent Chapter
verifyTextPresent Start Page
verifyTextPresent End Page
verifyTextPresent Publication Date
clickAndWait submit
assertTitle Edit
verifyTextPresent Please select an existing publication in the Title field or enter a new one.
assertTitle Edit
verifyTextPresent Create publication entry for Furter, Frank
verifyTextPresent Publication Type
select typeSelector label=Chapter
verifyTextPresent Title
type id=title Nintendo O.K. for Kids
type id=book Raising Children in the 21st Century
type id=editor Mouse
type id=firstName Minnie
type id=publisher Marcel Dekker
type id=locale New York
type id=volume 1
type id=chapterNbr 15
type id=startPage 123
type id=endPage 144
type id=dateTime-year 2009
clickAndWait id=submit
assertTitle Furter, Frank
verifyTextPresent chapter
verifyTextPresent Nintendo O.K. for Kids.  Raising Children in the 21st Century. Ed. Mouse, Minnie.  New York: Marcel Dekker. 123-144. 2009
verifyElementPresent link=Nintendo O.K. for Kids
clickAndWait link=Nintendo O.K. for Kids
clickAndWait css=img.add-individual
assertTitle Upload image for Nintendo O.K. for Kids
verifyTextPresent Photo Upload
verifyTextPresent Current Photo
verifyTextPresent Upload a photo (JPEG, GIF or PNG)
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //img[@alt='add']
assertTitle Upload image for Nintendo O.K. for Kids
type datafile C:\VIVO\vivo\utilities\acceptance-tests\suites\AddPublications\
intendo-logo.jpg
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //img[@alt='add']
assertTitle Upload image for Nintendo O.K. for Kids
type datafile C:\VIVO\vivo\utilities\acceptance-tests\suites\AddPublications\nintendo-logo.jpg
clickAndWait //input[@value='Upload photo']
assertTitle Crop image for Nintendo O.K. for Kids
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //img[@alt='add']
assertTitle Upload image for Nintendo O.K. for Kids
type datafile C:\VIVO\vivo\utilities\acceptance-tests\suites\AddPublications\nintendo-logo.jpg
clickAndWait //input[@value='Upload photo']
assertTitle Crop image for Nintendo O.K. for Kids
verifyTextPresent Photo Upload
clickAndWait css=input.submit
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-ARG_2000028 > img.add-individual
assertTitle Edit
verifyTextPresent Nintendo O.K. for Kids
verifyTextPresent Manage Web Pages
verifyTextPresent This individual currently has no web pages specified. Add a new web page by clicking on the button below.
clickAndWait id=showAddFormButton
assertTitle Edit
verifyTextPresent Add webpage for Nintendo O.K. for Kids
verifyTextPresent URL Type
verifyTextPresent URL
verifyTextPresent Webpage Name
clickAndWait link=Cancel
assertTitle Edit
clickAndWait id=showAddFormButton
assertTitle Edit
clickAndWait id=submit
assertTitle Edit
verifyTextPresent url: This field must not be empty.
select name=urlType label=Standard Web Link
clickAndWait id=submit
assertTitle Edit
verifyTextPresent url: This field must not be empty.
type url http://www.nintendo.com/
clickAndWait submit
assertTitle Edit
verifyTextPresent Manage Web Pages
clickAndWait link=Edit
assertTitle Edit
type id=label Company Homepage
clickAndWait submit
assertTitle Edit
clickAndWait id=returnToIndividual
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-relatedBy > img.add-individual
assertTitle Edit
verifyTextPresent Nintendo O.K. for Kids
verifyTextPresent Manage Authors
verifyTextPresent Furter, Frank
clickAndWait id=returnLink
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-relatedBy > img.add-individual
assertTitle Edit
click showAddFormButton
verifyTextPresent Nintendo O.K. for Kids
verifyTextPresent Manage Authors
verifyTextPresent Furter, Frank
verifyTextPresent Add an Author
verifyTextPresent Last name
verifyTextPresent First name
verifyTextPresent Middle name
click link=Cancel
click showAddFormButton
verifyTextPresent Nintendo O.K. for Kids
verifyTextPresent Manage Authors
verifyTextPresent Furter, Frank
verifyTextPresent Add an Author
verifyTextPresent Last name
verifyTextPresent First name
verifyTextPresent Middle name
type id=lastName
sendKeys id=lastName Mous
pause 5000
sendKeys id=lastName ${KEY_DOWN}
click id=ui-active-menuitem
clickAndWait id=submit
assertTitle Edit
clickAndWait id=returnLink
assertTitle Nintendo O.K. for Kids
verifyTextPresent Furter, Frank
verifyTextPresent Mouse, Minnie
clickAndWait css=a.add-features > img.add-individual
assertTitle Edit
verifyTextPresent If you don't find the appropriate entry on the selection list above:
verifyTextPresent This relates an information resource to a person it features.
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='features']/a/img
assertTitle Edit
verifyTextPresent If you don't find the appropriate entry on the selection list above:
verifyTextPresent This relates an information resource to a person it features.
select id=objectVar label=Mouse, Minnie (Person)
clickAndWait id=submit
assertTitle Nintendo O.K. for Kids
verifyTextPresent Mouse, Minnie  Person
verifyElementPresent css=a[title="name"]
clickAndWait //h3[@id='abstract']/a/img
assertTitle Edit
verifyTextPresent Add new entry for: abstract
verifyTextPresent A summary of the resource.
clickAndWait link=Cancel
pause 5000
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='abstract']/a/img
assertTitle Edit
waitForElementPresent tinymce
runScript tinyMCE.activeEditor.setContent('This is a chapter in a book that provides various professional viewpoints as to the impact of Nintendo usage on kids.')
clickAndWait submit
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='presentedAt']/a/img
assertTitle Edit
verifyTextPresent If you don't find the appropriate entry on the selection list above:
verifyTextPresent There are no entries in the system from which to select.
verifyTextPresent Please create a new entry.
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='presentedAt']/a/img
assertTitle Edit
verifyTextPresent If you don't find the appropriate entry on the selection list above:
verifyTextPresent There are no entries in the system from which to select.
verifyTextPresent Please create a new entry.
select id=typeOfNew label=Conference (bibo)
clickAndWait id=offerCreate
assertTitle Edit
verifyTextPresent Create "presented at event" entry for Nintendo O.K. for Kids
type id=label Focus on Kids!
clickAndWait submit
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='status']/a/img
assertTitle Edit
verifyTextPresent Add an entry of type status
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='status']/a/img
assertTitle Edit
verifyTextPresent Add an entry of type status
select id=objectVar label=published
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-status > img.add-individual
assertTitle Edit
select objectVar label=published
clickAndWait submit
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-BFO_0000051 > img.add-individual
assertTitle Edit
verifyTextPresent If you don't find the appropriate entry on the selection list above:
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-BFO_0000051 > img.add-individual
assertTitle Edit
verifyTextPresent Select an existing document for Nintendo O.K. for Kids
verifyTextPresent If you don't find the appropriate entry on the selection list above:
select typeOfNew label=Chapter (bibo)
clickAndWait id=offerCreate
assertTitle Edit
type id=label Kids Now Conference Proceedings
clickAndWait submit
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-BFO_0000050 > img.add-individual
assertTitle Edit
verifyTextPresent If you don't find the appropriate entry on the selection list above:
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-BFO_0000050 > img.add-individual
assertTitle Edit
select id=typeOfNew label=Book (bibo)
clickAndWait id=offerCreate
assertTitle Edit
type id=label Nintendo: Good or Bad for Kids?
clickAndWait submit
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='geographicFocus']/a/img
assertTitle Edit
verifyTextPresent If you don't find the appropriate entry on the selection list above:
verifyTextPresent Geographic Region Name
verifyTextPresent If you don't find the appropriate entry on the selection list above:
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='geographicFocus']/a/img
assertTitle Edit
verifyTextPresent If you don't find the appropriate entry on the selection list above:
verifyTextPresent Geographic Region Name
verifyTextPresent If you don't find the appropriate entry on the selection list above:
type id=object
sendKeys id=object United States of Am
pause 5000
sendKeys id=object ${KEY_DOWN}
click id=ui-active-menuitem
clickAndWait id=submit
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='oclcnum']/a/img
assertTitle Edit
verifyTextPresent Add new entry for: Online Computer Library Center (OCLC) number
verifyTextPresent An oclcnum is a sequential accession number assigned by OCLC as bibliographic records are entered into OCLC WorldCat (the OCLC Online Union Catalog).
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='oclcnum']/a/img
assertTitle Edit
verifyTextPresent Add new entry for: Online Computer Library Center (OCLC) number
verifyTextPresent An oclcnum is a sequential accession number assigned by OCLC as bibliographic records are entered into OCLC WorldCat (the OCLC Online Union Catalog).
waitForElementPresent tinymce
runScript tinyMCE.activeEditor.setContent('1234-5678-90')
clickAndWait submit
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='pmid']/a/img
assertTitle Edit
verifyTextPresent Add new entry for: PubMed ID
verifyTextPresent A PMID (PubMed Identifier or PubMed Unique Identifier) is a unique number assigned to each PubMed citation of life sciences and biomedical scientific journal articles.
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='pmid']/a/img
assertTitle Edit
verifyTextPresent Add new entry for: PubMed ID
verifyTextPresent A PMID (PubMed Identifier or PubMed Unique Identifier) is a unique number assigned to each PubMed citation of life sciences and biomedical scientific journal articles.
waitForElementPresent tinymce
runScript tinyMCE.activeEditor.setContent('123456789')
clickAndWait submit
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='numPages']/a/img
assertTitle Edit
verifyTextPresent Add new entry for: number of pages
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='numPages']/a/img
assertTitle Edit
waitForElementPresent tinymce
runScript tinyMCE.activeEditor.setContent('22')
clickAndWait submit
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='hasSubjectArea']/a/img
assertTitle Edit
verifyTextPresent Manage Concepts
verifyTextPresent There are currently no concepts specified.
verifyElementPresent link=Return to Profile Page
clickAndWait link=Return to Profile Page
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='hasSubjectArea']/a/img
assertTitle Edit
verifyTextPresent Manage Concepts
verifyTextPresent There are currently no concepts specified.
verifyElementPresent link=Return to Profile Page
click id=showAddFormButton
clickAndWait link=Select or create a VIVO-defined concept.
assertTitle Edit
verifyTextPresent Create Your Own Concept
verifyTextPresent Concept
verifyElementPresent link=Return to Manage Concepts
type id=relatedIndLabel Child Development
clickAndWait id=submit
assertTitle Edit
verifyTextPresent Manage Concepts
verifyTextPresent Concept (Type)
verifyTextPresent Vocabulary Source
verifyTextPresent Child Development
verifyElementPresent link=Remove
verifyElementPresent link=Return to Profile Page
clickAndWait link=Return to Profile Page
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='freetextKeyword']/a/img
assertTitle Edit
verifyTextPresent Add new entry for: keywords
verifyTextPresent Intended for a word or short phrase only where no instance of a controlled vocabulary can be identified. Can also be used to help in highlighting subtle difference in work.
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='freetextKeyword']/a/img
assertTitle Edit
verifyTextPresent Add new entry for: keywords
verifyTextPresent Intended for a word or short phrase only where no instance of a controlled vocabulary can be identified. Can also be used to help in highlighting subtle difference in work.
waitForElementPresent tinymce
runScript tinyMCE.activeEditor.setContent('Children')
clickAndWait submit
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='reproducedIn']/a/img
assertTitle Edit
verifyTextPresent If you don't find the appropriate entry on the selection list above:
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='reproducedIn']/a/img
assertTitle Edit
select id=objectVar label=Nintendo: Good or Bad for Kids? (Book)
clickAndWait id=submit
assertTitle Nintendo O.K. for Kids
clickAndWait //h3[@id='reproduces']/a/img
assertTitle Edit
verifyTextPresent If you don't find the appropriate entry on the selection list above:
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-reproduces
assertTitle Edit
verifyTextPresent If you don't find the appropriate entry on the selection list above:
select id=objectVar label=Kids Now Conference Proceedings (Chapter)
clickAndWait submit
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-documentationFor > img.add-individual
assertTitle Edit
verifyTextNotPresent Select an existing (Instrument or Service or Reagent or Research Project or Biological Specimen or Software or Database) for Nintendo O.K. for Kids
verifyTextPresent There are no entries in the system from which to select.
verifyTextPresent Please create a new entry.
verifyElementPresent link=Cancel
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-documentationFor > img.add-individual
assertTitle Edit
verifyTextNotPresent Select an existing (Instrument or Service or Reagent or Research Project or Biological Specimen or Software or Database) for Nintendo O.K. for Kids
verifyTextPresent There are no entries in the system from which to select.
verifyTextPresent Please create a new entry.
select id=typeOfNew label=Service (obo)
clickAndWait id=offerCreate
assertTitle Edit
type id=label Focus on Kids Project
clickAndWait id=submit
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-hasGlobalCitationFrequency > img.add-individual
assertTitle Edit
verifyTextNotPresent Select an existing Global Citation Count for Nintendo O.K. for Kids
verifyTextPresent There are no entries in the system from which to select.
verifyTextPresent Please create a new entry.
verifyElementPresent link=Cancel
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-hasGlobalCitationFrequency > img.add-individual
assertTitle Edit
verifyTextNotPresent Select an existing Global Citation Count for Nintendo O.K. for Kids
verifyTextPresent There are no entries in the system from which to select.
verifyTextPresent Please create a new entry.
clickAndWait id=offerCreate
assertTitle Edit
type id=label 99
clickAndWait id=submit
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-presentedAt > img.add-individual
assertTitle Edit
verifyTextNotPresent Select an existing Event for Nintendo O.K. for Kids
verifyTextPresent There are no entries in the system from which to select.
verifyTextPresent Please create a new entry.
verifyElementPresent link=Cancel
clickAndWait id=offerCreate
assertTitle Edit
verifyTextPresent Create "presented at event" entry for Nintendo O.K. for Kids
verifyElementPresent link=Cancel
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-presentedAt > img.add-individual
assertTitle Edit
verifyTextNotPresent Select an existing Event for Nintendo O.K. for Kids
verifyTextPresent There are no entries in the system from which to select.
verifyTextPresent Please create a new entry.
verifyElementPresent link=Cancel
clickAndWait id=offerCreate
assertTitle Edit
verifyTextPresent Create "presented at event" entry for Nintendo O.K. for Kids
verifyElementPresent link=Cancel
selectWindow null
type id=label Focus on Kids Too!
clickAndWait id=submit
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-RO_0002353 > img.add-individual
assertTitle Edit
verifyTextNotPresent Select an existing Process for Nintendo O.K. for Kids
verifyTextPresent If you don't find the appropriate entry on the selection list above:
verifyElementPresent link=Cancel
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-RO_0002353 > img.add-individual
assertTitle Edit
select id=objectVar label=Focus on Kids! (Conference)
clickAndWait id=submit
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-citedBy > img.add-individual
assertTitle Edit
verifyTextPresent Select an existing document for Nintendo O.K. for Kids
verifyTextPresent If you don't find the appropriate entry on the selection list above:
verifyElementPresent link=Cancel
clickAndWait link=Cancel
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-citedBy > img.add-individual
assertTitle Edit
verifyTextPresent Select an existing document for Nintendo O.K. for Kids
verifyTextPresent If you don't find the appropriate entry on the selection list above:
verifyElementPresent link=Cancel
select id=typeOfNew label=Academic Article (bibo)
clickAndWait id=offerCreate
assertTitle Edit
verifyElementPresent link=Cancel
assertTitle Edit
verifyTextPresent Create "cited by" entry for Nintendo O.K. for Kids
type id=label Kids Today
clickAndWait id=submit
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-cites > img.add-individual
assertTitle Edit
verifyTextPresent Select an existing document for Nintendo O.K. for Kids
verifyTextPresent If you don't find the appropriate entry on the selection list above:
verifyElementPresent link=Cancel
select id=typeOfNew label=Academic Article (bibo)
clickAndWait id=offerCreate
assertTitle Edit
type id=label Kids of the 21st Century
clickAndWait id=submit
assertTitle Nintendo O.K. for Kids
clickAndWait css=a.add-cites > img.add-individual
assertTitle Edit
select id=typeOfNew label=Academic Article (bibo)
clickAndWait id=offerCreate
assertTitle Edit
type id=label Children Today
clickAndWait id=submit
assertTitle Nintendo O.K. for Kids
verifyElementPresent link=Company Homepage
click //div[@id='wrapper-content']/ul/li[12]
verifyTextPresent This is a chapter in a book that provides various professional viewpoints as to the impact of Nintendo usage on kids.
verifyElementPresent link=Furter, Frank
verifyElementPresent link=Mouse, Minnie
verifyElementPresent css=a[title="editor name"]
verifyElementPresent link=published
verifyTextPresent 2009
verifyElementPresent link=Marcel Dekker
verifyElementPresent link=Child Development
verifyElementPresent link=Kids Now Conference Proceedings
verifyElementPresent link=Nintendo: Good or Bad for Kids?
verifyTextPresent 15
verifyTextPresent Mouse, Minnie  Person
verifyElementPresent link=Mouse, Minnie
verifyElementPresent link=Raising Children in the 21st Century
verifyElementPresent link=United States of America
verifyElementPresent link=Focus on Kids Project
verifyElementPresent link=Focus on Kids!
verifyElementPresent link=Focus on Kids Too!
verifyElementPresent css=#presentedAt-Event-List > li > a[title="name"]
verifyElementPresent css=#RO_0002353-BFO_0000015-List > li > a[title="name"]
verifyTextPresent Children
verifyElementPresent link=Kids Today
verifyElementPresent link=Children Today
verifyElementPresent link=Kids of the 21st Century
verifyTextPresent 1234-5678-90
verifyTextPresent 123456789
verifyElementPresent link=99
verifyTextPresent 22
verifyTextPresent 123
verifyTextPresent 144
verifyTextPresent 1
verifyTextPresent New York
verifyElementPresent link=Nintendo: Good or Bad for Kids?
verifyElementPresent link=Kids Now Conference Proceedings
clickAndWait link=Index
verifyTextPresent people
verifyTextPresent Faculty Member (1)
verifyTextPresent Person (2)
verifyTextPresent activities
verifyTextPresent Service (1)
verifyTextPresent events
verifyTextPresent Competition (1)
verifyTextPresent Conference (1)
verifyTextPresent Event (2)
verifyTextPresent organizations
verifyTextPresent Organization (1)
verifyTextPresent Publisher (1)
verifyTextPresent research
verifyTextPresent Academic Article (3)
verifyTextPresent Article (3)
verifyTextPresent Book (2)
verifyTextPresent Chapter (2)
verifyTextPresent Concept (1)
verifyTextPresent Global Citation Count (1)
clickAndWait link=Index
clickAndWait link=Faculty Member
assertTitle Faculty Member
clickAndWait link=Furter, Frank
assertTitle Furter, Frank
click //div[@id='wrapper-content']/ul/li[4]
pause 5000
verifyTextPresent chapter
verifyElementPresent link=Nintendo O.K. for Kids
verifyTextPresent Nintendo O.K. for Kids.  Raising Children in the 21st Century. Ed. Mouse, Minnie.  New York: Marcel Dekker. 123-144. 2009
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO