[Wtr-development] [JIRA] Updated: (WTR-316) Watir::Image save issue with IE8 [patch]

Charley Baker (JIRA) watirjira at gmail.com
Wed Oct 27 15:42:25 EDT 2010


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

Charley Baker updated WTR-316:
------------------------------

    Fix Version/s:     (was: 1.6.7)
                   Soon

> Watir::Image save issue with IE8 [patch]
> ----------------------------------------
>
>                 Key: WTR-316
>                 URL: http://jira.openqa.org/browse/WTR-316
>             Project: Watir
>          Issue Type: Bug
>          Components: Save File
>    Affects Versions: 1.6.2
>         Environment: Internet Explorer 8 installed, WinXP or Vista.
>            Reporter: Jason Truesdell
>             Fix For: Soon
>
>         Attachments: diff.txt, diff.txt
>
>
> In IE8, image.save fails to set the path name for which to save an image. This is due to a change in IE.
> With IE8, the control ID for the Save Picture edit control is no longer 1148. It appears to be 1001. I created a patch which resolves the issue, at least with AutoIt 3 installed, by replacing the hard-coded control ID with a [CLASS:Edit] selector. This appears to resolve the issue in IE7 and IE8.
> The patch is attached as a file.
> 125c125
> <         system("ruby -e \"require 'win32ole'; @autoit=WIN32OLE.new('AutoItX3.Control'); waitresult=@autoit.WinWait 'Save Picture', '', 15; if waitresult == 1\" -e \"@autoit.ControlSetText 'Save Picture', '', '[CLASS:Edit]', '#{path}'; @autoit.ControlSend 'Save Picture', '', '1', '{ENTER}';\" -e \"end\"")
> ---
> >         system("ruby -e \"require 'win32ole'; @autoit=WIN32OLE.new('AutoItX3.Control'); waitresult=@autoit.WinWait 'Save Picture', '', 15; if waitresult == 1\" -e \"@autoit.ControlSetText 'Save Picture', '', '1148', '#{path}'; @autoit.ControlSend 'Save Picture', '', '1', '{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

        


More information about the Wtr-development mailing list