user310291
user310291

Reputation: 38180

Cannot call Selenium 2 System.setProperty("webdriver.ie.driver" from C#

When trying to call System.setProperty("webdriver.ie.driver" from C#, LinqPad says setProperty cannot be found in System.

Actually System doesn't exist in any Selenium dll for c# so is it possible or did I miss something ?

Upvotes: 0

Views: 4316

Answers (1)

Yi Zeng
Yi Zeng

Reputation: 32845

I believe System.setProperty() is Java, see doc here.

What are you trying to do?

If you just want to set the path to ie driver, here is how to do it in C# (doc here):

// for other overloads, check the doc please
IWebDriver driver = new InternetExplorerDriver(@"C:\PathTo\IEDriverServer");

Upvotes: 3

Related Questions