Test_SNF_KS_11_ksdemo_SendQuestion
open /ksdemo/public/classic/
windowMaximize
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
open /ksdemo/private/classic/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
clickAndWait link=Sign out
waitForTextPresent Sign in
verifyTextPresent Sign in