When accessing an ElementCollection, I cannot "locate" or get an iFrame's HTML
as the iFrame class does not replicate the Frame class' functionality.
```ruby
browser = Watir::Browser.new(:firefox)
browser.goto('http://www.ncadvertiser.com')
browser.elements.each do |element|
if element.tag_name == 'iframe'
puts element # <Watir::HTMLElement:0x007fbf2410de30>
puts element.to_subtype # <Watir::IFrame:0x007fa7adf50a80>
# Cannot access iframe's HTML as it does not inherit from Frame class
end
end
browser.close
```
Btw, I have to access the browser.elements as I have to confirm that scripts,
frames and images are loaded in the correct order. I have more "if
element.tag_name == 'TAG'" conditions in my code to analyze other tags. I just
included a stripped down version of the code here. Thanks in advance!
---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/204
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development