No .quit method for a webDocument?

Ask general questions here.
User avatar
Ciege
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

No .quit method for a webDocument?

Post by Ciege » Mon Mar 09, 2009 6:36 pm

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...

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Tue Mar 10, 2009 11:02 am

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]

User avatar
Ciege
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Post by Ciege » Wed Mar 11, 2009 10:17 pm

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Thu Mar 12, 2009 1:48 pm

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

User avatar
Ciege
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Post by Ciege » Thu Mar 12, 2009 4:47 pm

Thanks for considering this.