Page 1 of 1

Unable to close the browser

Posted: Mon Jun 13, 2016 3:42 pm
by Balaraj
Hi,
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?

Thanks

Re: Unable to close the browser

Posted: Mon Jun 13, 2016 4:14 pm
by krstcs
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)