This is a migrated thread and some comments may be shown as answers.

Firefox doesn't run in invisible mode

4 Answers 95 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Thomas Temme
Top achievements
Rank 1
Thomas Temme asked on 22 Nov 2010, 12:39 PM
Hello,

When I'm trying to run my firefox in invisible mode and I'm calling NavigateTo, I get a NullReferenceException:

Settings mySettings = new Settings(BrowserType.FireFox, @"C:\browserlog\");
Manager myManager = new Manager(mySettings);         
myManager.Start();
myManager.LaunchNewBrowser(BrowserType.FireFox, true, System.Diagnostics.ProcessWindowStyle.Hidden);
myManager.ActiveBrowser.NavigateTo("http://www.google.com");


If I choose ProcessWindowStyle.Normal everything works fine. Could you please advise, if and how it is possible to run Firefox in invisble mode?

Many Thanks
Thomas

4 Answers, 1 is accepted

Sort by
0
Keaegan
Telerik team
answered on 23 Nov 2010, 11:32 PM
Hello Thomas,

I tested out your provided code (thank you), and found that when I run this code I also receive an exception (though not a null reference).

I received the "null reference" until I built the project (using developer edition), however after "building the solution" the null reference went away. I was instead left with an "Inner Exception" for the line item that creates the invisible window.

The window is created, but no return is made on the creation, and the window cannot be manipulated further (other than to directly "kill" firefox). I have created bug 99948 to document and track this issue. I apologize that I do not have an ETA for this issue to be resolved. At this time I do not have a valid work-around to enable something similar either. 

If you have any questions on this bug, please feel free to ask them.

Best wishes,
Keaegan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Keaegan
Telerik team
answered on 07 Jan 2011, 05:21 PM
Hi Thomas Temme,

Our developers have finished reviewing the provided issue (BugID 99948). I regret to inform you that this specific issue has been determined to be functioning as intended, and that we will not be adding in support for the requested feature (to be able to appropriately handle invisible windows). The work-around I can suggest is to not use these types of windows.

I apologize for any frustration this data causes. Please feel free to let us know if you have any questions regarding this information. 

All the best,
Keaegan
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
Thomas Temme
Top achievements
Rank 1
answered on 16 May 2011, 09:01 AM
Hello there,

Meanwhile I've tried to use invisible Mode within other browsers with the newest Release (Q1/2011).
The issue in Firefox (Meanwhile Firefox 4) is still the same. The same issue occurs within Internet Explorer 7. Within the two Gecko Browsers (Chrome 11 and Safari 5) it works, but the browser keeps visible.

Example code:

Settings mySettings = new Settings(BrowserType.Chrome, @"C:\browserlog\");
Manager myManager = new Manager(mySettings);
myManager.Start();
myManager.LaunchNewBrowser(BrowserType.Chrome,true,ProcessWindowStyle.Hidden);
myManager.ActiveBrowser.NavigateTo("http://www.forwiss.uni-passau.de/~berberic/TeX/Rechnung/index.html");
myManager.ActiveBrowser.Close();
myManager.Dispose();

It would be great, if you could help me to get Invisible mode running succesful in any browser.

Many thanks,
Thomas
0
Konstantin Petkov
Telerik team
answered on 23 May 2011, 08:31 AM
Hello Thomas,

We can only confirm we did not have a chance to work-around this limitation. I'm sorry for the caused inconvenience and please do not hesitate to contact us if you need our assistance in any other automation scenario.

Best wishes,
Konstantin Petkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Thomas Temme
Top achievements
Rank 1
Answers by
Keaegan
Telerik team
Thomas Temme
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or