OLD | NEW |
| (Empty) |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_TEST_CHROMEDRIVER_COMMAND_NAMES_H_ | |
6 #define CHROME_TEST_CHROMEDRIVER_COMMAND_NAMES_H_ | |
7 | |
8 class CommandNames { | |
9 public: | |
10 static const char kNewSession[]; | |
11 static const char kStatus[]; | |
12 static const char kClose[]; | |
13 static const char kQuit[]; | |
14 static const char kGet[]; | |
15 static const char kGoBack[]; | |
16 static const char kGoForward[]; | |
17 static const char kRefresh[]; | |
18 static const char kAddCookie[]; | |
19 static const char kGetCookie[]; | |
20 static const char kGetCookies[]; | |
21 static const char kDeleteCookie[]; | |
22 static const char kDeleteAllCookies[]; | |
23 static const char kFindElement[]; | |
24 static const char kFindElements[]; | |
25 static const char kFindChildElement[]; | |
26 static const char kFindChildElements[]; | |
27 static const char kClearElement[]; | |
28 static const char kClickElement[]; | |
29 static const char kHoverOverElement[]; | |
30 static const char kSendKeysToElement[]; | |
31 static const char kSendKeysToActiveElement[]; | |
32 static const char kSubmitElement[]; | |
33 static const char kUploadFile[]; | |
34 static const char kGetCurrentWindowHandle[]; | |
35 static const char kGetWindowHandles[]; | |
36 static const char kSwitchToWindow[]; | |
37 static const char kSwitchToFrame[]; | |
38 static const char kGetActiveElement[]; | |
39 static const char kGetCurrentUrl[]; | |
40 static const char kGetPageSource[]; | |
41 static const char kGetTitle[]; | |
42 static const char kExecuteScript[]; | |
43 static const char kExecuteAsyncScript[]; | |
44 static const char kSetBrowserVisible[]; | |
45 static const char kIsBrowserVisible[]; | |
46 static const char kGetElementText[]; | |
47 static const char kGetElementValue[]; | |
48 static const char kGetElementTagName[]; | |
49 static const char kDragElement[]; | |
50 static const char kIsElementSelected[]; | |
51 static const char kIsElementEnabled[]; | |
52 static const char kIsElementDisplayed[]; | |
53 static const char kGetElementLocation[]; | |
54 static const char kGetElementLocationOnceScrolledIntoView[]; | |
55 static const char kGetElementSize[]; | |
56 static const char kGetElementAttribute[]; | |
57 static const char kGetElementValueOfCssProperty[]; | |
58 static const char kElementEquals[]; | |
59 static const char kScreenshot[]; | |
60 static const char kGetAlert[]; | |
61 static const char kAcceptAlert[]; | |
62 static const char kDismissAlert[]; | |
63 static const char kGetAlertText[]; | |
64 static const char kSetAlertValue[]; | |
65 static const char kSetTimeout[]; | |
66 static const char kImplicitlyWait[]; | |
67 static const char kSetScriptTimeout[]; | |
68 static const char kExecuteSQL[]; | |
69 static const char kGetLocation[]; | |
70 static const char kSetLocation[]; | |
71 static const char kGetAppCache[]; | |
72 static const char kGetStatus[]; | |
73 static const char kClearAppCache[]; | |
74 static const char kIsBrowserOnline[]; | |
75 static const char kSetBrowserOnline[]; | |
76 static const char kGetLocalStorageItem[]; | |
77 static const char kGetLocalStorageKeys[]; | |
78 static const char kSetLocalStorageItem[]; | |
79 static const char kRemoveLocalStorageItem[]; | |
80 static const char kClearLocalStorage[]; | |
81 static const char kGetLocalStorageSize[]; | |
82 static const char kGetSessionStorageItem[]; | |
83 static const char kGetSessionStorageKey[]; | |
84 static const char kSetSessionStorageItem[]; | |
85 static const char kRemoveSessionStorageItem[]; | |
86 static const char kClearSessionStorage[]; | |
87 static const char kGetSessionStorageSize[]; | |
88 static const char kSetScreenOrientation[]; | |
89 static const char kGetScreenOrientation[]; | |
90 static const char kMouseClick[]; | |
91 static const char kMouseDoubleClick[]; | |
92 static const char kMouseButtonDown[]; | |
93 static const char kMouseButtonUp[]; | |
94 static const char kMouseMoveTo[]; | |
95 static const char kSendKeys[]; | |
96 static const char kImeGetAvailableEngines[]; | |
97 static const char kImeGetActiveEngine[]; | |
98 static const char kImeIsActivated[]; | |
99 static const char kImeDeactivate[]; | |
100 static const char kImeActivateEngine[]; | |
101 static const char kTouchSingleTap[]; | |
102 static const char kTouchDown[]; | |
103 static const char kTouchUp[]; | |
104 static const char kTouchMove[]; | |
105 static const char kTouchScroll[]; | |
106 static const char kTouchDoubleTap[]; | |
107 static const char kTouchLongPress[]; | |
108 static const char kTouchFlick[]; | |
109 static const char kSetWindowSize[]; | |
110 static const char kSetWindowPosition[]; | |
111 static const char kGetWindowSize[]; | |
112 static const char kGetWindowPosition[]; | |
113 static const char kMaximizeWindow[]; | |
114 static const char kGetAvailableLogTypes[]; | |
115 static const char kGetLog[]; | |
116 static const char kGetSessionLogs[]; | |
117 | |
118 // Custom Chrome commands: | |
119 static const char kQuitAll[]; | |
120 static const char kGetSessionCapabilities[]; | |
121 static const char kIsLoading[]; | |
122 }; | |
123 | |
124 #endif // CHROME_TEST_CHROMEDRIVER_COMMAND_NAMES_H_ | |
OLD | NEW |