Test_PRL_01_024_CreateNewAccoutWithInvalidEmail
open /portal/public/classic/
echo --Add new user with invalid email--
windowMaximize
click link=Sign in
waitForElementPresent username root
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div
clickAndWait link=New Staff
type username Test_PRL_01_024
type password Test_PRL_01_024
type Confirmpassword Test_PRL_01_024
type firstName Test_PRL_01_024
type lastName Test_PRL_01_024
type email Test_PRL_01_024
click //div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
waitForElementPresent user.language
select user.language label=Ukrainian
click link=Save
echo -- Show message alert invalid email --
waitForTextPresent Your email address is invalid. Please enter a different address.
verifyTextPresent Your email address is invalid. Please enter a different address.
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