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
CloseApplication
Re: CloseApplication
To close a DOM, you should be able to use the WebDocument Close method as below -
To use the CloseApplication, you can do the following to close the application in which the element resides-
Code: Select all
Ranorex.WebDocument dom = "/dom[@domain='www.ranorex.com']";
dom.Close();
Code: Select all
Ranorex.MenuItem mi = "RxPath";
Host.Local.CloseApplication(mi);
Re: CloseApplication
Where i can find API description for following method?:
Code: Select all
Host.Local.CloseApplication ()
Re: CloseApplication
Check the online API document:
http://www.ranorex.com/Documentation/Ra ... x_Host.htm
http://www.ranorex.com/Documentation/Ra ... x_Host.htm
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: 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?
Regards,
Alex
Ranorex Team
Re: CloseApplication
Thanks guys,
I had trouble getting this to work by just pointing to an element trying to close the application. I finally used the root dom i.e. /dom[@domain='ipaddress:port']. This worked.
Again thanks
I had trouble getting this to work by just pointing to an element trying to close the application. I finally used the root dom i.e. /dom[@domain='ipaddress:port']. This worked.
Again thanks