Forum Discussion

akaplan1957's avatar
akaplan1957
New Contributor
9 years ago
Solved

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?

3 Replies

    • Kamal_chennai's avatar
      Kamal_chennai
      Contributor

      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

       

      • Ravik's avatar
        Ravik
        Super Contributor

        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.