Firefox doesn't run in invisible mode

5 posts, 0 answers
  1. Thomas Temme
    Thomas Temme avatar
    3 posts
    Member since:
    Dec 2009

    Posted 22 Nov 2010 Link to this post

    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
  2. Keaegan
    Admin
    Keaegan avatar
    126 posts

    Posted 23 Nov 2010 Link to this post

    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
  3. Keaegan
    Admin
    Keaegan avatar
    126 posts

    Posted 07 Jan 2011 Link to this post

    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
  4. Thomas Temme
    Thomas Temme avatar
    3 posts
    Member since:
    Dec 2009

    Posted 16 May 2011 Link to this post

    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
  5. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 23 May 2011 Link to this post

    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
Back to Top