This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Description
Originally reported on Google Code with ID 2320
This issue was discussed in the following thread which includes some patch:
https://groups.google.com/forum/?hl=en#!topic/webdriver/tsuBgipwzRQ
I'm reposting below my original mail.
-------------
I've the following code:
WebElement element = getDriver().findElement(
By.xpath("//div[@id='_attachments']//a[contains(@href, '" + attachmentName
+ "')]"));
element.click();
When this code is executed I can see on the request log of my server that 2 calls are
made:
0:0:0:0:0:0:0:1%0 - - [18/Aug/2011:18:06:40 +0000] "GET /xwiki/bin/download/AttachmentTest/testUploadDownloadTwoAttachments/SmallAttachment.txt
HTTP/1.1" 200 28
0:0:0:0:0:0:0:1%0 - - [18/Aug/2011:18:06:40 +0000] "GET /xwiki/bin/download/AttachmentTest/testUploadDownloadTwoAttachments/SmallAttachment.txt
HTTP/1.1" 200 28
If I execute the same thing manually, only 1 such request is made.
Thanks
Reported by vmassol on 2011-08-23 09:24:35