Managing the Opera driver from .NET.

How can I control the operating driver https://github.com/operasoftware/operadriver/ (or even the Opera browser itself) in Windows from the .NET Framework?

My goal is to do something similar to Browsershots.org

+3
source share
1 answer

The easiest way to do this is to use RemoteWebDriverone that requires the Selenium server to start. The code would look like this ( Warning: unverified code).

// Assumes the Selenium server is running on port 4444 on localhost.
// Note that the Opera() method of the DesiredCapabilities class is
// not included in 2.0rc2 (the currently available binary release),
// but does exist in the trunk.
IWebDriver driver = new RemoteWebDriver("http://localhost:4444/wd/hub", DesiredCapabilities.Opera());
+2
source

All Articles