Monday, February 22, 2021

FireFox In C# Another


  //service.FirefoxBinaryPath = @"C:/Users/gg/AppData/Local/Mozilla Firefox/firefox.exe";     

                FirefoxDriverService service = FirefoxDriverService.CreateDefaultService(@"C:\gmr", "geckodriver.exe");

                FirefoxOptions options = new FirefoxOptions();

                options.AcceptInsecureCertificates = true;

                //Give the path of the Firefox Browser        

                service.FirefoxBinaryPath = @"C:/Users/gmr/AppData/Local/Mozilla Firefox/firefox.exe";                

                _driver = new OpenQA.Selenium.Firefox.FirefoxDriver(service, options);

No comments:

Post a Comment