Unable to close the browser

Ask general questions here.
Posts: 7
Joined: Wed Jun 08, 2016 2:07 pm

Unable to close the browser

Post by Balaraj » Mon Jun 13, 2016 3:42 pm

I m trying to close the browser using HOST.Local.Close Applications(URL),but its not working.is there any other way to close browser?


Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Unable to close the browser

Post by krstcs » Mon Jun 13, 2016 4:14 pm

CloseApplication does not take a URL as a parameter.

Please have a look at the Ranorex API: http://www.ranorex.com/Documentation/Ranorex/

These are the ONLY overloads for the CloseApplication method.

Code: Select all

CloseApplication(int processId)  <- will close the application with the given Windows process Id
CloseApplication(Element containedElement)  <- will close the application containing the given element
CloseApplication(Element containedElement, Duration gracePeriod)  <- same as previous, but with given grace period as a Duration

Also, please ALWAYS include the following when raising an issue:

1. Ranorex version
2. Windows version
3. SUT framework (Java, .NET, WPF, Flash, Web, etc.)
4. Browser version (for Web SUT)
Shortcuts usually aren't...