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

Issue 7648053: [chromedriver] Add chrome.detach option for configuring Chrome not to quit (Closed)

Created:
9 years, 4 months ago by kkania
Modified:
9 years, 4 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

[chromedriver] Add chrome.detach option for configuring Chrome not to quit when its automation client disconnects. chrome.detach is currently implemented by using a NamedProxyLauncher. We also add a new switch that accomplishes the same purpose. Also, modify pre-post command execution steps in two ways: 1) wait for loads post execution, in case pyauto issues a non-webdriver command which expects the load to be finished 2) only return a frame checking error if no alert is present BUG=87676, 93438 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97557

Patch Set 1 : ... #

Patch Set 2 : use switch and rebase #

Total comments: 1

Patch Set 3 : put in initializer #

Total comments: 4

Patch Set 4 : fail on exception #

Patch Set 5 : fix win compile issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -12 lines) Patch
M chrome/browser/automation/automation_provider.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/command.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/command.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/create_session.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/response.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/webdriver/commands/webdriver_command.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/webdriver_command.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/webdriver/test/alerts.html View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/webdriver/test/chromedriver_tests.py View 1 2 3 4 4 chunks +43 lines, -0 lines 0 comments Download
M chrome/test/webdriver/webdriver_automation.h View 1 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/test/webdriver/webdriver_automation.cc View 1 3 chunks +31 lines, -3 lines 0 comments Download
M chrome/test/webdriver/webdriver_dispatch.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/webdriver/webdriver_error.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/webdriver/webdriver_error.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/webdriver/webdriver_session.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/test/webdriver/webdriver_session.cc View 1 2 3 4 1 chunk +17 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
kkania
phajdan: chrome/*/automation hnguyen: chrome/test/webdriver
9 years, 4 months ago (2011-08-16 17:43:35 UTC) #1
Paweł Hajdan Jr.
This is racy. Please design it so that the setting is set at Chrome start-up ...
9 years, 4 months ago (2011-08-16 17:59:16 UTC) #2
kkania
Is the race you are referring to that a client could connect to Chrome and ...
9 years, 4 months ago (2011-08-16 19:57:31 UTC) #3
Paweł Hajdan Jr.
On 2011/08/16 19:57:31, kkania wrote: > Is the race you are referring to that a ...
9 years, 4 months ago (2011-08-17 18:05:56 UTC) #4
kkania
use switch now
9 years, 4 months ago (2011-08-18 18:23:55 UTC) #5
Paweł Hajdan Jr.
http://codereview.chromium.org/7648053/diff/6002/chrome/browser/automation/automation_provider.cc File chrome/browser/automation/automation_provider.cc (right): http://codereview.chromium.org/7648053/diff/6002/chrome/browser/automation/automation_provider.cc#newcode127 chrome/browser/automation/automation_provider.cc:127: if (CommandLine::ForCurrentProcess()->HasSwitch( Rather: reinitialize_on_channel_error_(CommandLine...HasSwitch in the initializer list above ...
9 years, 4 months ago (2011-08-18 22:35:42 UTC) #6
kkania
9 years, 4 months ago (2011-08-18 22:54:59 UTC) #7
Paweł Hajdan Jr.
Automation LGTM
9 years, 4 months ago (2011-08-18 23:15:16 UTC) #8
Huyen
http://codereview.chromium.org/7648053/diff/12001/chrome/test/webdriver/test/chromedriver_tests.py File chrome/test/webdriver/test/chromedriver_tests.py (right): http://codereview.chromium.org/7648053/diff/12001/chrome/test/webdriver/test/chromedriver_tests.py#newcode356 chrome/test/webdriver/test/chromedriver_tests.py:356: os.kill(pid, 0) # Would throw if process no longer ...
9 years, 4 months ago (2011-08-18 23:54:48 UTC) #9
kkania
http://codereview.chromium.org/7648053/diff/12001/chrome/test/webdriver/test/chromedriver_tests.py File chrome/test/webdriver/test/chromedriver_tests.py (right): http://codereview.chromium.org/7648053/diff/12001/chrome/test/webdriver/test/chromedriver_tests.py#newcode356 chrome/test/webdriver/test/chromedriver_tests.py:356: os.kill(pid, 0) # Would throw if process no longer ...
9 years, 4 months ago (2011-08-19 18:28:32 UTC) #10
Huyen
lgtm
9 years, 4 months ago (2011-08-19 19:30:40 UTC) #11
commit-bot: I haz the power
9 years, 4 months ago (2011-08-20 04:52:47 UTC) #12
Change committed as 97557

Powered by Google App Engine
This is Rietveld 408576698