OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_TEST_WEBDRIVER_SESSION_H_ | 5 #ifndef CHROME_TEST_WEBDRIVER_SESSION_H_ |
6 #define CHROME_TEST_WEBDRIVER_SESSION_H_ | 6 #define CHROME_TEST_WEBDRIVER_SESSION_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // |value|. | 91 // |value|. |
92 Error* ExecuteAsyncScript(const FrameId& frame_id, | 92 Error* ExecuteAsyncScript(const FrameId& frame_id, |
93 const std::string& script, | 93 const std::string& script, |
94 const ListValue* const args, | 94 const ListValue* const args, |
95 Value** value); | 95 Value** value); |
96 | 96 |
97 // Send the given keys to the given element dictionary. This function takes | 97 // Send the given keys to the given element dictionary. This function takes |
98 // ownership of |element|. | 98 // ownership of |element|. |
99 Error* SendKeys(const WebElementId& element, const string16& keys); | 99 Error* SendKeys(const WebElementId& element, const string16& keys); |
100 | 100 |
| 101 // Sets the file paths to the file upload control under the given location. |
| 102 Error* DragAndDropFilePaths(const gfx::Point& location, |
| 103 const std::vector<std::string>& paths); |
| 104 |
101 // Clicks the mouse at the given location using the given button. | 105 // Clicks the mouse at the given location using the given button. |
102 Error* MouseMoveAndClick(const gfx::Point& location, | 106 Error* MouseMoveAndClick(const gfx::Point& location, |
103 automation::MouseButton button); | 107 automation::MouseButton button); |
104 Error* MouseMove(const gfx::Point& location); | 108 Error* MouseMove(const gfx::Point& location); |
105 Error* MouseDrag(const gfx::Point& start, const gfx::Point& end); | 109 Error* MouseDrag(const gfx::Point& start, const gfx::Point& end); |
106 Error* MouseClick(automation::MouseButton button); | 110 Error* MouseClick(automation::MouseButton button); |
107 Error* MouseButtonDown(); | 111 Error* MouseButtonDown(); |
108 Error* MouseButtonUp(); | 112 Error* MouseButtonUp(); |
109 Error* MouseDoubleClick(); | 113 Error* MouseDoubleClick(); |
110 | 114 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 bool has_alert_prompt_text_; | 328 bool has_alert_prompt_text_; |
325 | 329 |
326 DISALLOW_COPY_AND_ASSIGN(Session); | 330 DISALLOW_COPY_AND_ASSIGN(Session); |
327 }; | 331 }; |
328 | 332 |
329 } // namespace webdriver | 333 } // namespace webdriver |
330 | 334 |
331 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Session); | 335 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Session); |
332 | 336 |
333 #endif // CHROME_TEST_WEBDRIVER_SESSION_H_ | 337 #endif // CHROME_TEST_WEBDRIVER_SESSION_H_ |
OLD | NEW |