forked from florentbr/SeleniumBasic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTS_Mouse.cs
More file actions
37 lines (29 loc) · 938 Bytes
/
TS_Mouse.cs
File metadata and controls
37 lines (29 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using Selenium.Tests.Internals;
using A = NUnit.Framework.Assert;
using SetUp = NUnit.Framework.SetUpAttribute;
using TestCase = NUnit.Framework.TestCaseAttribute;
using TestFixture = NUnit.Framework.TestFixtureAttribute;
namespace Selenium.Tests {
[TestFixture(Browser.Firefox)]
[TestFixture(Browser.Opera)]
[TestFixture(Browser.Chrome)]
[TestFixture(Browser.IE)]
[TestFixture(Browser.PhantomJS)]
class TS_Mouse : BaseBrowsers {
public TS_Mouse(Browser browser)
: base(browser) { }
[SetUp]
public void SetUp() {
driver.Get("/input.html");
}
[TestCase]
public void ShouldDoubleClick() {
var ele = driver.FindElementById("input__search");
var mouse = driver.Mouse;
mouse.MoveTo(ele, 50);
mouse.Click();
mouse.ClickAndHold();
mouse.Release();
}
}
}