Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(345)

Issue 5342045: Implement window resize and move for Firefox and Ruby + Java.

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by jarib
Modified:
13 years, 10 months ago
Visibility:
Public.

Description

This adds two resources to the wire protocol: /session/:sessionId/window/:windowHandle/size /session/:sessionId/window/:windowHandle/location Both resources accept GET and POST requests to get and set the values.

Patch Set 1 #

Total comments: 39

Patch Set 2 : Addressing review comments. #

Total comments: 4

Patch Set 3 : Add parameters and return types to Window JavaDoc. #

Patch Set 4 : Fix EventFiringWindow and WindowTest copyright header. #

Patch Set 5 : Get rid the SingleTestSuite change #

Total comments: 8

Patch Set 6 : s/location/position, add @Beta annotation #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+504 lines, -1 line) Patch
M java/client/src/org/openqa/selenium/WebDriver.java View 1 2 3 4 5 2 chunks +40 lines, -0 lines 0 comments Download
M java/client/src/org/openqa/selenium/htmlunit/HtmlUnitDriver.java View 1 chunk +5 lines, -0 lines 0 comments Download
M java/client/src/org/openqa/selenium/remote/DriverCommand.java View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M java/client/src/org/openqa/selenium/remote/HttpCommandExecutor.java View 1 2 3 4 5 3 chunks +8 lines, -0 lines 0 comments Download
M java/client/src/org/openqa/selenium/remote/RemoteWebDriver.java View 1 2 3 4 5 2 chunks +52 lines, -0 lines 2 comments Download
M java/client/src/org/openqa/selenium/support/events/EventFiringWebDriver.java View 1 2 3 4 5 3 chunks +31 lines, -0 lines 0 comments Download
A java/client/test/org/openqa/selenium/WindowTest.java View 1 2 3 4 5 1 chunk +76 lines, -0 lines 0 comments Download
M javascript/atoms/window.js View 1 2 3 4 5 2 chunks +65 lines, -0 lines 0 comments Download
M javascript/firefox-driver/extension/components/dispatcher.js View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M javascript/firefox-driver/extension/components/firefoxDriver.js View 1 2 3 4 5 1 chunk +46 lines, -0 lines 0 comments Download
M rb/lib/selenium/webdriver/common.rb View 1 chunk +1 line, -0 lines 0 comments Download
M rb/lib/selenium/webdriver/common/options.rb View 1 chunk +4 lines, -0 lines 0 comments Download
A rb/lib/selenium/webdriver/common/window.rb View 1 2 3 4 5 1 chunk +54 lines, -0 lines 0 comments Download
M rb/lib/selenium/webdriver/remote/bridge.rb View 1 2 3 4 5 1 chunk +23 lines, -0 lines 0 comments Download
M rb/lib/selenium/webdriver/remote/commands.rb View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M rb/spec/integration/selenium/webdriver/target_locator_spec.rb View 1 chunk +1 line, -1 line 0 comments Download
A rb/spec/integration/selenium/webdriver/window_spec.rb View 1 2 3 4 5 1 chunk +56 lines, -0 lines 0 comments Download
M wire.py View 1 2 3 4 5 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 13
jleyba
Mostly style nits http://codereview.appspot.com/5342045/diff/1/java/client/src/org/openqa/selenium/WebDriver.java File java/client/src/org/openqa/selenium/WebDriver.java (right): http://codereview.appspot.com/5342045/diff/1/java/client/src/org/openqa/selenium/WebDriver.java#newcode235 java/client/src/org/openqa/selenium/WebDriver.java:235: Window window(); Javadoc on all public ...
13 years, 10 months ago (2011-11-05 01:52:33 UTC) #1
jarib
Thanks Jason! What's the thing to do after addressing your comments - should I create ...
13 years, 10 months ago (2011-11-05 03:04:50 UTC) #2
dawagner
http://codereview.appspot.com/5342045/diff/1/java/client/src/org/openqa/selenium/remote/RemoteWebDriver.java File java/client/src/org/openqa/selenium/remote/RemoteWebDriver.java (right): http://codereview.appspot.com/5342045/diff/1/java/client/src/org/openqa/selenium/remote/RemoteWebDriver.java#newcode577 java/client/src/org/openqa/selenium/remote/RemoteWebDriver.java:577: Response response = execute(DriverCommand.GET_WINDOW_SIZE, ImmutableMap.of("windowHandle", "current")); Line length > ...
13 years, 10 months ago (2011-11-05 13:22:48 UTC) #3
jarib
http://codereview.appspot.com/5342045/diff/1/java/client/src/org/openqa/selenium/remote/RemoteWebDriver.java File java/client/src/org/openqa/selenium/remote/RemoteWebDriver.java (right): http://codereview.appspot.com/5342045/diff/1/java/client/src/org/openqa/selenium/remote/RemoteWebDriver.java#newcode577 java/client/src/org/openqa/selenium/remote/RemoteWebDriver.java:577: Response response = execute(DriverCommand.GET_WINDOW_SIZE, ImmutableMap.of("windowHandle", "current")); On 2011/11/05 13:22:48, ...
13 years, 10 months ago (2011-11-05 13:25:58 UTC) #4
luke.semerau
http://codereview.appspot.com/5342045/diff/11001/javascript/atoms/window.js File javascript/atoms/window.js (right): http://codereview.appspot.com/5342045/diff/11001/javascript/atoms/window.js#newcode174 javascript/atoms/window.js:174: win.resizeTo(size.width, size.height); This won't work for FF7? ~ if ...
13 years, 10 months ago (2011-11-05 16:20:23 UTC) #5
jarib
http://codereview.appspot.com/5342045/diff/11001/javascript/atoms/window.js File javascript/atoms/window.js (right): http://codereview.appspot.com/5342045/diff/11001/javascript/atoms/window.js#newcode174 javascript/atoms/window.js:174: win.resizeTo(size.width, size.height); On 2011/11/05 16:20:23, luke.semerau wrote: > This ...
13 years, 10 months ago (2011-11-05 16:25:04 UTC) #6
luke.semerau
Ah, good :) I have a patch for python ready to add this too. -Luke ...
13 years, 10 months ago (2011-11-05 16:36:24 UTC) #7
dawagner
http://codereview.appspot.com/5342045/diff/11001/javascript/firefox-driver/extension/components/firefoxDriver.js File javascript/firefox-driver/extension/components/firefoxDriver.js (right): http://codereview.appspot.com/5342045/diff/11001/javascript/firefox-driver/extension/components/firefoxDriver.js#newcode1334 javascript/firefox-driver/extension/components/firefoxDriver.js:1334: // TODO(jari): could this be made into a precondition? ...
13 years, 10 months ago (2011-11-05 20:51:18 UTC) #8
jarib
http://codereview.appspot.com/5342045/diff/11001/javascript/firefox-driver/extension/components/firefoxDriver.js File javascript/firefox-driver/extension/components/firefoxDriver.js (right): http://codereview.appspot.com/5342045/diff/11001/javascript/firefox-driver/extension/components/firefoxDriver.js#newcode1334 javascript/firefox-driver/extension/components/firefoxDriver.js:1334: // TODO(jari): could this be made into a precondition? ...
13 years, 10 months ago (2011-11-05 22:02:07 UTC) #9
simonstewart
http://codereview.appspot.com/5342045/diff/20001/java/client/src/org/openqa/selenium/WebDriver.java File java/client/src/org/openqa/selenium/WebDriver.java (right): http://codereview.appspot.com/5342045/diff/20001/java/client/src/org/openqa/selenium/WebDriver.java#newcode238 java/client/src/org/openqa/selenium/WebDriver.java:238: Window window(); Annotate with @Beta please. http://codereview.appspot.com/5342045/diff/20001/java/client/src/org/openqa/selenium/WebDriver.java#newcode445 java/client/src/org/openqa/selenium/WebDriver.java:445: * ...
13 years, 10 months ago (2011-11-07 15:39:51 UTC) #10
jarib
Added @Beta, s/location/position/ http://codereview.appspot.com/5342045/diff/20001/java/client/src/org/openqa/selenium/WebDriver.java File java/client/src/org/openqa/selenium/WebDriver.java (right): http://codereview.appspot.com/5342045/diff/20001/java/client/src/org/openqa/selenium/WebDriver.java#newcode238 java/client/src/org/openqa/selenium/WebDriver.java:238: Window window(); On 2011/11/07 15:39:52, simonstewart ...
13 years, 10 months ago (2011-11-07 16:13:15 UTC) #11
simonstewart
LGTM with one small nit http://codereview.appspot.com/5342045/diff/8022/java/client/src/org/openqa/selenium/remote/RemoteWebDriver.java File java/client/src/org/openqa/selenium/remote/RemoteWebDriver.java (right): http://codereview.appspot.com/5342045/diff/8022/java/client/src/org/openqa/selenium/remote/RemoteWebDriver.java#newcode566 java/client/src/org/openqa/selenium/remote/RemoteWebDriver.java:566: public void setPosition(int x, ...
13 years, 10 months ago (2011-11-07 16:18:28 UTC) #12
jarib
13 years, 10 months ago (2011-11-07 16:34:22 UTC) #13
Committed as r14578.

http://codereview.appspot.com/5342045/diff/8022/java/client/src/org/openqa/se...
File java/client/src/org/openqa/selenium/remote/RemoteWebDriver.java (right):

http://codereview.appspot.com/5342045/diff/8022/java/client/src/org/openqa/se...
java/client/src/org/openqa/selenium/remote/RemoteWebDriver.java:566: public void
setPosition(int x, int y) {
On 2011/11/07 16:18:28, simonstewart wrote:
> Why not just merge this into the method from the API?

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b