Host.Local.CloseApplication doesn't work from time to time

Class library usage, coding and language questions.
c676228
Posts: 176
Joined: Mon Apr 06, 2015 5:40 am

Host.Local.CloseApplication doesn't work from time to time

Post by c676228 » Tue Jul 28, 2015 10:01 pm

I seem to have an issue with
Host.Local.CloseApplication(webElement.Element, delay) method
similar problem with Local.CloseApplication(webElement.Element)
For firefox, most of the time, it cannot close the application.
For ie, it doesn't happen as often as firefox.
For Chrome, so far I haven't encounter this issue.

I am using 5.4. Firefox sometimes just leave the page not closed. sometimes it will displayed a page called "Well, this is embarrassing." See attached screenshot.
Attachments
2015-07-28_firefoxnotclosed.png
2015-07-28_firefoxnotclosed.png (14.14 KiB) Viewed 928 times

c676228
Posts: 176
Joined: Mon Apr 06, 2015 5:40 am

Re: Host.Local.CloseApplication doesn't work from time to time

Post by c676228 » Mon Aug 17, 2015 5:48 pm

Hi all,

I have a session with a support from Ranorex. He is aware of the issue.
He suggests that in order to avoid this kind of issue, use the top level of the element( DOM ) to close the browser. It is basically more reliable.