Test_SNF_KS_49_ksdemo_ManageBBC
open /ksdemo/public/classic/
windowMaximize
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /ksdemo/private/classic/forum
echo -Add BBC-
waitForElementPresent //div[@id='Administrations']/div/div[1]/div/div/div/div/a
click //div[@id='Administrations']/div/div[1]/div/div/div/div/a
waitForElementPresent link=BBCodes
click link=BBCodes
waitForElementPresent link=Add BBCode
click link=Add BBCode
waitForElementPresent TagName
type TagName BCC
type Replacement BCCRepace
type Description BBCDesc
type Example BBCEx
waitForElementPresent link=Save
click link=Save
waitForTextPresent BCC
verifyTextPresent BCC
verifyTextPresent BBCDesc
echo -Edit BBC-
waitForElementPresent //form[@id='UIBBCodeManagerForm']/div[3]/table/tbody/tr[25]/td[4]/div/div[1]/div
click //form[@id='UIBBCodeManagerForm']/div[3]/table/tbody/tr[25]/td[4]/div/div[1]/div
waitForElementPresent Description
type Description Description added
type Example [I]This text is added[/I]
waitForElementPresent link=Save
click link=Save
waitForTextPresent Description added
verifyTextPresent Description added
echo -Remove BBC-
waitForElementPresent //tr[25]/td[4]/div/div[2]/div
click //tr[25]/td[4]/div/div[2]/div
assertConfirmation Are you sure you want delete this BBCode?
waitForTextNotPresent Description added
verifyTextNotPresent Description added
waitForElementPresent link=Close
click link=Close
waitForElementPresent link=Sign out
clickAndWait link=Sign out
waitForTextPresent Sign in