Page 1 of 1
WebDocument.Close() don't close the Browser
Posted: Tue Feb 03, 2009 12:35 pm
by melmers
Hello,
i have the Problem when i call the WebDocument.Close() sub then it
don't close the browser.
Best regards
Mario Elmers
Posted: Tue Feb 03, 2009 1:00 pm
by Support Team
Could you please post the version of Ranorex and of the browser you use? Thx!
Regards,
Alex
Ranorex Support Team
Posted: Tue Feb 03, 2009 1:57 pm
by melmers
Ranorex Studio 1.5.1.5004
Browser: IE 6.0.2900.2180.xsp_sp2_gdr.080814-1233
OS: Windows XP SP2 German
Posted: Wed Feb 04, 2009 6:15 pm
by Support Team
In some cases Close() doesn't work with IE6.
You can try the following workaround:
WebDocument doc = ...
doc.ParentForm.Activate()
Application.SendKeys("{ALTDOWN}{F4}{ALTUP}")
Alex
Support Team
Posted: Thu Feb 05, 2009 7:50 am
by melmers
Thank you , this works great.