Permalink
Browse files

Image#file_created_date is not available anymore since IE does not pr…

…ovide accurate information. Closes #36
  • Loading branch information...
1 parent 271a2c3 commit 281a0a7ac472219c41241b4c1c01370837a0c5be @jarmo jarmo committed Oct 21, 2012
Showing with 2 additions and 3 deletions.
  1. +1 −2 lib/watir-classic/image.rb
  2. +1 −1 spec/watirspec
View
3 lib/watir-classic/image.rb
@@ -8,7 +8,6 @@ module Watir
class Image < Element
attr_ole :alt
attr_ole :src
- attr_ole :file_created_date, :fileCreatedDate
# this method produces the properties for an image as an array
def image_string_creator
@@ -55,7 +54,7 @@ def height
# If the Disk cache is full (tools menu -> Internet options -> Temporary Internet Files), it may produce incorrect responses.
def loaded?
assert_exists
- !file_created_date.empty? && file_size != -1
+ file_size != -1
end
# this method highlights the image (in fact it adds or removes a border around the image)
2 spec/watirspec
@@ -1 +1 @@
-Subproject commit 9e42f81e8175208916f64dafdeadc0b590cc7937
+Subproject commit b840dc8f64df4a18016c60f8e73fba2f3b67e841

0 comments on commit 281a0a7

Please sign in to comment.