| open |
/ksdemo/public/classic/ |
|
| windowMaximize |
|
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| echo |
-- Login Root |
|
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//a[text()="Sign in"] |
|
| open |
/ksdemo/private/classic/answers |
|
| echo |
-Add Question- |
|
| waitForElementPresent |
link=Submit question |
|
| click |
link=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'] |
|
| open |
/ksdemo/private/classic/answers |
|
| echo |
-- Add Question- |
|
| waitForElementPresent |
link=Submit question |
|
| click |
link=Submit question |
|
| echo |
-- Send Question- |
|
| waitForElementPresent |
link=Question for Send |
|
| click |
link=Question for Send |
|
| waitForElementPresent |
//div[@id='AnswersViewContent']//a[@title="Send"] |
|
| click |
//div[@id='AnswersViewContent']//a[@title="Send"] |
|
| waitForElementPresent |
From |
|
| type |
From |
root@localhost.vn |
| type |
To |
hanhlt84@gmail.com |
| waitForElementPresent |
//form[@id='UISendMailForm']//a[text()="Send"] |
|
| click |
//form[@id='UISendMailForm']//a[text()="Send"] |
|
| pause |
5000 |
|
| echo |
-- Check Successful? |
|
| waitForTextPresent |
Your message has been sent successfully. |
|
| verifyTextPresent |
Your message has been sent successfully. |
|
| 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 |
|
| echo |
-- Sign out |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|