Test_SNF_KS_36_ksdemo_QuickSearchInForum
open /portal/public/intranet/
windowMaximize
waitForElementPresent //div[contains(text(),'Sign in')]
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
waitForElementPresent password
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
open /portal/private/intranet/forum
echo - Add Category for Search
waitForElementPresent //div[@id='AddCategory']//a[contains(text(),'Add Category')]
clickAt //div[@id='AddCategory']//a[contains(text(),'Add Category')] 1,1
waitForElementPresent CategoryTitle
type CategoryTitle Knowledge Suite
type Description Category Knowledge Suite1
waitForElementPresent link=Save
click link=Save
waitForTextPresent Knowledge Suite
verifyTextPresent Knowledge Suite
echo - Add forum for Search
waitForElementPresent //a[contains(text(),'Add Forum')]
click //a[contains(text(),'Add Forum')]
waitForElementPresent ForumTitle
type ForumTitle Live demo
type Description Live demo
waitForElementPresent //form[@id='UIForumForm']//a[text()='Save']
click //form[@id='UIForumForm']//a[text()='Save']
waitForTextPresent Live demo
verifyTextPresent Live demo
echo - Add Topic for Search
waitForElementPresent UITopicContainer
click //a[contains(text(),'Start Topic')]
waitForElementPresent ThreadTitle
type ThreadTitle Demo data policy
waitForElementPresent //iframe[@id='messageContent___Frame']
selectFrame //iframe[@id='messageContent___Frame']
selectFrame //html/body/table/tbody/tr[2]/td/iframe
type //html/body Welcome to eXo Knowledge Suite live demo!   We hope you enjoy discovering eXo Forum and FAQ applications features. You don't need to be logged in to see the applications in action. But the power of KS lies in the rich set of admin/moderation features.  We didn't want you to miss them so, when you create a demo account, you will be granted full permissions. Anybody can become an administrator or a moderator and play in the sandbox! As a consequence, the data for this forum (including the accounts) is not meant to stay.  WE MAY RESET FORUMS AND FAQS ANYTIME   Enjoy and don't forget to send feedback at ks@exoplatform.com
selectFrame relative=top
waitForElementPresent link=Submit
click link=Submit
waitForTextPresent Demo data policy
verifyTextPresent Demo data policy
echo -Simple Search in Forum-
waitForTextPresent Knowledge Suite
verifyTextPresent Knowledge Suite
verifyTextPresent Live demo
echo -Search In Home-
waitForElementPresent inputValue
type inputValue root
waitForElementPresent //form[@id='QuickSearchForm']//a[@title='Search']
click //form[@id='QuickSearchForm']//a[@title='Search']
waitForElementPresent link=Knowledge Suite
click link=Knowledge Suite
waitForTextPresent Live demo
verifyTextPresent Live demo
echo -Search In Category-
waitForElementPresent link=Search this category
click link=Search this category
waitForElementPresent SearchForm
type SearchForm demo
waitForElementPresent link=Search
click link=Search
waitForElementPresent link=Live demo
clickAt link=Live demo 1,1
waitForElementPresent SearchForm
click SearchForm
echo -Search In Forum-
waitForElementPresent SearchForm
type SearchForm data
waitForElementPresent link=Search
click link=Search
waitForElementPresent link=Demo data policy
click link=Demo data policy
echo --  Home
waitForElementPresent //div[@id='UIBreadcumbs']//a[@title='Home']
click //div[@id='UIBreadcumbs']//a[@title='Home']
echo --Search in Topic
waitForElementPresent link=Live demo
click link=Live demo
waitForElementPresent link=Demo data policy
click link=Demo data policy
waitForElementPresent SearchForm
type SearchForm eXo Knowledge Suite
waitForElementPresent link=Search
click link=Search
waitForElementPresent link=exact:Re: Demo data policy
click link=exact:Re: Demo data policy
echo --Delete test data
waitForElementPresent //div[@id='UIBreadcumbs']//a[@title='Knowledge Suite']
click //div[@id='UIBreadcumbs']//a[@title='Knowledge Suite']
waitForElementPresent link=Manage Category
click link=Manage Category
waitForElementPresent link=Delete
click link=Delete
assertConfirmation Are you sure to delete this category?
waitForElementPresent link=Logout
clickAndWait link=Logout
waitForElementPresent link=Sign in