Test_SNF_KS_42_kdemo_BookMark
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 Category for Test-
waitForElementPresent link=Add category
click link=Add category
waitForElementPresent CategoryTitle
type CategoryTitle Cate1_SNF_KS_42
type Description Category 1
waitForElementPresent link=Save
click link=Save
waitForTextPresent Cate1_SNF_KS_42
verifyTextPresent Cate1_SNF_KS_42
echo -Add Forum-
waitForElementPresent link=Add forum
click link=Add forum
waitForElementPresent ForumTitle
type ForumTitle For1_SNF_KS_42
type Description prepare forum data
waitForElementPresent //form[@id='UIForumForm']/div[4]/table//div[1]/div/div/div
click //form[@id='UIForumForm']/div[4]/table//div[1]/div/div/div
waitForElementPresent link=Cate1_SNF_KS_42
click link=Cate1_SNF_KS_42
waitForTextPresent For1_SNF_KS_42
verifyTextPresent For1_SNF_KS_42
echo -Bookmark Category
waitForElementPresent //div[@id='UIBreadcumbs']//div[1]/a
click //div[@id='UIBreadcumbs']//div[1]/a
waitForElementPresent link=Cate1_SNF_KS_42
contextMenu link=Cate1_SNF_KS_42
waitForElementPresent //div[@id='UIPopupCategory4']/div/div/div[3]/div/div/div[1]/a
click //div[@id='UIPopupCategory4']/div/div/div[3]/div/div/div[1]/a
echo -Bookmark forum-
waitForElementPresent link=Cate1_SNF_KS_42
click link=Cate1_SNF_KS_42
waitForElementPresent link=For1_SNF_KS_42
contextMenu link=For1_SNF_KS_42
waitForElementPresent //div[@id='UIPopupCategory1']/div/div/div[2]/div/div/div[1]/a
click //div[@id='UIPopupCategory1']/div/div/div[2]/div/div/div[1]/a
echo -Bookmark Topic
waitForElementPresent link=For1_SNF_KS_42
click link=For1_SNF_KS_42
waitForElementPresent link=Start topic
click link=Start topic
waitForElementPresent ThreadTitle
type ThreadTitle Top1_SNF_KS_42
waitForElementPresent //iframe[@id='messageContent___Frame']
selectFrame //iframe[@id='messageContent___Frame']
selectFrame //html/body/table/tbody/tr[2]/td/iframe
type //html/body Topic for Bookmark
selectFrame relative=top
waitForElementPresent link=Submit
click link=Submit
waitForTextPresent Top1_SNF_KS_42
verifyTextPresent Top1_SNF_KS_42
waitForElementPresent link=Top1_SNF_KS_42
componentExoContextMenu link=Top1_SNF_KS_42 contextmenu
waitForElementPresent //div[@id='UIPopupCategory1']/div/div/div[2]/div/div/div[1]/a
click //div[@id='UIPopupCategory1']/div/div/div[2]/div/div/div[1]/a
echo -Check bookmark links-
echo -View Category in Boorkmark-
waitForElementPresent link=Bookmarks
click link=Bookmarks
waitForElementPresent //form[@id='UIShowBookMarkForm']/div[2]/table/tbody/tr[1]/td[2]/a
verifyElementPresent //form[@id='UIShowBookMarkForm']/div[2]/table/tbody/tr[1]/td[2]/a Cate1_SNF_KS_42
click //form[@id='UIShowBookMarkForm']/div[2]/table/tbody/tr[1]/td[2]/a
waitForElementPresent //div[@class='Selected'] Cate1_SNF_KS_42
verifyElementPresent //div[@class='Selected'] Cate1_SNF_KS_42
echo -View Forum in Bookmark-
waitForElementPresent link=Bookmarks
click link=Bookmarks
waitForElementPresent //form[@id='UIShowBookMarkForm']/div[2]/table/tbody/tr[2]/td[2]/a
verifyElementPresent //form[@id='UIShowBookMarkForm']/div[2]/table/tbody/tr[2]/td[2]/a For1_SNF_KS_42
click //form[@id='UIShowBookMarkForm']/div[2]/table/tbody/tr[2]/td[2]/a
waitForElementPresent //div[@class='Selected'] For1_SNF_KS_42
verifyElementPresent //div[@class='Selected'] For1_SNF_KS_42
echo -View topic in Bookmark-
waitForElementPresent link=Bookmarks
click link=Bookmarks
waitForTextPresent Top1_SNF_KS_42
verifyTextPresent Top1_SNF_KS_42
click //form[@id='UIShowBookMarkForm']/div[2]/table/tbody/tr[2]/td[2]/a
waitForElementPresent //div[@class='Selected'] Top1_SNF_KS_42
verifyElementPresent //div[@class='Selected'] Top1_SNF_KS_42
echo -Delete Bookmark-
waitForElementPresent link=Bookmarks
click link=Bookmarks
waitForElementPresent //form[@id='UIShowBookMarkForm']/div[2]/table//tr[3]/td[3]/div/div
click //form[@id='UIShowBookMarkForm']/div[2]/table//tr[3]/td[3]/div/div
waitForElementPresent //form[@id='UIShowBookMarkForm']/div[2]/table//tr[2]/td[3]/div/div
click //form[@id='UIShowBookMarkForm']/div[2]/table//tr[2]/td[3]/div/div
waitForElementPresent //form[@id='UIShowBookMarkForm']/div[2]/table//td[3]/div/div
click //form[@id='UIShowBookMarkForm']/div[2]/table//td[3]/div/div
waitForTextPresent No links
verifyTextPresent No links
click //form[@id='UIShowBookMarkForm']/div[3]/table//div/div/div/div
echo -Bookmark by bookmark button on the action bar-
waitForElementPresent link=Cate1_SNF_KS_42
click link=Cate1_SNF_KS_42
waitForElementPresent link=Bookmark
click link=Bookmark
waitForElementPresent link=For1_SNF_KS_42
click link=For1_SNF_KS_42
waitForElementPresent link=Bookmark
click link=Bookmark
waitForElementPresent link=Top1_SNF_KS_42
click link=Top1_SNF_KS_42
waitForElementPresent link=Bookmark
click link=Bookmark
waitForElementPresent link=Bookmarks
click link=Bookmarks
waitForElementPresent //form[@id='UIShowBookMarkForm']/div[2]/table/tbody/tr[1]/td[2]/a
verifyElementPresent //form[@id='UIShowBookMarkForm']/div[2]/table/tbody/tr[1]/td[2]/a Cate1_SNF_KS_42
verifyElementPresent //form[@id='UIShowBookMarkForm']/div[2]/table/tbody/tr[2]/td[2]/a For1_SNF_KS_42
verifyElementPresent //form[@id='UIShowBookMarkForm']/div[2]/table/tbody/tr[3]/td[2]/a Top1_SNF_KS_42
click //form[@id='UIShowBookMarkForm']/div[3]/table//div/div/div/div
echo -Delete Bookmark-
waitForElementPresent link=Bookmarks
click link=Bookmarks
waitForElementPresent //form[@id='UIShowBookMarkForm']/div[2]/table//tr[3]/td[3]/div/div
click //form[@id='UIShowBookMarkForm']/div[2]/table//tr[3]/td[3]/div/div
waitForElementPresent //form[@id='UIShowBookMarkForm']/div[2]/table//tr[2]/td[3]/div/div
click //form[@id='UIShowBookMarkForm']/div[2]/table//tr[2]/td[3]/div/div
waitForElementPresent //form[@id='UIShowBookMarkForm']/div[2]/table//td[3]/div/div
click //form[@id='UIShowBookMarkForm']/div[2]/table//td[3]/div/div
waitForTextPresent No links
verifyTextPresent No links
click //form[@id='UIShowBookMarkForm']/div[3]/table//div/div/div/div
echo -Delete Test Data-
waitForElementPresent link=Cate1_SNF_KS_42
click link=Cate1_SNF_KS_42
waitForElementPresent //form[@id='UICategory']/div[3]/div/div/div/div[4]/div[1]/div/div/div/div/div
click //form[@id='UICategory']/div[3]/div/div/div/div[4]/div[1]/div/div/div/div/div
waitForElementPresent link=Delete
click link=Delete
assertConfirmation Are you sure you want to delete this category?
waitForTextNotPresent Cate1_SNF_KS_42
verifyTextNotPresent Cate1_SNF_KS_42
clickAndWait link=Sign out
waitForTextPresent Sign in