11-26-2012, 11:22 PM
hi ,
i was trying to close the browser after specific action is done and not able to do it.
I am using with Gmail login to show what iam trying to do
and also while doing it i faced again issue of upgrading IE to google and we have to click No thanks but its for first time.Next i dont see that how to handle those in code.Please explain
i was trying to close the browser after specific action is done and not able to do it.
I am using with Gmail login to show what iam trying to do
Code:
systemutil.Run "iexplore.exe","www.gmail.com"
If browser("name:=Gmail: Email from Google").Page("title:=Gmail: Email from Google").WebEdit("name:=Email").Exist Then
browser("name:=Gmail: Email from Google").Page("title:=Gmail: Email from Google.*").WebEdit("name:=Email").Set datatable.Value("username","Global")
browser("name:=Gmail: Email from Google").Page("title:=Gmail: Email from Google.*").WebEdit("name:=Passwd").SetSecure datatable.Value("Password","Global")
browser("name:=Gmail: Email from Google").Page("title:=Gmail: Email from Google.*").WebButton("name:=Sign in").Click
End If
'browser("name:=Gmail: Email from Google").Page("title:=Gmail: Email from Google").link("name:=No thanks").Click
browser("name:=Gmail - Inbox").Page("title:=Gmail - Inbox.*").Link("name:=Sign out").Click
browser("name:=Gmail: Email from Google").Page("title:=Gmail: Email from Google.*").Close