Page 1 of 1

No .quit method for a webDocument?

Posted: Mon Mar 09, 2009 6:36 pm
by Ciege
I am trying to close a web browser based off of its WebDocument object but I cannot seem to find a .quit or .close method.

For the time being I am issuing an ALT-F4 to the browser.

I am using Ranorex 2.0.0.5474 in Visual Studio 2008.

Thanks...

Posted: Tue Mar 10, 2009 11:02 am
by Support Team
The Web Document class doesn`t include a .Close() method at the moment but it`s on our feature request list and will be implemented in the near future.

Regards,
Christian,
Ranorex Support Team[/b]

Posted: Wed Mar 11, 2009 10:17 pm
by Ciege
Could you also add a .maximize and .minimize method to this class? Would also like to get access to set the browser fullscreen or in theatermode.

Posted: Thu Mar 12, 2009 1:48 pm
by Support Team
We are probably going to add something like WebDocument.ParentForm
which you can .Minimize()/.Maximize().

Close() should rather close the tab it is in rather then the whole browser.

But it should be no problem to add a ShowFullScreen = true|false.

As workaround for fullscreen, you have to send "{F11}" which has the same effect. To check if IE is already in fullscreen mode you can compare the height of the WebDocument DOM with the Internet Explorer Form height (or screen height) which is the same if the status bar is switched off.

Michael
Ranorex Team

Posted: Thu Mar 12, 2009 4:47 pm
by Ciege
Thanks for considering this.