Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sendkeys to close an open web browser
#1
Solved: 10 Years, 8 Months, 3 Weeks ago
How to activate a web browser and sendkeys for closing it?
i have written the script as follw

Code:
Set WshShell = CreateObject("WScript.Shell")

Browser("name:=Google").Activate
wait(3)
WshShell.SendKeys ("%{F4}")


But it is not working.....
WORNING: no method like 'Activate' for web page

can anybody correct it??

Thanks
Reply


Messages In This Thread
Sendkeys to close an open web browser - by prasadworld321 - 03-05-2010, 01:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to close/restart UFT in "Not responding" status with AOM script CharlieMadrid 0 1,061 05-21-2020, 08:46 PM
Last Post: CharlieMadrid
  DP Web Browser/Page issues rstimers 1 2,297 08-14-2015, 12:37 PM
Last Post: venkatesh9032
  Cannot find the "[ WebEdit ]" object's parent "[ Browser ]" (class Browser). Verify t Divya Roopa 1 8,279 03-11-2014, 12:13 PM
Last Post: devarapallliramana
  Getting the complete width and height of the web browser using qtp learnQtptips 1 4,099 05-27-2013, 01:17 PM
Last Post: ravi.gajul
  Function to create web objects (like Browser, Link, Page, etc) Arena 2 3,649 04-03-2012, 08:21 AM
Last Post: Arena

Forum Jump:


Users browsing this thread: 1 Guest(s)