cancel
Showing results for 
Search instead for 
Did you mean: 

I want to close browser using Sys.Desktop.Keys("^W") and it does not work

SOLVED
Highlighted
New Contributor

I want to close browser using Sys.Desktop.Keys("^W") and it does not work

I want to close browser using Sys.Desktop.Keys("^W") and it does not work. Any idea?

1 ACCEPTED SOLUTION

Accepted Solutions
New Contributor

Re: I want to close browser using Sys.Desktop.Keys("^W") and it does not work

I'm all set using Sys.Desktop.Keys("^w")

View solution in original post

3 REPLIES 3
New Contributor

Re: I want to close browser using Sys.Desktop.Keys("^W") and it does not work

I'm all set using Sys.Desktop.Keys("^w")

View solution in original post

Highlighted
Contributor

Re: I want to close browser using Sys.Desktop.Keys("^W") and it does not work

Hi,

 

Initially which browser are you using? IE, Firefox or Chrome

 

Ctrl+W Using only for close the Tab. But you tried to close the browser completely

 

I checked in my IE(IE 9, Windows 7 Enterprise). Even it is not working(Ctrl+W) manually too 😞

 

You can close the browser using browser method instead of passing Keys

 

So before Automate please check whether is it working manually.

 

Thanks,

Kamal

 

Highlighted
Super Contributor

Re: I want to close browser using Sys.Desktop.Keys("^W") and it does not work

Hi Guys,

 

same code is works for me. it is clossing a browser, but the condition is- browser should be activate on desktop.

if any other process is runing along with browser and your browser is not activated then its not close browser.

 

 

New Here?
Join us and watch the welcome video:
Top Kudoed Authors