Test_SNF_KS_12_ksdemo_ManageQuestion
open /ksdemo/public/classic/
windowMaximize
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username root
type password gtn
echo --  Login Root
clickAndWait //div[@id='UIPortalLoginFormAction']//a[text()="Sign in"]
echo --  Go to Answers
open /ksdemo/private/classic/answers
echo --  Manage question-
waitForElementPresent link=Manage questions
click link=Manage questions
echo --  Not Approved "What does eXo Knowledge Suite contain ?"
waitForElementPresent //div[@id="UITabContent"]//div[@title="Disapprove"]
click //div[@id="UITabContent"]//div[@title="Disapprove"]
echo --  Check status: No
waitForText //div[@id="UITabContent"]//div[@title="Approve"] No
verifyText //div[@id="UITabContent"]//div[@title="Approve"] No
waitForElementPresent //td[3]/div/div
click //td[3]/div/div
waitForTextNotPresent No
verifyTextNotPresent No
waitForElementPresent //td[4]/div/div
click //td[4]/div/div
waitForTextPresent No
verifyTextPresent No
waitForElementPresent //td[4]/div/div
click //td[4]/div/div
waitForTextNotPresent No
verifyTextNotPresent No
waitForElementPresent //div[@id='UITabContent']//table/tbody/tr[2]/td[5]/div[1]/div
click //div[@id='UITabContent']//table/tbody/tr[2]/td[5]/div[1]/div
waitForElementPresent QuestionTitle
type QuestionTitle Edit Question
waitForElementPresent link=Save
mouseDown link=Save
waitForTextPresent Edit Question
verifyTextPresent Edit Question
waitForElementPresent ListCategories
select ListCategories label=Technical FAQ
waitForTextPresent Technical FAQ
verifyTextPresent Technical FAQ
select ListCategories label=All
waitForElementPresent //option[@value='All']
click //option[@value='All']
waitForElementPresent //div[@id='UITabContent']//table//tr[2]/td[5]/div[2]/div
click //div[@id='UITabContent']//table//tr[2]/td[5]/div[2]/div
waitForElementPresent //form[@id='Confirm Delete']/div[3]/table/tbody/tr/td//div[@class='ButtonMiddle']
click //form[@id='Confirm Delete']/div[3]/table/tbody/tr/td//div[@class='ButtonMiddle']
waitForTextNotPresent Edit Question
verifyTextNotPresent Edit Question
waitForElementPresent //form[@id='QuestionInfo']/div[2]//div[1]//div[1]//div[2]/div/div/div/div/div
click //form[@id='QuestionInfo']/div[2]//div[1]//div[1]//div[2]/div/div/div/div/div
waitForElementPresent //form[@id='UIQuestionManagerForm']/div[2]//div/div/div/div
click //form[@id='UIQuestionManagerForm']/div[2]//div/div/div/div
waitForElementPresent link=Sign out
clickAndWait link=Sign out
waitForTextPresent Sign in