| Index: chrome/test/webdriver/session.h
|
| diff --git a/chrome/test/webdriver/session.h b/chrome/test/webdriver/session.h
|
| index a5123c790cb281cf21c207f43b68584a318a189e..820faa088debf0de35cea92c0cabfaec6922dfc1 100644
|
| --- a/chrome/test/webdriver/session.h
|
| +++ b/chrome/test/webdriver/session.h
|
| @@ -9,6 +9,7 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| +#include "base/file_path.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/string16.h"
|
| #include "base/threading/thread.h"
|
| @@ -98,6 +99,10 @@ class Session {
|
| // ownership of |element|.
|
| Error* SendKeys(const WebElementId& element, const string16& keys);
|
|
|
| + // Sets the file paths to the file upload control under the given location.
|
| + Error* DragAndDropFilePaths(const gfx::Point& location,
|
| + const std::vector<FilePath::StringType>& paths);
|
| +
|
| // Clicks the mouse at the given location using the given button.
|
| Error* MouseMoveAndClick(const gfx::Point& location,
|
| automation::MouseButton button);
|
| @@ -236,6 +241,16 @@ class Session {
|
| // Waits for all tabs to stop loading. Returns true on success.
|
| Error* WaitForAllTabsToStopLoading();
|
|
|
| + // Gets the attribute of the given element. If there are no errors, the
|
| + // function sets |value| and the caller takes ownership.
|
| + Error* GetAttribute(const WebElementId& element, const std::string& key,
|
| + Value** value);
|
| +
|
| + // Gets a clickable location of the given element. It will be the center
|
| + // location of the element.
|
| + Error* GetClickableLocation(const WebElementId& element,
|
| + gfx::Point* location);
|
| +
|
| const std::string& id() const;
|
|
|
| const FrameId& current_target() const;
|
|
|