| open |
/ksdemo/public/classic/ |
|
| windowMaximize |
|
|
| echo |
Step 1: Show Add new category form |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| waitForElementPresent |
//div[@id='PortalNavigationTopContainer']/div[4]/div/div/div/div/div/div/a |
|
| clickAndWait |
//div[@id='PortalNavigationTopContainer']/div[4]/div/div/div/div/div/div/a |
|
| waitForElementPresent |
link=Category |
|
| waitForElementPresent |
link=Category |
|
| click |
link=Category |
|
| waitForElementPresent |
link=Add category |
|
| mouseDownRight |
link=Add category |
|
| echo |
Step 2: Add new category |
|
| waitForElementPresent |
eventCategoryName |
|
| type |
eventCategoryName |
Test_ANS_02_013 |
| type |
description |
Edit category without View Author of Question option |
| verifyElementPresent |
userPrivate |
|
| type |
userPrivate |
mary |
| waitForElementPresent |
link=Save |
|
| clickAt |
link=Save |
1,1 |
| waitForElementPresent |
//div[6]/div/a/span |
|
| click |
//div[6]/div/a/span |
|
| waitForElementPresent |
link=Submit question |
|
| click |
link=Submit question |
|
| waitForElementPresent |
QuestionTitle |
|
| type |
QuestionTitle |
Question Test_ANS_02_013 |
| selectFrame |
//*[@id="Question___Frame"] |
|
| waitForElementPresent |
//html/body/table/tbody/tr[2]/td/iframe |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| waitForElementPresent |
//html/body |
|
| type |
//html/body |
Màu trắng khăn tang trong căn phòng cô đơn. |
| selectFrame |
relative=top |
|
| type |
EmailAddress |
root@localhost.com |
| waitForElementPresent |
link=Save |
|
| clickAt |
link=Save |
1,1 |
| echo |
confirm OK |
|
| waitForElementPresent |
//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div |
|
| click |
//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div |
|
| waitForElementPresent |
link=Question Test_ANS_02_013 |
|
| click |
link=Question Test_ANS_02_013 |
|
| waitForElementNotPresent |
css=span[class='UserName'] |
|
| verifyElementNotPresent |
css=span[class='UserName'] |
|
| waitForElementNotPresent |
css=span[title='root@localhost.com'] |
|
| verifyElementNotPresent |
css=span[title='root@localhost.com'] |
|
| verifyTextNotPresent |
root@localhost.com |
|
| echo |
-- Detele Category -- |
|
| waitForElementPresent |
//div[@id='AnswersContainer']/div/div[1]/div |
|
| click |
//div[@id='AnswersContainer']/div/div[1]/div |
|
| waitForElementPresent |
//div[6]/div/a/span |
|
| mouseOver |
//div[6]/div/a/span |
|
| contextMenu |
//div[6]/div/a/span |
|
| mouseDownRight |
//div[@id='UIFAQPopupCategories2']/div/div/div/div/div[6]/a |
|
| assertConfirmation |
Are you sure you want to delete this category ? |
|
| waitForTextNotPresent |
Test_ANS_02_013 |
|
| verifyTextNotPresent |
Test_ANS_02_013 |
|
| clickAndWait |
link=Sign out |
|
| waitForElementPresent |
//div[@id='PortalNavigationTopContainer']/div[4]/div/div/div/div/div/div/a |
|
| clickAndWait |
//div[@id='PortalNavigationTopContainer']/div[4]/div/div/div/div/div/div/a |
|
| waitForTextNotPresent |
Test_ANS_02_013 |
|
| verifyTextNotPresent |
Test_ANS_02_013 |
|