Test_SNF_CS38_AdvancedSearch
open /portal/public/intranet
windowMaximize
waitForElementPresent //div[2]/div[2]/div[1]/div/div/div[1]
click //div[2]/div[2]/div[1]/div/div/div[1]
waitForElementPresent username
type username mary
waitForElementPresent password
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/mail
pause 10000
echo -Advance search in Mail-
echo - Check Get Mail
waitForElementPresent link=eXo_Test
verifyElementPresent link=eXo_Test
echo -- Search Mail in Advance
waitForElementPresent xpath=//div[@class='MailFolderList']//div[3]/a
clickAt xpath=//div[@title='Advanced search']
waitForElementPresent subject-field
type subject-field eXo_Test
clickAt link=Search
waitForElementPresent link=eXo_Test
verifyElementPresent link=eXo_Test
clickAndWait link=Logout
close