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

Issue 873: Dom Navigation for htmlunit and firefox driver (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 8 months ago by jiayao
Modified:
15 years, 5 months ago
Reviewers:
Simon Stewart
Base URL:
http://webdriver.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : Made the proposed changes #

Patch Set 3 : Renamed Elementfinder to SearchContext and moved it down to be implemented by concrete drivers #

Patch Set 4 : Minor variable name change #

Patch Set 5 : Added By.findElements(WebDriver) back in for backward compatibility, but deprecated it #

Unified diffs Side-by-side diffs Delta from patch set Stats (+511 lines, -42 lines) Patch
common/src/java/com/googlecode/webdriver/By.java View 1 2 3 4 5 chunks +51 lines, -28 lines 0 comments Download
common/src/java/com/googlecode/webdriver/SearchContext.java View 1 chunk +24 lines, -0 lines 0 comments Download
common/src/java/com/googlecode/webdriver/WebElement.java View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
common/src/web/nestedElements.html View 1 1 chunk +148 lines, -0 lines 0 comments Download
common/test/java/com/googlecode/webdriver/AbstractDriverTestCase.java View 1 2 chunks +2 lines, -0 lines 0 comments Download
firefox/src/extension/components/utils.js View 1 1 chunk +13 lines, -0 lines 0 comments Download
firefox/src/extension/components/wrappedElement.js View 1 1 chunk +63 lines, -0 lines 0 comments Download
firefox/src/java/com/googlecode/webdriver/firefox/FirefoxDriver.java View 3 chunks +2 lines, -2 lines 0 comments Download
firefox/src/java/com/googlecode/webdriver/firefox/FirefoxWebElement.java View 1 2 3 chunks +79 lines, -1 line 0 comments Download
htmlunit/src/java/com/googlecode/webdriver/htmlunit/HtmlUnitDriver.java View 2 chunks +3 lines, -1 line 0 comments Download
htmlunit/src/java/com/googlecode/webdriver/htmlunit/HtmlUnitWebElement.java View 1 2 2 chunks +75 lines, -1 line 0 comments Download
jobbie/src/java/com/googlecode/webdriver/ie/InternetExplorerDriver.java View 2 chunks +3 lines, -1 line 0 comments Download
jobbie/src/java/com/googlecode/webdriver/ie/InternetExplorerElement.java View 1 2 chunks +10 lines, -0 lines 0 comments Download
safari/src/java/com/googlecode/webdriver/safari/SafariDriver.java View 2 chunks +3 lines, -1 line 0 comments Download
safari/src/java/com/googlecode/webdriver/safari/SafariWebElement.java View 1 2 chunks +9 lines, -0 lines 0 comments Download
support/src/java/com/googlecode/webdriver/support/ByIdOrName.java View 1 2 2 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 7
jiayao
Just trying out this code review system by Guido :)
16 years, 8 months ago (2008-05-07 22:20:48 UTC) #1
Simon Stewart
My essential point is that there shouldn't be a need for the "findChildElement" methods because ...
16 years, 8 months ago (2008-05-08 11:02:15 UTC) #2
jiayao
Thanks Simon, I have replied you comments and will be working the proposed changes tomorrow. ...
16 years, 8 months ago (2008-05-08 20:21:57 UTC) #3
Simon Stewart
http://codereview.appspot.com/873/diff/1/2 File firefox/src/java/com/googlecode/webdriver/firefox/FirefoxWebElement.java (right): http://codereview.appspot.com/873/diff/1/2#newcode187 Line 187: return findElementByXPath("*[@id = '" + id + "']"); ...
16 years, 8 months ago (2008-05-08 21:07:37 UTC) #4
jiayao
Hey Simon, I've made the changes proposed. Could you have another look?
16 years, 8 months ago (2008-05-09 13:36:40 UTC) #5
Simon Stewart
The ElementFinder doesn't appear to be included in the svn diff. Hmmm.... Thinking about it, ...
16 years, 8 months ago (2008-05-09 14:17:02 UTC) #6
jiayao
16 years, 8 months ago (2008-05-09 15:38:12 UTC) #7
Hi Simon,

As we discussed, I have moved SearchContext down to the concrete driver level.
However, to keep WebDriver.findElements to continue working, I have to leave
findElements in WebDriver and WebElement. Seems a bit naughty, because it's
unclear where are the findElement functions in the drivers are implementing
from. What do you think?
And I have deprecated By.findElements(WebDriver) while adding
By.findElements(SearchContext) .  Although the new API requires a cast, I don't
think it is a problem because most user code dont use this API directly anyway.
Sign in to reply to this message.

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