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

Issue 2125123002: [chromedriver] Add page loading strategy to capabilities (Closed)

Created:
4 years, 5 months ago by evajiang
Modified:
4 years, 4 months ago
Reviewers:
*samuong, prasadv
CC:
chromium-reviews, devtools-reviews_chromium.org, pfeldman, samuong+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[chromedriver] Add page loading strategy to capabilities Allows users to explicitly control how chromedriver waits for pending navigations. Current strategy: normal (Waits for entire page to load) Added strategy: none (No wait time) BUG= R=samuong@chromium.org Committed: https://crrev.com/48d04d73048bbb1f8901dad6df688f3f035559ed Cr-Commit-Position: refs/heads/master@{#410483}

Patch Set 1 #

Patch Set 2 : Fixed merge conflicts #

Total comments: 14

Patch Set 3 : Added method for creating nav tracker & defined constants for strategies #

Total comments: 22

Patch Set 4 : clearer naming, checks for valid strategies earlier in parsing #

Total comments: 14

Patch Set 5 : styling fixes #

Total comments: 8

Patch Set 6 : fixed unittests, renamed py tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -27 lines) Patch
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/capabilities.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/capabilities.cc View 1 2 3 4 chunks +13 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/chrome.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/chrome_desktop_impl.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/chromedriver/chrome/chrome_impl.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/chrome_impl.cc View 1 2 3 4 chunks +12 lines, -1 line 0 comments Download
M chrome/test/chromedriver/chrome/devtools_http_client.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/test/chromedriver/chrome/devtools_http_client.cc View 1 2 3 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/test/chromedriver/chrome/navigation_tracker.h View 1 2 3 chunks +6 lines, -10 lines 0 comments Download
A chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.h View 1 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.cc View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/test/chromedriver/chrome/page_load_strategy.h View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/test/chromedriver/chrome/page_load_strategy.cc View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/stub_chrome.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/stub_chrome.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/web_view_impl.h View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/test/chromedriver/chrome/web_view_impl.cc View 1 2 3 4 5 3 chunks +8 lines, -6 lines 0 comments Download
M chrome/test/chromedriver/chrome_launcher.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/chromedriver/client/chromedriver.py View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M chrome/test/chromedriver/session_commands.cc View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/test/run_py_tests.py View 1 2 3 4 5 2 chunks +33 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
evajiang
4 years, 5 months ago (2016-07-06 18:22:07 UTC) #3
evajiang
4 years, 5 months ago (2016-07-25 18:26:42 UTC) #6
samuong
https://codereview.chromium.org/2125123002/diff/20001/chrome/test/chromedriver/capabilities.cc File chrome/test/chromedriver/capabilities.cc (right): https://codereview.chromium.org/2125123002/diff/20001/chrome/test/chromedriver/capabilities.cc#newcode590 chrome/test/chromedriver/capabilities.cc:590: page_loading("normal"), normal, eager and none should be defined constants ...
4 years, 5 months ago (2016-07-25 22:44:33 UTC) #7
evajiang
4 years, 4 months ago (2016-07-26 20:48:25 UTC) #8
samuong
https://codereview.chromium.org/2125123002/diff/40001/chrome/test/chromedriver/chrome/chrome_impl.cc File chrome/test/chromedriver/chrome/chrome_impl.cc (right): https://codereview.chromium.org/2125123002/diff/40001/chrome/test/chromedriver/chrome/chrome_impl.cc#newcode133 chrome/test/chromedriver/chrome/chrome_impl.cc:133: std::string ChromeImpl::GetPageLoadStrategy() const { nit: name this page_load_strategy() https://codereview.chromium.org/2125123002/diff/40001/chrome/test/chromedriver/chrome/chrome_impl.cc#newcode141 ...
4 years, 4 months ago (2016-07-27 18:08:04 UTC) #9
evajiang
https://codereview.chromium.org/2125123002/diff/20001/chrome/test/chromedriver/capabilities.cc File chrome/test/chromedriver/capabilities.cc (right): https://codereview.chromium.org/2125123002/diff/20001/chrome/test/chromedriver/capabilities.cc#newcode590 chrome/test/chromedriver/capabilities.cc:590: page_loading("normal"), On 2016/07/25 at 22:44:33, samuong wrote: > normal, ...
4 years, 4 months ago (2016-07-28 17:15:04 UTC) #10
samuong
It's mostly nitpicking now... https://codereview.chromium.org/2125123002/diff/60001/chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.h File chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.h (right): https://codereview.chromium.org/2125123002/diff/60001/chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.h#newcode17 chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.h:17: NonBlockingNavigationTracker() : timed_out_(false) {} nit: ...
4 years, 4 months ago (2016-07-29 23:33:47 UTC) #11
evajiang
https://codereview.chromium.org/2125123002/diff/60001/chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.h File chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.h (right): https://codereview.chromium.org/2125123002/diff/60001/chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.h#newcode17 chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.h:17: NonBlockingNavigationTracker() : timed_out_(false) {} On 2016/07/29 at 23:33:45, samuong ...
4 years, 4 months ago (2016-08-01 16:35:47 UTC) #12
samuong
just a few more changes, then we're ready to land https://codereview.chromium.org/2125123002/diff/80001/chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.cc File chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.cc (right): https://codereview.chromium.org/2125123002/diff/80001/chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.cc#newcode18 ...
4 years, 4 months ago (2016-08-08 19:11:38 UTC) #13
evajiang
https://codereview.chromium.org/2125123002/diff/80001/chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.cc File chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.cc (right): https://codereview.chromium.org/2125123002/diff/80001/chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.cc#newcode18 chrome/test/chromedriver/chrome/non_blocking_navigation_tracker.cc:18: timed_out_ = timed_out; On 2016/08/08 at 19:11:38, samuong wrote: ...
4 years, 4 months ago (2016-08-08 21:58:20 UTC) #14
samuong
lgtm
4 years, 4 months ago (2016-08-08 22:01:44 UTC) #15
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/2125123002/100001
4 years, 4 months ago (2016-08-08 22:03:06 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-08 22:44:05 UTC) #18
commit-bot: I haz the power
4 years, 4 months ago (2016-08-08 22:46:02 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/48d04d73048bbb1f8901dad6df688f3f035559ed
Cr-Commit-Position: refs/heads/master@{#410483}

Powered by Google App Engine
This is Rietveld 408576698