Test_SNF_KS_11_ksdemo_SendQuestion
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 -Add Question-
waitForElementPresent //div[@id='UIQuestions']//a[text()='Submit Question']
click //div[@id='UIQuestions']//a[text()='Submit Question']
waitForElementPresent QuestionTitle
type QuestionTitle Question for Send
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 English for Send Description
selectFrame relative=top
type EmailAddress root@localhost.vn
waitForElementPresent link=Save
mouseDown link=Save
waitForElementPresent //div[@id='UIAnswersPortlet']//a[text()='OK']
click //div[@id='UIAnswersPortlet']//a[text()='OK']
echo -Send Question-
waitForElementPresent link=Question for Send
click link=Question for Send
waitForElementPresent //div[@id='AnswersViewContent']//table//td/table[@class='DisablePrint']//div[@class="SendToFriend"]
click //div[@id='AnswersViewContent']//table//td/table[@class='DisablePrint']//div[@class="SendToFriend"]
waitForElementPresent From
type From root@localhost.vn
type To exomailtest@gmail.com
waitForElementPresent //form[@id='UISendMailForm']//a[text()='Send']
click //form[@id='UISendMailForm']//a[text()='Send']
waitForElementPresent //div[@id='UIAnswersPortlet']//a[text()='OK']
click //div[@id='UIAnswersPortlet']//a[text()='OK']
echo -Delete Test Data-
waitForElementPresent //div[@id='AnswersViewContent']//a[@title='Delete']
click //div[@id='AnswersViewContent']//a[@title='Delete']
waitForElementPresent //form[@id='UIDeleteQuestion']//a[text()='OK']
click //form[@id='UIDeleteQuestion']//a[text()='OK']
waitForElementNotPresent link=Question for Send
verifyElementNotPresent link=Question for Send
waitForElementPresent link=Logout
clickAndWait link=Logout
waitForTextPresent Sign in
verifyTextPresent Sign in