forked from florentbr/SeleniumBasic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_Actions.cs
More file actions
57 lines (39 loc) · 2.91 KB
/
_Actions.cs
File metadata and controls
57 lines (39 loc) · 2.91 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
namespace Selenium.ComInterfaces {
#pragma warning disable 1591
[Guid("0277FC34-FD1B-4616-BB19-BBE48A6D09DB")]
[ComVisible(true), InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
public interface _Actions {
[DispId(401), Description("Waits the specified amount of time in milliseconds before executing the next action.")]
Actions Wait(int timems);
[DispId(403), Description("Clicks on an element or at the current position.")]
Actions Click([MarshalAs(UnmanagedType.Struct)]WebElement element = null);
[DispId(407), Description("Holds down the left mouse button on an element or at the current position.")]
Actions ClickAndHold([MarshalAs(UnmanagedType.Struct)]WebElement element = null);
[DispId(409), Description("Performs a context-click (right click) on an element or at the current position.")]
Actions ClickContext([MarshalAs(UnmanagedType.Struct)]WebElement element = null);
[DispId(412), Description("Double-clicks an element or at the current position.")]
Actions ClickDouble([MarshalAs(UnmanagedType.Struct)]WebElement element = null);
[DispId(417), Description("Holds down the left mouse button on the source element, then moves to the target element and releases the mouse button.")]
Actions DragAndDrop([MarshalAs(UnmanagedType.Struct)]WebElement elementSource
, [MarshalAs(UnmanagedType.Struct)]WebElement elementTarget);
[DispId(419), Description("Holds down the left mouse button on the source element, then moves to the target element and releases the mouse button. ")]
Actions DragAndDropByOffset([MarshalAs(UnmanagedType.Struct)]WebElement elementSource, int offsetX, int offsetY);
[DispId(421), Description("Sends a key press only, without releasing it. Should only be used with modifier keys (Control, Alt and Shift).")]
Actions KeyDown(string modifierKeys, [MarshalAs(UnmanagedType.Struct)]WebElement element = null);
[DispId(423), Description("Releases a modifier key.")]
Actions KeyUp(string modifierKeys);
[DispId(425), Description("Moving the mouse to an offset from current mouse position.")]
Actions MoveByOffset(int offsetX, int offsetY);
[DispId(427), Description("Moving the mouse to the middle of an element.")]
Actions MoveToElement([MarshalAs(UnmanagedType.Struct)]WebElement element);
[DispId(430), Description("Releasing a held mouse button.")]
Actions Release([MarshalAs(UnmanagedType.Struct)]WebElement element = null);
[DispId(433), Description("Sends keys to current focused element or provided element.")]
Actions SendKeys(string keys, [MarshalAs(UnmanagedType.Struct)]WebElement element = null);
[DispId(435), Description("Performs all stored Actions.")]
void Perform();
}
}