open |
/portal/public/classic/ |
|
echo |
-- Create new account when First/Last Name less than 1 or over 45 characters-- |
|
windowMaximize |
|
|
click |
link=Sign in |
|
waitForElementPresent |
username |
|
type |
username |
root |
type |
password |
gtn |
clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
echo |
-- Go to New Staff-- |
|
waitForElementPresent |
link=New Staff |
|
click |
link=New Staff |
|
waitForElementPresent |
username |
|
type |
username |
Test_PRL_01_023 |
type |
password |
Test_PRL_01_023 |
type |
Confirmpassword |
Test_PRL_01_023 |
type |
lastName |
Test_PRL_01_023 Test_PRL_01_023 Test_PRL_01_023 Test_PRL_01_023 Test_PRL_01_023 Test_PRL_01_023 Test_PRL_01_023 |
type |
email |
Test_PRL_01_023@gmail.com |
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
echo |
-- Show message -- |
|
waitForElementPresent |
//div[2]/div[2]/div/div/div/div[1]/div[2] |
|
verifyText |
//div[2]/div[2]/div/div/div/div[1]/div[2] |
The field "First Name:" is required. |
waitForElementPresent |
//div[2]/div/div/div/div[2]/div[2] |
|
verifyText |
//div[2]/div/div/div/div[2]/div[2] |
The length of the text in field "Last Name:" must be between "1" and "45" characters. |
echo |
-- Close message-- |
|
waitForElementPresent |
//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a |
|
click |
//div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a |
|
clickAndWait |
link=Sign out |
|