Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
closing the browser
#1
Solved: 10 Years, 10 Months ago
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

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
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
Reply


Messages In This Thread
closing the browser - by diya - 11-26-2012, 11:22 PM
RE: closing the browser - by K Gaurav Varshney - 11-27-2012, 11:32 AM
RE: closing the browser - by kalaivanan123 - 11-27-2012, 03:55 PM
RE: closing the browser - by diya - 11-27-2012, 10:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SAP GUI gets hanged while closing the Windows Pop Up kathirvelnagaraj 0 5,352 10-23-2015, 06:47 PM
Last Post: kathirvelnagaraj
  recovery scenario for closing a message box itself ashima 0 2,144 12-26-2013, 11:10 AM
Last Post: ashima
  closing browser at end bistritapcv 3 5,766 04-12-2013, 07:21 AM
Last Post: basanth27
  error object disabled on line 9 where it says " Browser("Browser").CloseAllTabs" kp_usa 1 3,159 12-20-2012, 12:20 AM
Last Post: adityapant27
  Closing an open PDF mv8167 5 11,647 08-23-2012, 10:24 PM
Last Post: ravi.gajul

Forum Jump:


Users browsing this thread: 1 Guest(s)