| 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 |
-Manage question- |
|
| waitForElementPresent |
//a[contains(text(),'Manage Questions')] |
|
| click |
//a[contains(text(),'Manage Questions')] |
|
|
|
|
| waitForElementPresent |
//td[contains(text(),'General Questions')] |
|
| waitForElementPresent |
//tr//div[@title='Disapprove'] |
|
| waitForElementPresent |
//td[contains(text(),'General Questions')]/preceding::div[@title='Disapprove'] |
|
| click |
//td[contain(text(),'Why should I care about eXo KS')]/ancestor::tr//div[@title='Disapprove'] |
|
|
|
|
| waitForTextPresent |
No |
|
| verifyText |
//td[text()='Why should I care about eXo KS ?']/ancentor::tr//div[@title='Approve'] |
No |
|
|
|
| waitForElementPresent |
//td[3]/div/div |
|
| click |
//td[3]/div/div |
|
|
|
|
| waitForTextNotPresent |
No |
|
| verifyTextNotPresent |
No |
|
|
|
|
| waitForElementPresent |
//td[4]/div/div |
|
| click |
//td[4]/div/div |
|
|
|
|
| waitForTextPresent |
No |
|
| verifyTextPresent |
No |
|
|
|
|
| waitForElementPresent |
//td[4]/div/div |
|
| click |
//td[4]/div/div |
|
|
|
|
| waitForTextNotPresent |
No |
|
| verifyTextNotPresent |
No |
|
|
|
|
| waitForElementPresent |
//div[@id='UITabContent']//table/tbody/tr[2]/td[5]/div[1]/div |
|
| click |
//div[@id='UITabContent']//table/tbody/tr[2]/td[5]/div[1]/div |
|
|
|
|
| waitForElementPresent |
QuestionTitle |
|
| type |
QuestionTitle |
Edit Question |
| waitForElementPresent |
link=Save |
|
| mouseDown |
link=Save |
|
| waitForTextPresent |
Edit Question |
|
| verifyTextPresent |
Edit Question |
|
| waitForElementPresent |
ListCategories |
|
| select |
ListCategories |
label=Technical FAQ |
| waitForTextPresent |
Technical FAQ |
|
| verifyTextPresent |
Technical FAQ |
|
| select |
ListCategories |
label=All |
|
|
|
| waitForElementPresent |
//option[@value='All'] |
|
| click |
//option[@value='All'] |
|
|
|
|
| waitForElementPresent |
//div[@id='UITabContent']//table//tr[2]/td[5]/div[2]/div |
|
| click |
//div[@id='UITabContent']//table//tr[2]/td[5]/div[2]/div |
|
|
|
|
| waitForElementPresent |
//form[@id='Confirm Delete']//a[text()='OK'] |
|
| click |
//form[@id='Confirm Delete']//a[text()='OK'] |
|
| waitForTextNotPresent |
Edit Question |
|
| verifyTextNotPresent |
Edit Question |
|
|
|
|
| waitForElementPresent |
//form[@id='QuestionInfo']/div[2]//div[1]//div[1]//div[2]/div/div/div/div/div |
|
| click |
//form[@id='QuestionInfo']/div[2]//div[1]//div[1]//div[2]/div/div/div/div/div |
|
|
|
|
| echo |
- Verify label "No Questions" displayed |
|
|
|
|
| waitForElementPresent |
//div[@id='UITabContent']//td/b |
|
| verifyElementPresent |
//div[@id='UITabContent']//td/b |
|
|
|
|
| waitForElementPresent |
//form[@id='UIQuestionManagerForm']//a[text()='Close'] |
|
| click |
//form[@id='UIQuestionManagerForm']//a[text()='Close'] |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| waitForTextPresent |
Sign in |
|