| AddOrganizationPhoneNumberInvalidTest | ||
| open | /web/guest/home/ | |
| waitForElementPresent | link=Control Panel | |
| clickAtAndWait | link=Control Panel | |
| clickAtAndWait | link=Organizations | |
| store | eval(selenium.isVisible('link=« Basic')) | basicVisible |
| gotoIf | !${basicVisible} | BasicNotVisible |
| clickAt | link=« Basic | |
| label | BasicNotVisible | |
| type | _126_keywords | Selenium |
| clickAtAndWait | //input[@value='Search'] | |
| assertText | //td[2]/a | Selenium |
| clickAtAndWait | //td[2]/a | |
| clickAt | phoneNumbersLink | |
| type | _126_phoneNumber0 | Selenium |
| type | _126_phoneExtension0 | 321 |
| select | _126_phoneTypeId0 | label=Toll-Free |
| clickAt | _126_phonePrimary0 | |
| clickAtAndWait | //input[@value='Save'] | |
| selectWindow | null | |
| assertText | //section/div/div/div/div[1] | You have entered invalid data. Please try again. |
| assertText | //div[5]/div[1] | Please enter a valid phone number. |