Test_SNF_KS_49_ksdemo_ManageBBC
open /portal/public/intranet/
windowMaximize
waitForElementPresent //div[contains(text(),'Sign in')]
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/forum
echo -Add BBC-
waitForElementPresent //div[@id='Administrations']/div/div[1]/div/div/div/div
click //div[@id='Administrations']/div/div[1]/div/div/div/div
waitForElementPresent //div[@id='Administrations']/div/div[2]/div/div/div/div[2]/div/div/div[4]/a/span
click //div[@id='Administrations']/div/div[2]/div/div/div/div[2]/div/div/div[4]/a/span
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=Logout
clickAndWait link=Logout
waitForTextPresent Sign in