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

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

Issue 7055004: File upload API in chromedriver (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed error handlings according to latest changes and refactored. 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.cc
diff --git a/chrome/test/webdriver/session.cc b/chrome/test/webdriver/session.cc
index 780f97012d50166cffd7c3270d1ce1fa2fcbb6f1..d38b0639813874dbe2fdbd858c8b33c87f896f60 100644
--- a/chrome/test/webdriver/session.cc
+++ b/chrome/test/webdriver/session.cc
@@ -188,6 +188,19 @@ Error* Session::SendKeys(const WebElementId& element, const string16& keys) {
return error;
}
+Error* Session::SetFilePathsToFileUploadControl(
+ const gfx::Point& location, const std::vector<std::string>& paths) {
+ Error* error = NULL;
+ RunSessionTask(NewRunnableMethod(
+ automation_.get(),
+ &Automation::SetFilePathsToFileUploadControl,
+ current_target_.window_id,
+ location,
+ paths,
+ &error));
+ return error;
+}
+
Error* Session::NavigateToURL(const std::string& url) {
Error* error = NULL;
RunSessionTask(NewRunnableMethod(
« chrome/test/webdriver/commands/webelement_commands.cc ('K') | « chrome/test/webdriver/session.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698