
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
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.
Keaegan
the Telerik team
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.
Keaegan
the Telerik team

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