forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommand_types.h
More file actions
115 lines (104 loc) · 5.29 KB
/
Copy pathcommand_types.h
File metadata and controls
115 lines (104 loc) · 5.29 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
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Defines the types of command available in the WebDriver JSON wire protocol.
#ifndef WEBDRIVER_SERVER_COMMAND_TYPES_H_
#define WEBDRIVER_SERVER_COMMAND_TYPES_H_
namespace webdriver {
namespace CommandType {
const std::string NoCommand = "noCommand";
const std::string Status = "status";
const std::string GetSessionList = "getSessionList";
const std::string NewSession = "newSession";
const std::string GetSessionCapabilities = "getSessionCapabilities";
const std::string Close = "close";
const std::string Quit = "quit";
const std::string Get = "get";
const std::string GoBack = "goBack";
const std::string GoForward = "goForward";
const std::string Refresh = "refresh";
const std::string AddCookie = "addCookie";
const std::string GetAllCookies = "getCookie";
const std::string DeleteCookie = "deleteCookie";
const std::string DeleteAllCookies = "deleteAllCookies";
const std::string FindElement = "findElement";
const std::string FindElements = "findElements";
const std::string FindChildElement = "findChildElement";
const std::string FindChildElements = "findChildElements";
const std::string DescribeElement = "describeElement";
const std::string ClearElement = "clear";
const std::string ClickElement = "click";
const std::string SendKeysToElement = "sendKeys";
const std::string SubmitElement = "submit";
const std::string GetCurrentWindowHandle = "getWindowHandle";
const std::string GetWindowHandles = "getWindowHandles";
const std::string SwitchToWindow = "switchToWindow";
const std::string SwitchToFrame = "switchToFrame";
const std::string SwitchToParentFrame = "switchToParentFrame";
const std::string GetActiveElement = "getActiveElement";
const std::string GetCurrentUrl = "getCurrentUrl";
const std::string GetPageSource = "getPageSource";
const std::string GetTitle = "getTitle";
const std::string ExecuteScript = "executeScript";
const std::string ExecuteAsyncScript = "executeAsyncScript";
const std::string GetElementText = "getElementText";
const std::string GetElementValue = "getElementValue";
const std::string GetElementTagName = "getElementTagName";
const std::string IsElementSelected = "isSelected";
const std::string IsElementEnabled = "isEnabled";
const std::string IsElementDisplayed = "isDisplayed";
const std::string GetElementLocation = "getElementLocation";
const std::string GetElementLocationOnceScrolledIntoView = "getElementLocationInView";
const std::string GetElementSize = "getElementSize";
const std::string GetElementAttribute = "getElementAttribute";
const std::string GetElementValueOfCssProperty = "getValueOfCssProperty";
const std::string ElementEquals = "elementEquals";
const std::string Screenshot = "takeScreenshot";
const std::string ImplicitlyWait = "implicitlyWait";
const std::string SetAsyncScriptTimeout = "setAsyncScriptTimeout";
const std::string SetTimeout = "timeouts";
const std::string GetOrientation = "getOrientation";
const std::string SetOrientation = "setOrientation";
const std::string GetWindowSize = "getWindowSize";
const std::string SetWindowSize = "setWindowSize";
const std::string GetWindowPosition = "getWindowPosition";
const std::string SetWindowPosition = "setWindowPosition";
const std::string MaximizeWindow = "maximizeWindow";
const std::string AcceptAlert = "accept";
const std::string DismissAlert = "dismiss";
const std::string GetAlertText = "getText";
const std::string SendKeysToAlert = "sendKeysToAlert";
const std::string SendKeysToActiveElement = "sendKeysToActiveElement";
const std::string MouseMoveTo = "moveTo";
const std::string MouseClick = "mouseClick";
const std::string MouseDoubleClick = "doubleClick";
const std::string MouseButtonDown = "buttonDown";
const std::string MouseButtonUp = "buttonUp";
const std::string ListAvailableImeEngines = "listAvailableImeEngines";
const std::string GetActiveImeEngine = "getActiveImeEngine";
const std::string IsImeActivated = "isImeActivated";
const std::string ActivateImeEngine = "activateImeEngine";
const std::string DeactivateImeEngine = "deactivateImeEngine";
const std::string TouchClick = "tap";
const std::string TouchDown = "press";
const std::string TouchUp = "release";
const std::string TouchMove = "touchMove";
const std::string TouchScroll = "touchScroll";
const std::string TouchDoubleClick = "touchDoubleClick";
const std::string TouchLongClick = "longPress";
const std::string TouchFlick = "touchFlick";
}
} // namespace webdriver
#endif // WEBDRIVER_SERVER_COMMAND_TYPES_H_