Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7489)

Unified Diff: chrome/test/webdriver/session.h

Issue 7055004: File upload API in chromedriver (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed according to the code review Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/webdriver/session.h
diff --git a/chrome/test/webdriver/session.h b/chrome/test/webdriver/session.h
index a8b8764a285b4a4de7b61b260250b9b9490a158f..c5f7a2bffaa931a1d69ae976dee2cf8b0ce2713f 100644
--- a/chrome/test/webdriver/session.h
+++ b/chrome/test/webdriver/session.h
@@ -98,6 +98,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<std::string>& paths);
+
// Clicks the mouse at the given location using the given button.
Error* MouseMoveAndClick(const gfx::Point& location,
automation::MouseButton button);
@@ -236,6 +240,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 owns the ownership.
kkania 2011/06/07 15:12:04 owns the -> takes
nodchip 2011/06/08 02:37:19 Done.
+ 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;

Powered by Google App Engine
This is Rietveld 408576698