Hi Simon, Sorry to take so long to get back to you on this feature. ...
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.
Issue 2744: Implemented partial link text matchfirefox and htmlunit driver
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/
Comments: 17