CloseApplication
Posted: Mon Mar 14, 2011 3:57 pm
There is a new CloseApplication action available in the recordings for 3.0. Can that be used to close a browser window and if so how?
Joe
Joe
Code: Select all
Ranorex.WebDocument dom = "/dom[@domain='www.ranorex.com']";
dom.Close();
Code: Select all
Ranorex.MenuItem mi = "RxPath";
Host.Local.CloseApplication(mi);
Code: Select all
Host.Local.CloseApplication ()
Yes, as the API documentation points out, this method closes the application or web page which contains the specified element, respectively. Just pass in an element of the application/web site and Ranorex will try to close the application/web site.JoeR wrote:There is a new CloseApplication action available in the recordings for 3.0. Can that be used to close a browser window and if so how?