Test_ANS_08_004
open /ksdemo/public/classic/
windowMaximize
echo Step 1: Create category
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
waitForElementPresent //div[@id='PortalNavigationTopContainer']/div[4]/div/div/div/div/div/div/a
clickAndWait //div[@id='PortalNavigationTopContainer']/div[4]/div/div/div/div/div/div/a
waitForElementPresent link=Category
click link=Category
waitForElementPresent link=Add category
mouseDownRight link=Add category
waitForElementPresent eventCategoryName
type eventCategoryName Test_ANS_08_004
type description Add new Question in case invalid Email Address entry
waitForElementPresent link=Save
click link=Save
echo Step 2: Open Submit question form
waitForElementPresent //div[6]/div/a/span
contextMenu //div[6]/div/a/span
clickAt //div[@id='UIFAQPopupCategories2']/div/div/div/div/div[4]/a
echo Step 3: Submit Question
waitForElementPresent EmailAddress
type EmailAddress root@localhost.com
waitForElementPresent link=Save
clickAt link=Save 1,1
waitForText //div[2]/div[2]/div/div/div/div/div[2] Please enter a question for the default language.
verifyText //div[2]/div[2]/div/div/div/div/div[2] Please enter a question for the default language.
waitForElementPresent //div[@id='UIAnswersPopupWindow']/div/div[1]/div/div/div/div[2]/div
click //div[@id='UIAnswersPopupWindow']/div/div[1]/div/div/div/div[2]/div
waitForElementPresent //div[6]/div/a/span
mouseOver //div[6]/div/a/span
contextMenu //div[6]/div/a/span
mouseDownRight //div[@id='UIFAQPopupCategories2']/div/div/div/div/div[6]/a
assertConfirmation Are you sure you want to delete this category ?
waitForTextNotPresent Test_ANS_08_004
verifyTextNotPresent Test_ANS_08_004
waitForElementPresent link=Sign out
clickAndWait link=Sign out
waitForElementPresent link=Answers
clickAndWait link=Answers
waitForTextNotPresent Test_ANS_08_004
verifyTextNotPresent Test_ANS_08_004