Test_ANS_01_018
open /ksdemo/public/classic/
windowMaximize
echo Step 1: Show Add new category form
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
echo Step 2: Add new category
waitForElementPresent eventCategoryName
type eventCategoryName Test_ANS_01_018
type description Add new category in case input directly user/role/group unavailable into Restricted audience field
verifyElementPresent userPrivate
type userPrivate /customerss
waitForElementPresent link=Save
click link=Save
waitForText //div[2]/div[2]/div/div/div/div/div[2] The "Restricted audience" field is invalid: /customerss. Check again.
verifyText //div[2]/div[2]/div/div/div/div/div[2] The "Restricted audience" field is invalid: /customerss. Check again.
click //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
clickAt //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a 1,1
waitForElementPresent link=Cancel
click link=Cancel
waitForTextNotPresent Test_ANS_01_018
verifyTextNotPresent Test_ANS_01_018
waitForElementPresent link=Sign out
clickAndWait link=Sign out