| open |
/portal/public/intranet |
|
| windowMaximize |
|
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/portal/private/intranet/answers |
|
| echo |
-Add Question- |
|
| waitForTextPresent |
Submit question |
|
| click |
link=Submit question |
|
| waitForElementPresent |
QuestionTitle |
|
| type |
QuestionTitle |
Question for Print |
| pause |
1000 |
|
| selectFrame |
//iframe[@id='Question___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
English 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 |
-Print Question- |
|
| waitForElementPresent |
link=Question for Print |
|
| click |
link=Question for Print |
|
| waitForElementPresent |
//div[@class='DecoratorMC']//table[@class='DisablePrint']//td[2]/a |
|
| click |
//div[@class='DecoratorMC']//table[@class='DisablePrint']//td[2]/a |
|
| waitForTextPresent |
Question for Print |
|
| verifyTextPresent |
Question for Print |
|
| verifyTextPresent |
English Description |
|
| waitForElementPresent |
//div[@class='UIAction']//div[@class='PrintAction']/div[2] |
|
| click |
//div[@class='UIAction']//div[@class='PrintAction']/div[2] |
|
| echo |
-Delete Test Data- |
|
| waitForElementPresent |
//div[@id='AnswersViewContent']/div/div/div[2]/div/div/div/table/tbody/tr/td[2]/table/tbody/tr/td/table/tbody/tr/td[4]/a/div[@class='Delete'] |
|
| click |
//div[@id='AnswersViewContent']/div/div/div[2]/div/div/div/table/tbody/tr/td[2]/table/tbody/tr/td/table/tbody/tr/td[4]/a/div[@class='Delete'] |
|
| waitForElementPresent |
//form[@id='UIDeleteQuestion']/div[3]/table/tbody/tr/td/div/div/div/div[@class='ButtonMiddle'] |
|
| click |
//form[@id='UIDeleteQuestion']/div[3]/table/tbody/tr/td/div/div/div/div[@class='ButtonMiddle'] |
|
| waitForTextNotPresent |
Question for Print |
|
| verifyTextNotPresent |
Question for Print |
|
| waitForElementPresent |
link=Logout |
|
| click |
link=Logout |
|
| waitForTextPresent |
Sign in |
|