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

Issue 10384023: Determine the element location and click synchronously on the renderer. (Closed)

Created:
8 years, 7 months ago by kkania
Modified:
8 years, 7 months ago
Reviewers:
craigdh, dennis_jeffrey
CC:
chromium-reviews, robertshield, brettw-cc_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

[chromedriver] Determine the element location and click synchronously in the renderer. This is only the browser-side implementation. In this patch we send some scripts from the client which the renderer evaluates to determine where to move or click the mouse. I tried to keep the renderer code as small and as simple as possible. I plan on eventually removing the script-based location finding in favor of some scrollIntoView-like method in WebKit. Currently scrollIntoView does not work. See http://code.google.com/p/chromium/issues/detail?id=73953. BUG=chromedriver:22, chromedriver:36, chromedriver:44 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=138479

Patch Set 1 : . #

Total comments: 20

Patch Set 2 : . #

Total comments: 5

Patch Set 3 : . #

Patch Set 4 : rebase #

Patch Set 5 : small fix #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+642 lines, -4 lines) Patch
A chrome/browser/automation/automation_misc_browsertest.cc View 1 1 chunk +108 lines, -0 lines 0 comments Download
M chrome/browser/automation/automation_provider_observers.h View 1 2 3 4 3 chunks +55 lines, -0 lines 0 comments Download
M chrome/browser/automation/automation_provider_observers.cc View 1 2 3 4 5 2 chunks +67 lines, -0 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 3 chunks +70 lines, -3 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/automation_events.h View 1 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/common/automation_events.cc View 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/common/automation_messages.h View 1 2 3 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/common/automation_messages.cc View 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/common/automation_messages_internal.h View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/renderer/automation/automation_renderer_helper.h View 3 chunks +25 lines, -0 lines 0 comments Download
M chrome/renderer/automation/automation_renderer_helper.cc View 1 2 3 4 4 chunks +138 lines, -1 line 0 comments Download
M chrome/renderer/automation/automation_renderer_helper_browsertest.cc View 2 chunks +44 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
kkania
8 years, 7 months ago (2012-05-06 07:36:52 UTC) #1
dennis_jeffrey
http://codereview.chromium.org/10384023/diff/2002/chrome/browser/automation/automation_provider_observers.cc File chrome/browser/automation/automation_provider_observers.cc (right): http://codereview.chromium.org/10384023/diff/2002/chrome/browser/automation/automation_provider_observers.cc#newcode1923 chrome/browser/automation/automation_provider_observers.cc:1923: SendMessage(true, automation::Error()); To make sure I understand correctly: if ...
8 years, 7 months ago (2012-05-08 19:18:48 UTC) #2
craigdh
http://codereview.chromium.org/10384023/diff/2002/chrome/browser/automation/automation_provider_observers.h File chrome/browser/automation/automation_provider_observers.h (right): http://codereview.chromium.org/10384023/diff/2002/chrome/browser/automation/automation_provider_observers.h#newcode1340 chrome/browser/automation/automation_provider_observers.h:1340: virtual void Observe(int type, Why are the three preceding ...
8 years, 7 months ago (2012-05-08 21:18:40 UTC) #3
craigdh
http://codereview.chromium.org/10384023/diff/2002/chrome/browser/automation/automation_provider_observers.h File chrome/browser/automation/automation_provider_observers.h (right): http://codereview.chromium.org/10384023/diff/2002/chrome/browser/automation/automation_provider_observers.h#newcode1345 chrome/browser/automation/automation_provider_observers.h:1345: void SendMessage(bool success, const automation::Error& error); On 2012/05/08 21:18:40, ...
8 years, 7 months ago (2012-05-08 21:21:45 UTC) #4
kkania
Addressed comments. Also changed from using AutomationTabHelper to using AutomationMouseEventProcessor, which gets rid of a ...
8 years, 7 months ago (2012-05-09 18:19:59 UTC) #5
dennis_jeffrey
LGTM with a couple nits. http://codereview.chromium.org/10384023/diff/19/chrome/browser/automation/automation_provider_observers.cc File chrome/browser/automation/automation_provider_observers.cc (right): http://codereview.chromium.org/10384023/diff/19/chrome/browser/automation/automation_provider_observers.cc#newcode1933 chrome/browser/automation/automation_provider_observers.cc:1933: } no need for ...
8 years, 7 months ago (2012-05-09 19:05:36 UTC) #6
kkania
http://codereview.chromium.org/10384023/diff/19/chrome/browser/automation/automation_provider_observers.cc File chrome/browser/automation/automation_provider_observers.cc (right): http://codereview.chromium.org/10384023/diff/19/chrome/browser/automation/automation_provider_observers.cc#newcode1933 chrome/browser/automation/automation_provider_observers.cc:1933: } On 2012/05/09 19:05:36, dennis_jeffrey wrote: > no need ...
8 years, 7 months ago (2012-05-09 19:11:50 UTC) #7
dennis_jeffrey
http://codereview.chromium.org/10384023/diff/19/chrome/browser/automation/automation_provider_observers.cc File chrome/browser/automation/automation_provider_observers.cc (right): http://codereview.chromium.org/10384023/diff/19/chrome/browser/automation/automation_provider_observers.cc#newcode1933 chrome/browser/automation/automation_provider_observers.cc:1933: } On 2012/05/09 19:11:50, kkania wrote: > On 2012/05/09 ...
8 years, 7 months ago (2012-05-09 19:12:49 UTC) #8
kkania
On 2012/05/09 19:12:49, dennis_jeffrey wrote: > http://codereview.chromium.org/10384023/diff/19/chrome/browser/automation/automation_provider_observers.cc > File chrome/browser/automation/automation_provider_observers.cc (right): > > http://codereview.chromium.org/10384023/diff/19/chrome/browser/automation/automation_provider_observers.cc#newcode1933 > ...
8 years, 7 months ago (2012-05-09 21:15:31 UTC) #9
craigdh
lgtm (sorry, I was OOO yesterday)
8 years, 7 months ago (2012-05-10 15:49:13 UTC) #10
kkania
On 2012/05/10 15:49:13, craigdh wrote: > lgtm (sorry, I was OOO yesterday) No worries. Thanks
8 years, 7 months ago (2012-05-10 15:54:39 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkania@chromium.org/10384023/11007
8 years, 7 months ago (2012-05-17 20:10:37 UTC) #12
commit-bot: I haz the power
Try job failure for 10384023-11007 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 7 months ago (2012-05-17 20:59:21 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkania@chromium.org/10384023/22001
8 years, 7 months ago (2012-05-22 15:57:28 UTC) #14
commit-bot: I haz the power
Try job failure for 10384023-22001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-22 17:50:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkania@chromium.org/10384023/22001
8 years, 7 months ago (2012-05-23 01:18:41 UTC) #16
commit-bot: I haz the power
8 years, 7 months ago (2012-05-23 05:26:41 UTC) #17
Try job failure for 10384023-22001 (retry) on win_rel for step
"sync_unit_tests".
It's a second try, previously, step "sync_unit_tests" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698