开发者

Actions class for mouseover?

开发者 https://www.devze.com 2023-04-10 18:39 出处:网络
I want to mousover in order to click a menu item that appears. I read开发者_StackOverflow社区 about the Actions class to use

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

精彩评论

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

关注公众号