SetupTest
waitForElementPresent my-community-private-pages
clickAndWait my-community-private-pages
click //div[@id='add-page']/a/span
waitForElementPresent new_page
typeKeys new_page PD Setup Test Page
type new_page PD Setup Test Page
click link=Save
waitForElementPresent link=PD Setup Test Page
clickAndWait link=PD Setup Test Page
click link=Add Application
waitForElementPresent //div[@id='Polls-Polls']/p/a
click //div[@id='Polls-Polls']/p/a
waitForElementPresent //input[@value='Add Question']
clickAndWait //input[@value='Add Question']
typeKeys _25_title PD Setup Question Test
type _25_title PD Setup Question Test
type _25_description This is PD setup question.
type _25_choiceDescriptiona PD Setup Test Choice A
type _25_choiceDescriptionb PD Setup Test Choice B
click //input[@value='Add Choice']
waitForElementPresent _25_choiceDescriptionc
typeKeys _25_choiceDescriptionc PD Setup Test Choice C
type _25_choiceDescriptionc PD Setup Test Choice C
clickAndWait //input[@value='Save']
assertTextPresent Your request processed successfully.
assertElementPresent link=PD Setup Question Test