Click here to Skip to main content
15,896,348 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am getting firefox crash report while navigating a website through C# console application.How to avoid the crash reportand open the browser without that error report?


My code is:

C#
public static void browserprocess()
       {
           //to open the browser

           FirefoxDriver driver = new OpenQA.Selenium.Firefox.FirefoxDriver();
           //to open website into the  browser
           //OpenQA.Selenium.Interactions.Actions builder = new OpenQA.Selenium.Interactions.Actions(driver);
           var baseURL = "http://www.google.com";
           driver.Navigate().GoToUrl(baseURL);
}
Posted
Updated 19-May-15 1:24am
v2
Comments
Florian Braun 19-May-15 1:08am    
What does the error report say?
Prasanna SH 19-May-15 1:13am    
@Florian Braun

the error report says "Firefox has stopped working".

After closing that error report.The browser starts its work.
I want to avoid that crash report.

1 solution

Finally I found the solution.

By just downgrading the firefox version from 38 to 30.
Bcos selenium works for the browser version below 30.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900