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

Issue 7055004: File upload API in chromedriver (Closed)

Created:
9 years, 7 months ago by nodchip
Modified:
9 years, 5 months ago
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

File upload API in chromedriver Added support for file upload API in /session/:sessionId/element/:id/value. If the given element is a file upload control, the file paths are set to the file upload control using drag and drop emulation. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=90785

Patch Set 1 #

Patch Set 2 : Fixed some comments. #

Patch Set 3 : Fixed error handlings according to latest changes and refactored. #

Total comments: 34

Patch Set 4 : Fixed according to the code review #

Total comments: 22

Patch Set 5 : Fixed according to the code review. #

Patch Set 6 : Added missing fixs and an additional test. #

Total comments: 20

Patch Set 7 : Fixed according to the code review #

Total comments: 12

Patch Set 8 : Fixed according to the code review #

Patch Set 9 : Fixed a compile error. #

Total comments: 10

Patch Set 10 : Fixed according to the code review. #

Patch Set 11 : Fixed the test to check the 'files' property. #

Total comments: 14

Patch Set 12 : Fixed according to the code review. #

Total comments: 4

Patch Set 13 : Fixing broken build on Windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+481 lines, -36 lines) Patch
M chrome/browser/automation/automation_provider_observers.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/browser/automation/automation_provider_observers.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +57 lines, -0 lines 0 comments Download
M chrome/test/automation/automation_json_requests.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/test/automation/automation_json_requests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/test/webdriver/automation.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/test/webdriver/automation.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/test/webdriver/chromedriver_tests.py View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +77 lines, -2 lines 0 comments Download
M chrome/test/webdriver/commands/mouse_commands.cc View 1 2 3 4 5 1 chunk +1 line, -15 lines 0 comments Download
M chrome/test/webdriver/commands/webelement_commands.h View 1 2 3 4 5 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/webelement_commands.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +113 lines, -19 lines 0 comments Download
M chrome/test/webdriver/session.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/test/webdriver/session.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +53 lines, -0 lines 0 comments Download
A chrome/test/webdriver/upload.html View 1 2 3 4 5 6 7 8 9 1 chunk +14 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -0 lines 0 comments Download
M content/common/drag_messages.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/notification_type.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/render_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
nodchip
9 years, 7 months ago (2011-05-20 08:04:36 UTC) #1
kkania
We need some tests for this too. http://codereview.chromium.org/7055004/diff/4001/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/7055004/diff/4001/chrome/browser/automation/testing_automation_provider.cc#newcode1095 chrome/browser/automation/testing_automation_provider.cc:1095: !args->GetInteger("y", &y)) ...
9 years, 7 months ago (2011-05-23 18:43:48 UTC) #2
nodchip
http://codereview.chromium.org/7055004/diff/4001/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/7055004/diff/4001/chrome/browser/automation/testing_automation_provider.cc#newcode1095 chrome/browser/automation/testing_automation_provider.cc:1095: !args->GetInteger("y", &y)) { On 2011/05/23 18:43:49, kkania wrote: > ...
9 years, 7 months ago (2011-05-26 01:14:53 UTC) #3
kkania
You still need to add some tests http://codereview.chromium.org/7055004/diff/12001/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/7055004/diff/12001/chrome/browser/automation/testing_automation_provider.cc#newcode1113 chrome/browser/automation/testing_automation_provider.cc:1113: .SendError("path missing ...
9 years, 7 months ago (2011-05-27 20:48:47 UTC) #4
nodchip
I submitted a patch which enables fileupload tests to selenium. Issue 1725 - selenium - ...
9 years, 6 months ago (2011-05-30 04:51:45 UTC) #5
kkania
it looks like a few files did not get changed in the latest patch, although ...
9 years, 6 months ago (2011-05-31 18:50:29 UTC) #6
nodchip
Sorry for inconvenience. I had been failed to merge my temporary branch to my main ...
9 years, 6 months ago (2011-06-01 13:22:47 UTC) #7
kkania
http://codereview.chromium.org/7055004/diff/25001/chrome/browser/automation/automation_provider_observers.h File chrome/browser/automation/automation_provider_observers.h (right): http://codereview.chromium.org/7055004/diff/25001/chrome/browser/automation/automation_provider_observers.h#newcode1530 chrome/browser/automation/automation_provider_observers.h:1530: }; newline here http://codereview.chromium.org/7055004/diff/25001/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/7055004/diff/25001/chrome/browser/automation/testing_automation_provider.cc#newcode1104 chrome/browser/automation/testing_automation_provider.cc:1104: ...
9 years, 6 months ago (2011-06-01 16:16:41 UTC) #8
nodchip
http://codereview.chromium.org/7055004/diff/25001/chrome/browser/automation/automation_provider_observers.h File chrome/browser/automation/automation_provider_observers.h (right): http://codereview.chromium.org/7055004/diff/25001/chrome/browser/automation/automation_provider_observers.h#newcode1530 chrome/browser/automation/automation_provider_observers.h:1530: }; On 2011/06/01 16:16:41, kkania wrote: > newline here ...
9 years, 6 months ago (2011-06-02 07:15:53 UTC) #9
nodchip
Hi kkania, I submitted the patch set last week. Could you review it? Thanks, 2011年6月2日16:15 ...
9 years, 6 months ago (2011-06-07 02:18:23 UTC) #10
kkania
http://codereview.chromium.org/7055004/diff/9003/chrome/test/webdriver/chromedriver_tests.py File chrome/test/webdriver/chromedriver_tests.py (right): http://codereview.chromium.org/7055004/diff/9003/chrome/test/webdriver/chromedriver_tests.py#newcode621 chrome/test/webdriver/chromedriver_tests.py:621: self.assertTrue(path.endswith(os.path.basename(file.name))) do you need to close/delete the temp file? ...
9 years, 6 months ago (2011-06-07 15:12:04 UTC) #11
nodchip
http://codereview.chromium.org/7055004/diff/9003/chrome/test/webdriver/chromedriver_tests.py File chrome/test/webdriver/chromedriver_tests.py (right): http://codereview.chromium.org/7055004/diff/9003/chrome/test/webdriver/chromedriver_tests.py#newcode621 chrome/test/webdriver/chromedriver_tests.py:621: self.assertTrue(path.endswith(os.path.basename(file.name))) I think we don't need to manually close/delete ...
9 years, 6 months ago (2011-06-08 02:37:19 UTC) #12
nodchip
I'm sorry. I fixed a compile error in automation.cc. Could you review the code? On ...
9 years, 6 months ago (2011-06-09 03:08:11 UTC) #13
nodchip
Hi, Could you review my code? I'm waiting for your reply. Thanks, 2011年6月9日12:08 <hnoda@google.com>: > ...
9 years, 6 months ago (2011-06-13 03:07:13 UTC) #14
nodchip
HI, This is a reminder. Could you review my code? Thanks, 2011年6月13日12:07 Hisayori Noda <hnoda@google.com>: ...
9 years, 6 months ago (2011-06-15 01:28:09 UTC) #15
kkania
http://codereview.chromium.org/7055004/diff/39001/chrome/test/webdriver/automation.h File chrome/test/webdriver/automation.h (right): http://codereview.chromium.org/7055004/diff/39001/chrome/test/webdriver/automation.h#newcode80 chrome/test/webdriver/automation.h:80: const std::vector<std::string>& paths, one arg per line please http://codereview.chromium.org/7055004/diff/39001/chrome/test/webdriver/chromedriver_tests.py ...
9 years, 6 months ago (2011-06-15 02:33:12 UTC) #16
nodchip
http://codereview.chromium.org/7055004/diff/39001/chrome/test/webdriver/automation.h File chrome/test/webdriver/automation.h (right): http://codereview.chromium.org/7055004/diff/39001/chrome/test/webdriver/automation.h#newcode80 chrome/test/webdriver/automation.h:80: const std::vector<std::string>& paths, On 2011/06/15 02:33:12, kkania wrote: > ...
9 years, 6 months ago (2011-06-15 07:58:27 UTC) #17
kkania
http://codereview.chromium.org/7055004/diff/39001/chrome/test/webdriver/chromedriver_tests.py File chrome/test/webdriver/chromedriver_tests.py (right): http://codereview.chromium.org/7055004/diff/39001/chrome/test/webdriver/chromedriver_tests.py#newcode640 chrome/test/webdriver/chromedriver_tests.py:640: self.assertTrue(os.path.basename(path) in filenames) 'files' is actually a property, not ...
9 years, 6 months ago (2011-06-15 16:53:04 UTC) #18
nodchip
http://codereview.chromium.org/7055004/diff/39001/chrome/test/webdriver/chromedriver_tests.py File chrome/test/webdriver/chromedriver_tests.py (right): http://codereview.chromium.org/7055004/diff/39001/chrome/test/webdriver/chromedriver_tests.py#newcode640 chrome/test/webdriver/chromedriver_tests.py:640: self.assertTrue(os.path.basename(path) in filenames) On 2011/06/15 16:53:04, kkania wrote: > ...
9 years, 6 months ago (2011-06-16 04:49:59 UTC) #19
kkania
LGTM after changes and changing you description to BUG=none, TEST=none http://codereview.chromium.org/7055004/diff/47001/chrome/test/webdriver/chromedriver_tests.py File chrome/test/webdriver/chromedriver_tests.py (right): http://codereview.chromium.org/7055004/diff/47001/chrome/test/webdriver/chromedriver_tests.py#newcode655 ...
9 years, 6 months ago (2011-06-16 15:48:59 UTC) #20
nodchip
http://codereview.chromium.org/7055004/diff/47001/chrome/test/webdriver/chromedriver_tests.py File chrome/test/webdriver/chromedriver_tests.py (right): http://codereview.chromium.org/7055004/diff/47001/chrome/test/webdriver/chromedriver_tests.py#newcode655 chrome/test/webdriver/chromedriver_tests.py:655: files = list() On 2011/06/16 15:48:59, kkania wrote: > ...
9 years, 6 months ago (2011-06-27 04:05:53 UTC) #21
nodchip
I'm very sorry for late response. I had been forgotten to publish the comments. 2011年6月27日13:05 ...
9 years, 6 months ago (2011-06-27 04:22:57 UTC) #22
commit-bot: I haz the power
Presubmit check for 7055004-49005 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 6 months ago (2011-06-27 22:18:49 UTC) #23
kkania
adding jam for content/
9 years, 6 months ago (2011-06-27 23:16:08 UTC) #24
jam
content lgtm
9 years, 6 months ago (2011-06-27 23:36:30 UTC) #25
kkania
http://codereview.chromium.org/7055004/diff/49005/chrome/test/webdriver/commands/webelement_commands.cc File chrome/test/webdriver/commands/webelement_commands.cc (right): http://codereview.chromium.org/7055004/diff/49005/chrome/test/webdriver/commands/webelement_commands.cc#newcode586 chrome/test/webdriver/commands/webelement_commands.cc:586: paths.push_back(path); whoops, this won't work because path is a ...
9 years, 6 months ago (2011-06-28 00:58:38 UTC) #26
commit-bot: I haz the power
Try job failure for 7055004-49005 (retry) on win for step "compile" (clobber build). It's a ...
9 years, 6 months ago (2011-06-28 01:25:23 UTC) #27
nodchip
A member of Tokyo Chrome team (haraken@) confirmed that he can build successfully. http://codereview.chromium.org/7055004/diff/49005/chrome/test/webdriver/commands/webelement_commands.cc File ...
9 years, 6 months ago (2011-06-28 02:30:49 UTC) #28
commit-bot: I haz the power
9 years, 5 months ago (2011-06-28 17:12:00 UTC) #29
Change committed as 90785

Powered by Google App Engine
This is Rietveld 408576698