Issue Details (XML | Word | Printable)

Key: SRC-613
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Andras Hatvani
Reporter: Prashant
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Selenium Remote Control

attachFile method does not preserve the original file name.

Created: 10/Feb/09 12:09 AM   Updated: 29/Mar/09 05:20 AM   Resolved: 29/Mar/09 05:20 AM
Component/s: Client Driver - Java
Affects Version/s: 1.0 beta 2
Fix Version/s: 1.0

Environment: Chrome


 Description  « Hide

I am using old classic yahoo mail compose mail with attachement feature.

selenium.attachFile("uploadfile","http://www.google.co.in/intl/en/privacy.html");

The file attached to mail with name sel-12424.html.
This is something making the function unusable.

http://clearspace.openqa.org/message/56347



Sort Order: Ascending order - Click to sort in descending order
Andras Hatvani added a comment - 29/Mar/09 05:20 AM

Fixed in r2641:

  • Refactored SeleniumDriverResourceHandler's attachFile by establishing testability
  • Introduced enum SpecialCommand
  • Refactored SeleniumDriverResourceHandler's doCommand() to use the enum SpecialCommand