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...
No .quit method for a webDocument?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
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
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