Test_SNF_KS_17_ksdemo_QuickSearchInAnswers
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/answers
echo - Submit question
waitForElementPresent link=Submit Question
click link=Submit Question
waitForElementPresent id=QuestionTitle
type id=QuestionTitle How do I install KS ?
waitForElementPresent //iframe[@id='Question___Frame']
selectFrame //iframe[@id='Question___Frame']
waitForElementPresent //html/body/table/tbody/tr[2]/td/iframe
selectFrame //html/body/table/tbody/tr[2]/td/iframe
type //html/body The detail of How do i install KS?
selectFrame relative=top
waitForElementPresent id=EmailAddress
type id=EmailAddress root@localhost.vn
waitForElementPresent //form[@id='UIQuestionForm']//a[text()='Save']
mouseDown //form[@id='UIQuestionForm']//a[text()='Save']
waitForElementPresent link=OK
click link=OK
echo - Perform to search
waitForElementPresent inputValue
type inputValue root
waitForElementPresent //form[@id='QuickSearchForm']//a[@title='Search']
click //form[@id='QuickSearchForm']//a[@title='Search']
waitForElementPresent ResultQuickSearch
waitForElementPresent //div[text()='Matching Entries and Categories']
verifyElementPresent //div[text()='Matching Entries and Categories']
verifyElementPresent link=How do I install KS ?
waitForElementPresent //form[@id='ResultQuickSearch']//a[text()='Close']
click //form[@id='ResultQuickSearch']//a[text()='Close']
echo - Delete data test
click //a[contains(text(),'How do I install KS ?')]
waitForElementPresent //div[@id='UIQuestions']//a[@title='Delete']
click //div[@id='UIQuestions']//a[@title='Delete']
waitForElementPresent //form[@id='UIDeleteQuestion']//a[text()='OK']
click //form[@id='UIDeleteQuestion']//a[text()='OK']
waitForElementNotPresent link=How do I install KS ?
verifyElementNotPresent link=How do I install KS ?
waitForElementPresent link=Logout
clickAndWait link=Logout
waitForTextPresent Sign in