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 #include "chrome/test/chromedriver/command_names.h" | |
6 | |
7 const char CommandNames::kNewSession[] = "newSession"; | |
8 const char CommandNames::kStatus[] = "status"; | |
9 const char CommandNames::kClose[] = "close"; | |
10 const char CommandNames::kQuit[] = "quit"; | |
11 const char CommandNames::kGet[] = "get"; | |
12 const char CommandNames::kGoBack[] = "goBack"; | |
13 const char CommandNames::kGoForward[] = "goForward"; | |
14 const char CommandNames::kRefresh[] = "refresh"; | |
15 const char CommandNames::kAddCookie[] = "addCookie"; | |
16 const char CommandNames::kGetCookie[] = "getCookie"; | |
17 const char CommandNames::kGetCookies[] = "getCookies"; | |
18 const char CommandNames::kDeleteCookie[] = "deleteCookie"; | |
19 const char CommandNames::kDeleteAllCookies[] = "deleteAllCookies"; | |
20 const char CommandNames::kFindElement[] = "findElement"; | |
21 const char CommandNames::kFindElements[] = "findElements"; | |
22 const char CommandNames::kFindChildElement[] = "findChildElement"; | |
23 const char CommandNames::kFindChildElements[] = "findChildElements"; | |
24 const char CommandNames::kClearElement[] = "clearElement"; | |
25 const char CommandNames::kClickElement[] = "clickElement"; | |
26 const char CommandNames::kHoverOverElement[] = "hoverOverElement"; | |
27 const char CommandNames::kSendKeysToElement[] = "sendKeysToElement"; | |
28 const char CommandNames::kSendKeysToActiveElement[] = "sendKeysToActiveElement"; | |
29 const char CommandNames::kSubmitElement[] = "submitElement"; | |
30 const char CommandNames::kUploadFile[] = "uploadFile"; | |
31 const char CommandNames::kGetCurrentWindowHandle[] = "getCurrentWindowHandle"; | |
32 const char CommandNames::kGetWindowHandles[] = "getWindowHandles"; | |
33 const char CommandNames::kSwitchToWindow[] = "switchToWindow"; | |
34 const char CommandNames::kSwitchToFrame[] = "switchToFrame"; | |
35 const char CommandNames::kGetActiveElement[] = "getActiveElement"; | |
36 const char CommandNames::kGetCurrentUrl[] = "getCurrentUrl"; | |
37 const char CommandNames::kGetPageSource[] = "getPageSource"; | |
38 const char CommandNames::kGetTitle[] = "getTitle"; | |
39 const char CommandNames::kExecuteScript[] = "executeScript"; | |
40 const char CommandNames::kExecuteAsyncScript[] = "executeAsyncScript"; | |
41 const char CommandNames::kSetBrowserVisible[] = "setBrowserVisible"; | |
42 const char CommandNames::kIsBrowserVisible[] = "isBrowserVisible"; | |
43 const char CommandNames::kGetElementText[] = "getElementText"; | |
44 const char CommandNames::kGetElementValue[] = "getElementValue"; | |
45 const char CommandNames::kGetElementTagName[] = "getElementTagName"; | |
46 const char CommandNames::kDragElement[] = "dragElement"; | |
47 const char CommandNames::kIsElementSelected[] = "isElementSelected"; | |
48 const char CommandNames::kIsElementEnabled[] = "isElementEnabled"; | |
49 const char CommandNames::kIsElementDisplayed[] = "isElementDisplayed"; | |
50 const char CommandNames::kGetElementLocation[] = "getElementLocation"; | |
51 const char CommandNames::kGetElementLocationOnceScrolledIntoView[] = | |
52 "getElementLocationOnceScrolledIntoView"; | |
53 const char CommandNames::kGetElementSize[] = "getElementSize"; | |
54 const char CommandNames::kGetElementAttribute[] = "getElementAttribute"; | |
55 const char CommandNames::kGetElementValueOfCssProperty[] = | |
56 "getElementValueOfCssProperty"; | |
57 const char CommandNames::kElementEquals[] = "elementEquals"; | |
58 const char CommandNames::kScreenshot[] = "screenshot"; | |
59 const char CommandNames::kGetAlert[] = "getAlert"; | |
60 const char CommandNames::kAcceptAlert[] = "acceptAlert"; | |
61 const char CommandNames::kDismissAlert[] = "dismissAlert"; | |
62 const char CommandNames::kGetAlertText[] = "getAlertText"; | |
63 const char CommandNames::kSetAlertValue[] = "setAlertValue"; | |
64 const char CommandNames::kSetTimeout[] = "setTimeout"; | |
65 const char CommandNames::kImplicitlyWait[] = "implicitlyWait"; | |
66 const char CommandNames::kSetScriptTimeout[] = "setScriptTimeout"; | |
67 const char CommandNames::kExecuteSQL[] = "executeSQL"; | |
68 const char CommandNames::kGetLocation[] = "getLocation"; | |
69 const char CommandNames::kSetLocation[] = "setLocation"; | |
70 const char CommandNames::kGetAppCache[] = "getAppCache"; | |
71 const char CommandNames::kGetStatus[] = "getStatus"; | |
72 const char CommandNames::kClearAppCache[] = "clearAppCache"; | |
73 const char CommandNames::kIsBrowserOnline[] = "isBrowserOnline"; | |
74 const char CommandNames::kSetBrowserOnline[] = "setBrowserOnline"; | |
75 const char CommandNames::kGetLocalStorageItem[] = "getLocalStorageItem"; | |
76 const char CommandNames::kGetLocalStorageKeys[] = "getLocalStorageKeys"; | |
77 const char CommandNames::kSetLocalStorageItem[] = "setLocalStorageItem"; | |
78 const char CommandNames::kRemoveLocalStorageItem[] = "removeLocalStorageItem"; | |
79 const char CommandNames::kClearLocalStorage[] = "clearLocalStorage"; | |
80 const char CommandNames::kGetLocalStorageSize[] = "getLocalStorageSize"; | |
81 const char CommandNames::kGetSessionStorageItem[] = "getSessionStorageItem"; | |
82 const char CommandNames::kGetSessionStorageKey[] = "getSessionStorageKey"; | |
83 const char CommandNames::kSetSessionStorageItem[] = "setSessionStorageItem"; | |
84 const char CommandNames::kRemoveSessionStorageItem[] = | |
85 "removeSessionStorageItem"; | |
86 const char CommandNames::kClearSessionStorage[] = "clearSessionStorage"; | |
87 const char CommandNames::kGetSessionStorageSize[] = "getSessionStorageSize"; | |
88 const char CommandNames::kSetScreenOrientation[] = "setScreenOrientation"; | |
89 const char CommandNames::kGetScreenOrientation[] = "getScreenOrientation"; | |
90 const char CommandNames::kMouseClick[] = "mouseClick"; | |
91 const char CommandNames::kMouseDoubleClick[] = "mouseDoubleClick"; | |
92 const char CommandNames::kMouseButtonDown[] = "mouseButtonDown"; | |
93 const char CommandNames::kMouseButtonUp[] = "mouseButtonUp"; | |
94 const char CommandNames::kMouseMoveTo[] = "mouseMoveTo"; | |
95 const char CommandNames::kSendKeys[] = "sendKeys"; | |
96 const char CommandNames::kImeGetAvailableEngines[] = "imeGetAvailableEngines"; | |
97 const char CommandNames::kImeGetActiveEngine[] = "imeGetActiveEngine"; | |
98 const char CommandNames::kImeIsActivated[] = "imeIsActivated"; | |
99 const char CommandNames::kImeDeactivate[] = "imeDeactivate"; | |
100 const char CommandNames::kImeActivateEngine[] = "imeActivateEngine"; | |
101 const char CommandNames::kTouchSingleTap[] = "touchSingleTap"; | |
102 const char CommandNames::kTouchDown[] = "touchDown"; | |
103 const char CommandNames::kTouchUp[] = "touchUp"; | |
104 const char CommandNames::kTouchMove[] = "touchMove"; | |
105 const char CommandNames::kTouchScroll[] = "touchScroll"; | |
106 const char CommandNames::kTouchDoubleTap[] = "touchDoubleTap"; | |
107 const char CommandNames::kTouchLongPress[] = "touchLongPress"; | |
108 const char CommandNames::kTouchFlick[] = "touchFlick"; | |
109 const char CommandNames::kSetWindowSize[] = "setWindowSize"; | |
110 const char CommandNames::kSetWindowPosition[] = "setWindowPosition"; | |
111 const char CommandNames::kGetWindowSize[] = "getWindowSize"; | |
112 const char CommandNames::kGetWindowPosition[] = "getWindowPosition"; | |
113 const char CommandNames::kMaximizeWindow[] = "maximizeWindow"; | |
114 const char CommandNames::kGetAvailableLogTypes[] = "getAvailableLogTypes"; | |
115 const char CommandNames::kGetLog[] = "getLog"; | |
116 const char CommandNames::kGetSessionLogs[] = "getSessionLogs"; | |
117 | |
118 // Custom Chrome commands: | |
119 const char CommandNames::kQuitAll[] = "quitAll"; | |
120 const char CommandNames::kGetSessionCapabilities[] = "getSessionCapabilities"; | |
121 const char CommandNames::kIsLoading[] = "isLoading"; | |
OLD | NEW |