通过.NET控制Opera Driver

3
1个回答

2

最简单的方法是使用RemoteWebDriver,需要运行Selenium服务器。代码应该类似于以下内容(警告:未经测试的代码)。

// 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());

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接