Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
741 views
by Contributing Tester (92 points)
edited by
using System;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;

namespace WebDriverFramework
{
	class Program 
	{
		static void Main(string[] args) 
		{
			IWebDriver driver = new FirefoxDriver();
		}
	}
}

Exception:

Cannot find a file named or an embedded resource with the id 'WebDriver.FirefoxPreferences'.

I am trying to launch browser using C# with selenium.Getting an error. Please someone help!

by The go-to Tester (181 points)
Few questions:
Do you have Firefox installed at the default location?
Do you have any antivirus which has automatically installed plugin/extension into your Firefox browser?
Do you have any other extension installed on Firefox?
Do you have PATH to gekodriver set?

Answers to above questions can help us diagnose.

Please log in or register to answer this question.

...