Test_SNF_KS_36_ksdemo_QuickSearchInForum
open /ksdemo/public/classic/
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
echo -Simple Search in Forum-
open /ksdemo/private/classic/forum
waitForTextPresent Knowledge Suite
verifyTextPresent Knowledge Suite
verifyTextPresent Live demo
echo -Search In Home-
waitForElementPresent inputValue
type inputValue root
waitForElementPresent //form[@id='QuickSearchForm']/div[2]/a[2]
click //form[@id='QuickSearchForm']/div[2]/a[2]
waitForTextPresent Knowledge Suite
click link=Knowledge Suite
waitForTextPresent Live demo
verifyTextPresent Live demo
echo -Search In Category-
waitForElementPresent //form[@id='UICategory']//div[@class='ContentAction']//div[@class='DownArrow1Icon']
click //form[@id='UICategory']//div[@class='ContentAction']//div[@class='DownArrow1Icon']
waitForElementPresent SearchForm
type SearchForm demo
waitForElementPresent link=Search
click link=Search
waitForTextPresent Live demo
click link=Live demo
waitForElementPresent SearchForm
click SearchForm
echo -Search In Forum-
waitForElementPresent //form[@id='UITopicContainer']//div[@class='SearchForm']//div[@class='DownArrow1Icon']
click //form[@id='UITopicContainer']//div[@class='SearchForm']//div[@class='DownArrow1Icon']
waitForElementPresent SearchForm
type SearchForm data
waitForElementPresent link=Search
click link=Search
waitForTextPresent Demo data policy
click link=Demo data policy
waitForElementPresent //div[@id='UIBreadcumbs']//div[1]/a[1]
click //div[@id='UIBreadcumbs']//div[1]/a[1]
echo --Search in Topic
waitForElementPresent link=Demo data policy
click link=Demo data policy
waitForElementPresent Message
type Message post test
waitForElementPresent link=Quick reply
click link=Quick reply
waitForElementPresent //form[@id='UITopicDetail']/div[4]/div[1]/div/div/div/div/div[3]/div/div[1]/div/div/div/div/div
click //form[@id='UITopicDetail']/div[4]/div[1]/div/div/div/div/div[3]/div/div[1]/div/div/div/div/div
waitForElementPresent SearchForm test
type SearchForm test
waitForElementPresent link=Search
click link=Search
waitForTextPresent Re: Demo data policy
verifyTextPresent Re: Demo data policy
waitForElementPresent link=exact:Re: Demo data policy
click link=exact:Re: Demo data policy
echo --Delete test data
waitForElementPresent link=Open topic
click link=Open topic
waitForElementPresent //div[4]/div/div[2]/div/div/div/div/div/div
click //div[4]/div/div[2]/div/div/div/div/div/div
assertConfirmation Are you sure you want to delete this post?
waitForTextNotPresent Post test
verifyTextNotPresent Post test
waitForElementPresent link=Sign out
clickAndWait link=Sign out
waitForTextPresent Sign in