forked from florentbr/SeleniumBasic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_By.cs
More file actions
52 lines (37 loc) · 1.84 KB
/
_By.cs
File metadata and controls
52 lines (37 loc) · 1.84 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
using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
namespace Selenium.ComInterfaces {
#pragma warning disable 1591
[Guid("0277FC34-FD1B-4616-BB19-A3DE5685A27E")]
[ComVisible(true), InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
public interface _By {
[DispId(5), Description("Current strategy.")]
string Strategy { get; }
[DispId(7), Description("Value of the current strategy.")]
string Value { get; }
[DispId(20), Description("Finds elements based on the HTML class name attribute.")]
By Class(string className);
[DispId(21), Description("Finds elements using a CSS expression.")]
By Css(string cssSelector);
[DispId(22), Description("Finds elements based on the HTML id attribute.")]
By Id(string id);
[DispId(23), Description("Finds elements matching the given text.")]
By LinkText(string linkText);
[DispId(24), Description("Finds elements based on the HTML name attribute.")]
By Name(string name);
[DispId(25), Description("Finds elements containing the given text.")]
By PartialLinkText(string partialLinkText);
[DispId(26), Description("Finds elements based on the HTML tag name")]
By Tag(string tagName);
[DispId(27), Description("Finds elements using an XPATH expression.")]
By XPath(string xpath);
[DispId(50), Description("Finds elements by using multiple strategies")]
By Any([MarshalAs(UnmanagedType.Struct)]By by1
, [MarshalAs(UnmanagedType.Struct)]By by2
, [MarshalAs(UnmanagedType.Struct)]By by3 = null
, [MarshalAs(UnmanagedType.Struct)]By by4 = null
, [MarshalAs(UnmanagedType.Struct)]By by5 = null
, [MarshalAs(UnmanagedType.Struct)]By by6 = null);
}
}