开发者

Actions class for mouseover?

I want to mousover in order to click a menu item that appears. I read开发者_StackOverflow社区 about the Actions class to use

Actions builder = new Actions(driver);

However it doesn't work for me because I get type or namespace not found. I am importing

using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;


You need to add

using OpenQA.Selenium.Interactions;

to your import list. It's a little surprising that Visual Studio's Intellisense didn't pick this up for you, but that should get you on your way.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜