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

Issue 6507015: Implement the target locator commands for ChromeDriver. (Closed)

Created:
9 years, 10 months ago by kkania
Modified:
7 years, 9 months ago
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Implement the target locator commands for ChromeDriver. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75279

Patch Set 1 #

Patch Set 2 : .. #

Patch Set 3 : ... #

Total comments: 12

Patch Set 4 : address Pawel's concerns #

Total comments: 6

Patch Set 5 : address Jason's concerns #

Total comments: 1

Patch Set 6 : use bool success instead of handle != 0 #

Total comments: 4

Patch Set 7 : ... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+792 lines, -143 lines) Patch
M chrome/browser/automation/testing_automation_provider.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/automation_messages_internal.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/automation/tab_proxy.h View 1 2 3 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/test/automation/tab_proxy.cc View 1 2 3 4 5 2 chunks +24 lines, -0 lines 0 comments Download
M chrome/test/webdriver/WEBDRIVER_TESTS View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M chrome/test/webdriver/automation.h View 1 2 3 4 5 6 3 chunks +40 lines, -17 lines 0 comments Download
M chrome/test/webdriver/automation.cc View 1 2 3 4 5 6 4 chunks +173 lines, -36 lines 0 comments Download
M chrome/test/webdriver/commands/command.h View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/test/webdriver/commands/command.cc View 1 2 3 4 5 6 2 chunks +7 lines, -1 line 0 comments Download
M chrome/test/webdriver/commands/create_session.cc View 1 2 3 4 5 6 1 chunk +5 lines, -13 lines 0 comments Download
M chrome/test/webdriver/commands/session_with_id.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/webdriver/commands/target_locator_commands.h View 1 chunk +84 lines, -0 lines 0 comments Download
A chrome/test/webdriver/commands/target_locator_commands.cc View 1 chunk +133 lines, -0 lines 0 comments Download
M chrome/test/webdriver/server.cc View 1 2 3 4 5 6 2 chunks +15 lines, -10 lines 0 comments Download
M chrome/test/webdriver/session.h View 1 2 3 4 5 6 6 chunks +48 lines, -13 lines 0 comments Download
M chrome/test/webdriver/session.cc View 1 2 3 4 5 6 22 chunks +207 lines, -20 lines 0 comments Download
M chrome/test/webdriver/session_manager.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/webdriver/session_manager.cc View 1 2 2 chunks +10 lines, -27 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
kkania
9 years, 10 months ago (2011-02-12 02:54:05 UTC) #1
Paweł Hajdan Jr.
Drive-by with testing-related comments. Please fix them and let me do another review before committing. ...
9 years, 10 months ago (2011-02-14 09:29:43 UTC) #2
kkania
No actual code changes yet. Just wanted to respond to your comments as quick as ...
9 years, 10 months ago (2011-02-14 17:42:12 UTC) #3
kkania
ok, I went ahead and did what I thought best in response to Pawel's comments. ...
9 years, 10 months ago (2011-02-14 19:33:35 UTC) #4
Jason Leyba
I'm not sure I understand the necessity of the changes to Session/SessionManager relationship. These changes ...
9 years, 10 months ago (2011-02-14 21:00:23 UTC) #5
kkania
The Session now manages its own lifetime. Added comments about this in several places. http://codereview.chromium.org/6507015/diff/10003/chrome/test/webdriver/automation.cc ...
9 years, 10 months ago (2011-02-14 22:10:09 UTC) #6
Paweł Hajdan Jr.
This is better. Just wondering... how about identifying a tab by a pair (browser_num, tab_num) ...
9 years, 10 months ago (2011-02-15 08:50:14 UTC) #7
kkania
No code changes, just replying to Pawel's idea. It is possible to identify a tab ...
9 years, 10 months ago (2011-02-15 17:34:56 UTC) #8
kkania
9 years, 10 months ago (2011-02-15 17:53:28 UTC) #9
Jason Leyba
LGTM http://codereview.chromium.org/6507015/diff/21002/chrome/test/webdriver/automation.cc File chrome/test/webdriver/automation.cc (right): http://codereview.chromium.org/6507015/diff/21002/chrome/test/webdriver/automation.cc#newcode177 chrome/test/webdriver/automation.cc:177: TabIdMap tab_id_map; Move this declaration down after GetBrowserWindowCount. ...
9 years, 10 months ago (2011-02-15 23:59:26 UTC) #10
Paweł Hajdan Jr.
Code I commented in the drive-by LGTM. Thank you.
9 years, 10 months ago (2011-02-16 17:36:24 UTC) #11
kkania
7 years, 9 months ago (2013-02-28 21:49:38 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/6507015/diff/21002/chrome/test/webdriver/auto...
File chrome/test/webdriver/automation.cc (right):

https://codereview.chromium.org/6507015/diff/21002/chrome/test/webdriver/auto...
chrome/test/webdriver/automation.cc:177: TabIdMap tab_id_map;
On 2011/02/15 23:59:26, Jason Leyba wrote:
> Move this declaration down after GetBrowserWindowCount.

Done.

https://codereview.chromium.org/6507015/diff/21002/chrome/test/webdriver/sess...
File chrome/test/webdriver/session.cc (right):

https://codereview.chromium.org/6507015/diff/21002/chrome/test/webdriver/sess...
chrome/test/webdriver/session.cc:345: if (window_ids.size() == 1u)
On 2011/02/15 23:59:26, Jason Leyba wrote:
> Closing a window will fire its unload event. A page could (although its
> unlikely) have an unload listener that opens a new window.  In this situation,
> you would terminate the session even though there is still a window open.
> 
> It's slower, but you really should call GetWindowIds again before terminating
> the session.

good point, done

Powered by Google App Engine
This is Rietveld 408576698