forked from florentbr/SeleniumBasic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplication.cs
More file actions
177 lines (153 loc) · 4.36 KB
/
Application.cs
File metadata and controls
177 lines (153 loc) · 4.36 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
using Selenium.ComInterfaces;
using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
namespace Selenium {
/// <summary>
/// Selenium base class to access objects
/// </summary>
[ProgId("Selenium.Application")]
[Guid("0277FC34-FD1B-4616-BB19-E9AAFA695FFB")]
[Description("Base object class")]
[ComVisible(true), ClassInterface(ClassInterfaceType.None)]
public class Application : _Application {
static Waiter _waiter_;
static Verify _verify_;
static Assert _assert_;
static Utils _utils_;
static Keys _keys_;
static By _by_;
/// <summary>
/// Returns the Waiter object
/// </summary>
public Waiter Waiter {
get{
return _waiter_ ?? (_waiter_ = new Waiter());
}
}
/// <summary>
/// Returns the Verify object
/// </summary>
public Verify Verify {
get {
return _verify_ ?? (_verify_ = new Verify());
}
}
/// <summary>
/// Returns the Assert object
/// </summary>
public Assert Assert {
get {
return _assert_ ?? (_assert_ = new Assert());
}
}
/// <summary>
/// Returns the Utils object
/// </summary>
public Utils Utils {
get {
return _utils_ ?? (_utils_ = new Utils());
}
}
/// <summary>
/// Returns the Keys object
/// </summary>
public Keys Keys {
get {
return _keys_ ?? (_keys_ = new Keys());
}
}
/// <summary>
/// Returns the By object
/// </summary>
public By By {
get {
return _by_ ?? (_by_ = new By());
}
}
/// <summary>
/// Creates a new instance of WebDriver
/// </summary>
/// <returns></returns>
public WebDriver WebDriver() {
return new WebDriver();
}
/// <summary>
/// Creates a new instance of FirefoxDriver
/// </summary>
/// <returns></returns>
public WebDriver FirefoxDriver() {
return new FirefoxDriver();
}
/// <summary>
/// Creates a new instance of ChromeDriver
/// </summary>
/// <returns></returns>
public WebDriver ChromeDriver() {
return new ChromeDriver();
}
/// <summary>
/// Creates a new instance of OperaDriver
/// </summary>
/// <returns></returns>
public WebDriver OperaDriver() {
return new ChromeDriver();
}
/// <summary>
/// Creates a new instance of IEDriver
/// </summary>
/// <returns></returns>
public WebDriver IEDriver() {
return new ChromeDriver();
}
/// <summary>
/// Creates a new instance of PhantomJSDriver
/// </summary>
/// <returns></returns>
public WebDriver PhantomJSDriver() {
return new ChromeDriver();
}
/// <summary>
/// Creates a new instance of List
/// </summary>
/// <returns></returns>
public List List() {
return new List();
}
/// <summary>
/// Creates a new instance of Table
/// </summary>
/// <returns></returns>
public Table Table() {
return new Table();
}
/// <summary>
/// Creates a new instance of Dictionary
/// </summary>
/// <returns></returns>
public Dictionary Dictionary() {
return new Dictionary();
}
/// <summary>
/// Creates a new instance of Point
/// </summary>
/// <returns></returns>
public Point Point(int x, int y) {
return new Point(x, y);
}
/// <summary>
/// Creates a new instance of Size
/// </summary>
/// <returns></returns>
public Size Size(int width, int height) {
return new Size(width, height);
}
/// <summary>
/// Creates a new instance of PdfFile
/// </summary>
/// <returns></returns>
public PdfFile PdfFile() {
return new PdfFile();
}
}
}