[Wtr-development] [JIRA] Commented: (WTR-455) link.src generates link.rb:42:in `method_missing': unknown property or method: `src' (NoMethodError) HRESULT error code:0x80070057

Kevin DeRossett (JIRA) watirjira at gmail.com
Sun Oct 10 15:40:30 EDT 2010


    [ http://jira.openqa.org/browse/WTR-455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19903#action_19903 ] 

Kevin DeRossett commented on WTR-455:
-------------------------------------

I got burned by Link#to_s which calls Link#src

> link.src generates link.rb:42:in `method_missing': unknown property or method: `src' (NoMethodError) HRESULT error code:0x80070057
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WTR-455
>                 URL: http://jira.openqa.org/browse/WTR-455
>             Project: Watir
>          Issue Type: Bug
>          Components: HTML Controls
>    Affects Versions: 1.6.5
>         Environment: ruby 1.9.1 and 1.9.2 mingw from http://rubyinstaller.org/ with devkit
>            Reporter: Kevin DeRossett
>            Priority: Critical
>
> My Fix for Watir::Link.src in link.rb at line 39'ish
> @o.getElementsByTagName("IMG")[0.to_s] was failing/not returning a #<WIN32OLE_TYPE:DispHTMLImg>
> so calling .src failes
> def src
>   assert_exists
>   imgsrc = ""
>   @o.getElementsByTagName("IMG").each { |img|
>     imgsrc = img.src
>     break
>   }
>   return imgsrc
> 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