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

Issue 1827003004: [Chromedriver] Chromedriver should handle unexpected alert automatically. (Closed)

Created:
4 years, 9 months ago by gmanikpure
Modified:
4 years ago
Reviewers:
samuong
CC:
chromium-reviews, 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] Chromedriver should handle unexpected alert automatically. Chrome currently leaves the alert around which causes subsequent commands to fail. https://buganizer.corp.google.com/u/0/issues/6507465#comment12 BUG=chromedriver:877 Committed: https://crrev.com/2c6f4026ae8b74c33dacfb2a7512db813b214833 Cr-Commit-Position: refs/heads/master@{#434696}

Patch Set 1 #

Total comments: 4

Patch Set 2 : fixed nits #

Patch Set 3 : close the dialog depending on 'unexpectedAlertBehaviour' value #

Patch Set 4 : fix nits & remove obsolete py test #

Patch Set 5 : New modifications #

Total comments: 15

Patch Set 6 : make ignore value as default & fix nits. #

Total comments: 16

Patch Set 7 : fix nits, optimize, change arg of CreateCapabilities() #

Patch Set 8 : fix some more nits #

Patch Set 9 : remove getter, use variable directly. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -13 lines) Patch
M chrome/test/chromedriver/capabilities.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/capabilities.cc View 1 2 3 4 5 6 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/client/chromedriver.py View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download
M chrome/test/chromedriver/session.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/session_commands.cc View 1 2 3 4 5 6 7 8 5 chunks +14 lines, -8 lines 0 comments Download
M chrome/test/chromedriver/test/run_py_tests.py View 1 2 3 4 5 6 7 5 chunks +19 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/test/test_expectations View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M chrome/test/chromedriver/window_commands.cc View 1 2 3 4 5 6 7 8 1 chunk +15 lines, -3 lines 0 comments Download

Messages

Total messages: 35 (12 generated)
gmanikpure
Hi Sam, this CL contains fix for comment #12 of bugnaizer issue https://buganizer.corp.google.com/u/0/issues/6507465#comment12 It dismisses ...
4 years, 9 months ago (2016-03-25 17:35:50 UTC) #2
samuong
lgtm with nits nit: add a space between "unexpected" and "alert" in the title. https://codereview.chromium.org/1827003004/diff/1/chrome/test/chromedriver/window_commands.cc ...
4 years, 8 months ago (2016-03-30 17:22:56 UTC) #3
gmanikpure
Thanks Sam, Fixed the nits, will run presubmit tonight before committing the CL. https://codereview.chromium.org/1827003004/diff/1/chrome/test/chromedriver/window_commands.cc File ...
4 years, 8 months ago (2016-04-01 16:54:07 UTC) #6
samuong
On 2016/04/01 16:54:07, gmanikpure wrote: > Thanks Sam, > Fixed the nits, will run presubmit ...
4 years, 8 months ago (2016-04-06 21:41:25 UTC) #7
gmanikpure
Hi Sam, Please take a look.Thanks
4 years, 5 months ago (2016-07-19 19:29:46 UTC) #8
gmanikpure
Sam, I uploaded new patch with more modifications as I felt patch4 is not implemented ...
4 years, 1 month ago (2016-10-27 00:57:23 UTC) #9
samuong
https://codereview.chromium.org/1827003004/diff/80001/chrome/test/chromedriver/capabilities.cc File chrome/test/chromedriver/capabilities.cc (right): https://codereview.chromium.org/1827003004/diff/80001/chrome/test/chromedriver/capabilities.cc#newcode616 chrome/test/chromedriver/capabilities.cc:616: unexpected_alert_behaviour(""), should this be the empty string, or "ignore"? ...
4 years, 1 month ago (2016-11-02 22:48:48 UTC) #10
gmanikpure
https://codereview.chromium.org/1827003004/diff/80001/chrome/test/chromedriver/capabilities.cc File chrome/test/chromedriver/capabilities.cc (right): https://codereview.chromium.org/1827003004/diff/80001/chrome/test/chromedriver/capabilities.cc#newcode616 chrome/test/chromedriver/capabilities.cc:616: unexpected_alert_behaviour(""), On 2016/11/02 22:48:48, samuong wrote: > should this ...
4 years, 1 month ago (2016-11-04 00:23:25 UTC) #12
gmanikpure
Ping
4 years, 1 month ago (2016-11-18 23:57:06 UTC) #13
samuong
https://codereview.chromium.org/1827003004/diff/100001/chrome/test/chromedriver/session.cc File chrome/test/chromedriver/session.cc (right): https://codereview.chromium.org/1827003004/diff/100001/chrome/test/chromedriver/session.cc#newcode66 chrome/test/chromedriver/session.cc:66: if (unexpected_alert_behaviour.empty()) is it possible for this to ever ...
4 years ago (2016-11-22 19:52:17 UTC) #14
gmanikpure
https://codereview.chromium.org/1827003004/diff/80001/chrome/test/chromedriver/test/run_py_tests.py File chrome/test/chromedriver/test/run_py_tests.py (right): https://codereview.chromium.org/1827003004/diff/80001/chrome/test/chromedriver/test/run_py_tests.py#newcode1675 chrome/test/chromedriver/test/run_py_tests.py:1675: self.WaitForCondition(lambda: driver.IsAlertOpen()) On 2016/11/04 00:23:24, gmanikpure wrote: > On ...
4 years ago (2016-11-23 18:34:26 UTC) #15
samuong
lgtm, with two nits https://codereview.chromium.org/1827003004/diff/80001/chrome/test/chromedriver/test/run_py_tests.py File chrome/test/chromedriver/test/run_py_tests.py (right): https://codereview.chromium.org/1827003004/diff/80001/chrome/test/chromedriver/test/run_py_tests.py#newcode1675 chrome/test/chromedriver/test/run_py_tests.py:1675: self.WaitForCondition(lambda: driver.IsAlertOpen()) On 2016/11/23 18:34:25, ...
4 years ago (2016-11-23 21:28:02 UTC) #16
gmanikpure
https://codereview.chromium.org/1827003004/diff/80001/chrome/test/chromedriver/test/run_py_tests.py File chrome/test/chromedriver/test/run_py_tests.py (right): https://codereview.chromium.org/1827003004/diff/80001/chrome/test/chromedriver/test/run_py_tests.py#newcode1675 chrome/test/chromedriver/test/run_py_tests.py:1675: self.WaitForCondition(lambda: driver.IsAlertOpen()) On 2016/11/23 21:28:01, samuong wrote: > On ...
4 years ago (2016-11-23 22:04:10 UTC) #17
samuong
https://codereview.chromium.org/1827003004/diff/100001/chrome/test/chromedriver/session.cc File chrome/test/chromedriver/session.cc (right): https://codereview.chromium.org/1827003004/diff/100001/chrome/test/chromedriver/session.cc#newcode66 chrome/test/chromedriver/session.cc:66: if (unexpected_alert_behaviour.empty()) On 2016/11/23 22:04:10, gmanikpure wrote: > On ...
4 years ago (2016-11-23 22:11:01 UTC) #18
gmanikpure
https://codereview.chromium.org/1827003004/diff/100001/chrome/test/chromedriver/session.cc File chrome/test/chromedriver/session.cc (right): https://codereview.chromium.org/1827003004/diff/100001/chrome/test/chromedriver/session.cc#newcode66 chrome/test/chromedriver/session.cc:66: if (unexpected_alert_behaviour.empty()) On 2016/11/23 22:11:00, samuong wrote: > On ...
4 years ago (2016-11-23 22:24:31 UTC) #19
samuong
still lgtm, thanks
4 years ago (2016-11-23 22:30:05 UTC) #20
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/1827003004/160001
4 years ago (2016-11-23 22:32:29 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: blimp_linux_dbg on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) cast_shell_linux on ...
4 years ago (2016-11-24 00:35:26 UTC) #24
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/1827003004/160001
4 years ago (2016-11-24 00:39:48 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_daisy_chromium_compile_only_ng on ...
4 years ago (2016-11-24 02:41:08 UTC) #28
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/1827003004/160001
4 years ago (2016-11-28 18:08:04 UTC) #30
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years ago (2016-11-28 18:23:56 UTC) #33
commit-bot: I haz the power
4 years ago (2016-11-28 18:27:50 UTC) #35
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/2c6f4026ae8b74c33dacfb2a7512db813b214833
Cr-Commit-Position: refs/heads/master@{#434696}

Powered by Google App Engine
This is Rietveld 408576698