EditQuestionTest
open /web/guest/home/
waitForElementPresent link=Polls Test Page
clickAtAndWait link=Polls Test Page
clickAtAndWait link=Test Poll Question
assertText //form[@name='_25_fm']/span Test Poll Question
assertText //form[@name='_25_fm']/span[2] This is a test poll description.
assertText //tr[1]/td[3] Test Choice A
assertText //tr[2]/td[3] Test Choice B
assertText //tr[3]/td[3] Test Choice C
assertTextNotPresent NEW Test Choice D
open /web/guest/home/
waitForElementPresent link=Polls Test Page
clickAtAndWait link=Polls Test Page
clickAt //td[5]/ul/li/strong/span
waitForElementPresent link=Edit
clickAtAndWait link=Edit
type _25_title Test Poll Question Edited
type _25_description This is a test poll description. Edited.
clickAtAndWait //input[@value='Add Choice']
waitForElementPresent choiceDescriptiond
type choiceDescriptiond NEW Test Choice D
clickAtAndWait //input[@value='Save']
assertTextPresent Your request processed successfully.
open /web/guest/home/
waitForElementPresent link=Polls Test Page
clickAtAndWait link=Polls Test Page
clickAtAndWait link=Test Poll Question Edited
assertText //form[@name='_25_fm']/span Test Poll Question Edited
assertText //form[@name='_25_fm']/span[2] This is a test poll description. Edited.
assertText //tr[1]/td[3] Test Choice A
assertText //tr[2]/td[3] Test Choice B
assertText //tr[3]/td[3] Test Choice C
assertText //tr[4]/td[3] NEW Test Choice D