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

Issue 2744: Implemented partial link text matchfirefox and htmlunit driver

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

Patch Set 1 #

Patch Set 2 : remove some unrelated changes #

Patch Set 3 : some updates #

Patch Set 4 : revert some unrelated html page #

Patch Set 5 : Moved DoubleClick feature out of this CL #

Patch Set 6 : some style fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -10 lines) Patch
common/src/java/org/openqa/selenium/By.java View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
common/src/java/org/openqa/selenium/WebElement.java View 3 4 1 chunk +1 line, -1 line 0 comments Download
common/src/java/org/openqa/selenium/internal/FindsByLinkText.java View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
common/src/web/simpleTest.html View 1 chunk +5 lines, -0 lines 0 comments Download
common/test/java/org/openqa/selenium/PartialLinkTextMatchTest.java View 1 2 3 4 1 chunk +35 lines, -0 lines 0 comments Download
firefox/src/extension/components/firefoxDriver.js View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download
firefox/src/extension/components/wrappedElement.js View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
firefox/src/java/org/openqa/selenium/firefox/FirefoxDriver.java View 1 2 3 4 5 2 chunks +8 lines, -4 lines 0 comments Download
firefox/src/java/org/openqa/selenium/firefox/FirefoxWebElement.java View 1 2 3 4 2 chunks +19 lines, -4 lines 0 comments Download
htmlunit/src/java/org/openqa/selenium/htmlunit/HtmlUnitDriver.java View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
htmlunit/src/java/org/openqa/selenium/htmlunit/HtmlUnitWebElement.java View 1 2 3 4 2 chunks +24 lines, -1 line 0 comments Download
jobbie/src/java/org/openqa/selenium/ie/InternetExplorerDriver.java View 3 4 1 chunk +8 lines, -0 lines 0 comments Download
jobbie/src/java/org/openqa/selenium/ie/InternetExplorerElement.java View 3 4 1 chunk +1 line, -0 lines 0 comments Download
safari/src/java/org/openqa/selenium/safari/SafariDriver.java View 3 4 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 2
Simon Stewart
Looks like a great start. I'd rather break this into two separate checkins, though. http://codereview.appspot.com/2744/diff/51/113 ...
17 years, 10 months ago (2008-08-14 11:43:30 UTC) #1
jiayao
17 years, 9 months ago (2008-08-27 21:44:29 UTC) #2
Hi Simon,
Sorry to take so long to get back to you on this feature. I've moved doubleClick
out of this CL and fixed the problems you pointed out for partial link matches.

http://codereview.appspot.com/2744/diff/51/113
File common/src/java/org/openqa/selenium/WebElement.java (right):

http://codereview.appspot.com/2744/diff/51/113#newcode43
Line 43: * It will not trigger a normal click action.
On 2008/08/14 11:43:30, simon.m.stewart wrote:
> It should fire two click events

I guess I can do that by inspecting the element and see if the dblClick event is
handled. But the other test frameworks like htmlunit and selenium don't fall
back to two click events in this case.

http://codereview.appspot.com/2744/diff/51/115
File common/src/web/links.html (right):

http://codereview.appspot.com/2744/diff/51/115#newcode5
Line 5: <a href="">link with trailing space   </a>
On 2008/08/14 11:43:30, simon.m.stewart wrote:
> And this into one of the existing pages used by the existing "By.linkText"
tests

Done.

http://codereview.appspot.com/2744/diff/51/109
File common/test/java/org/openqa/selenium/AbstractDriverTestCase.java (right):

http://codereview.appspot.com/2744/diff/51/109#newcode58
Line 58: doublClickTestPage = baseUrl + "doubleclickTest.html";
On 2008/08/14 11:43:30, simon.m.stewart wrote:
> There should be no need for these.

Done.

http://codereview.appspot.com/2744/diff/51/111
File common/test/java/org/openqa/selenium/PartialLinkTextMatchTest.java (right):

http://codereview.appspot.com/2744/diff/51/111#newcode6
Line 6: public class PartialLinkTextMatchTest extends AbstractDriverTestCase {
On 2008/08/14 11:43:30, simon.m.stewart wrote:
> Formatting looks strange in rietvald....

That was a tab, fixed.

http://codereview.appspot.com/2744/diff/51/111#newcode21
Line 21: elem = driver.findElement(By.xpath("//div"));
On 2008/08/14 11:43:30, simon.m.stewart wrote:
> This test is confusing. Why do the clicking first? It would be clearer to grab
> the container div, then do a sub-search in that, asserting that the correct
> element was returned as done in the test above.

Done.

http://codereview.appspot.com/2744/diff/51/102
File firefox/src/java/org/openqa/selenium/firefox/FirefoxDriver.java (right):

http://codereview.appspot.com/2744/diff/51/102#newcode560
Line 560: return findElement("selectElementUsingPartialLinkText", using);
On 2008/08/14 11:43:30, simon.m.stewart wrote:
> These should be grouped with the other link tests

Done.
Sign in to reply to this message.

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