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

Issue 2776313003: Update ChromeDriver to accept W3C format InitSession (Closed)

Created:
3 years, 8 months ago by johnchen
Modified:
3 years, 8 months ago
Reviewers:
samuong
CC:
chromium-reviews, samuong+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Update ChromeDriver to accept W3C format InitSession W3C spec on WebDriver uses alwaysMatch and firstMatch under capabilities to specify required and desired capabilities. (See https://w3c.github.io/webdriver/webdriver-spec.html#processing-capabilities for details.) This CL is the first step towards making ChromeDriver compliant to this spec. It adds support for capabilities.alwaysMatch, and removes the existing experimental chromeOptions.w3c flag. Support for capabilities.firstMatch will be added in the near future. BUG=chromedriver:1740 Review-Url: https://codereview.chromium.org/2776313003 Cr-Commit-Position: refs/heads/master@{#460451} Committed: https://chromium.googlesource.com/chromium/src/+/1c59cb32b65444780200c5147fe3d53d4b03ac37

Patch Set 1 #

Total comments: 3

Patch Set 2 : Require chromeOptions.w3c to turn on w3c mode #

Total comments: 2

Patch Set 3 : Fix comment #

Patch Set 4 : Disallow using W3C format without setting W3C option flag #

Total comments: 5

Patch Set 5 : Update exception type, code formatting, and comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -19 lines) Patch
M chrome/test/chromedriver/client/chromedriver.py View 1 1 chunk +6 lines, -8 lines 0 comments Download
M chrome/test/chromedriver/session_commands.cc View 1 2 3 4 1 chunk +13 lines, -5 lines 0 comments Download
M chrome/test/chromedriver/test/run_py_tests.py View 1 2 3 4 1 chunk +7 lines, -6 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
johnchen
3 years, 8 months ago (2017-03-28 21:12:49 UTC) #2
samuong
Could you please file a tracking bug at https://bugs.chromium.org/p/chromedriver/issues/entry, and change the BUG= line in ...
3 years, 8 months ago (2017-03-28 21:30:00 UTC) #3
johnchen
On 2017/03/28 21:30:00, samuong wrote: > Could you please file a tracking bug at > ...
3 years, 8 months ago (2017-03-28 22:35:41 UTC) #5
samuong
https://codereview.chromium.org/2776313003/diff/20001/chrome/test/chromedriver/session_commands.cc File chrome/test/chromedriver/session_commands.cc (right): https://codereview.chromium.org/2776313003/diff/20001/chrome/test/chromedriver/session_commands.cc#newcode184 chrome/test/chromedriver/session_commands.cc:184: // TBD: Handle capabilities.firstMatch. s/TBD/TODO(johnchen)/ https://codereview.chromium.org/2776313003/diff/20001/chrome/test/chromedriver/session_commands.cc#newcode188 chrome/test/chromedriver/session_commands.cc:188: !params.GetDictionary("capabilities.desiredCapabilities", &desired_caps)) ...
3 years, 8 months ago (2017-03-28 23:02:48 UTC) #6
johnchen
On 2017/03/28 23:02:48, samuong wrote: > https://codereview.chromium.org/2776313003/diff/20001/chrome/test/chromedriver/session_commands.cc > File chrome/test/chromedriver/session_commands.cc (right): > > https://codereview.chromium.org/2776313003/diff/20001/chrome/test/chromedriver/session_commands.cc#newcode184 > ...
3 years, 8 months ago (2017-03-28 23:11:57 UTC) #7
johnchen
Per offline discussion with samuong, we decided to disallow using capabilities.alwaysMatch or capabilities.desiredCapabilities without setting ...
3 years, 8 months ago (2017-03-29 00:32:21 UTC) #8
samuong
lgtm with nits https://codereview.chromium.org/2776313003/diff/60001/chrome/test/chromedriver/session_commands.cc File chrome/test/chromedriver/session_commands.cc (right): https://codereview.chromium.org/2776313003/diff/60001/chrome/test/chromedriver/session_commands.cc#newcode183 chrome/test/chromedriver/session_commands.cc:183: // TODO(johnchen): Handle capabilities.firstMatch. When you ...
3 years, 8 months ago (2017-03-29 17:07:48 UTC) #9
johnchen
Made suggested changes in Patch Set 5.
3 years, 8 months ago (2017-03-29 17:42:12 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2776313003/80001
3 years, 8 months ago (2017-03-29 17:43:04 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 17:59:09 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/1c59cb32b65444780200c5147fe3...

Powered by Google App Engine
This is Rietveld 408576698