11-19-2009, 04:00 PM
Code:
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").webedit("name:=Email").Set "xxx"
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").webedit("name:=Passwd").Setsecure "xxxx"
If browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").WebCheckBox("name:=PersistentCookie").GetROProperty("Checked") then
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").WebCheckBox("name:=PersistentCookie").Set "OFF"
else
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").WebCheckBox("name:=PersistentCookie").Set "ON"
end if
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").webbutton("name:=sign in").click
browser("name:=Gmail - Trash - narayan1975@gmail.com").page
("title:=Gmail - Trash - narayan1975@gmail.com").link("name:=trash").click
browser("name:=Gmail - Trash - narayan1975@gmail.com").page("title:=Gmail - Trash - narayan1975@gmail.com").webelement("outertext:=all").click
Code:
browser("name:=Gmail - Trash - narayan1975@gmail.com").page("title:=Gmail - Trash - narayan1975@gmail.com").link("name:=trash").click
Cannot find the "[ Link ]" object's parent "[ Browser ]" (class Browser). Verify that parent properties match an object currently displayed in your application.