History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WTR-27
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Charley Baker
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Watir

fileCreatedDate() method asumes that the ole invoke for fileCreatedDate will never fail

Created: 27/Apr/06 01:54 PM   Updated: 28/Oct/08 05:15 PM
Component/s: HTML Controls
Affects Version/s: None
Fix Version/s: 1.6.2

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
fileCreatedDate() method asumes that the ole invoke for fileCreatedDate will
never fail.
In one of our tests we hit upon an OLE errror for image. The to_s() was calling fileCreatedDate which intern gave an
WIN32OLERuntimeError



--------------Test Script--------------------
require 'watir'
include Watir

a=IE.attach(:title, "xxx").frame("xxxx")
puts a.image(:index, "1").to_s


----------------Console Logs-------------------

c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3049:in `invoke': fileCreatedDate (WIN32OLERuntimeError)
    OLE error code:80004005 in htmlfile
      Unspecified error.
    HRESULT error code:0x80020009
      Exception occurred. from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3049:in `fileCreatedDate'
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3018:in `image_string_creator'
from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3030:in `to_s'
from 2.rb:5
>Exit code: 1

submitted by: Sathya Shankar (satti_mg)

 All   Comments   Work Log   Change History      Sort Order: