[ 
http://jira.openqa.org/browse/WTR-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zeljko closed WTR-188.
----------------------

    Resolution: Won't Fix

If this is still a problem, please report it here: 
https://github.com/watir/watir-classic/issues

> file_field set method fails on folders containings many files (>1000)
> ---------------------------------------------------------------------
>
>                 Key: WTR-188
>                 URL: http://jira.openqa.org/browse/WTR-188
>             Project: Watir
>          Issue Type: Bug
>    Affects Versions: 1.5.2
>         Environment: Windows XP, Internet Explorer 6 SP2
>            Reporter: Jeff Fry
>            Priority: Major
>             Fix For: Future
>
>
> Reported by: Lauro Canonica 
> The FileField.set method fails if there are more than 1000 files in the 
> folder containing the file:
> This code fails:
> $ie.file_field(:id, file).setPatched(fileName);
> Watir sets the name in the filename field before the "Choose window" is ready.
> The "Choose Window" will then wait forever.
> Suggested quick fix:
> Add a @autoit.Sleep(1000) before setting the file name field
> Watir.rb line 4069:
> system("rubyw -e \"require 'win32ole'; 
> @autoit=WIN32OLE.new('AutoItX3.Control'); [email protected] 'Choose 
> file', '', 15; if waitresult == 1\" -e \"@autoit.Sleep(1000); 
> @autoit.ControlSetText 'Choose file', '', 'Edit1', '#{setPath}'; 
> @autoit.ControlSend 'Choose file', '', 'Button2', '{ENTER}';\" -e \"end\"")

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to