I am sorry for my poor asking skill.. ><

Actually, I have a html source code as following..
Please pay attentions to the 2nd <html>

<html>
<head>
....<frameset>
........<frame name = "F1" >
........<frameset>
............<frame name = "F2" >
............<frame name = "F3" >
................<html>
....................<div id = "test1"........>
........................<
....................<div class = "header"........ >

I can get the 3rd frame by following code without problem
    f = ie.frame( :name, "F3" )

However, when i am trying to get the all "div" html inner "F3" by
following code.
    f.divs

It turns out an error code:
    NoMethodError: unknown property or method: 'getElementsByTagName'
        HRESULT error code: 0x80020006
            Unknow name.
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-1.8.0/lib/watir/
collections.rb:13:in `method_missing'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-1.8.0/lib/watir/
collections.rb:13:in `length'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-1.8.0/lib/watir/
element_collections.rb:12:in `initialize'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-1.8.0/lib/watir/
container.rb:615:in `new'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-1.8.0/lib/watir/
container.rb:615:in `divs'
        from (irb):42
        from C:/Ruby192/bin/irb:12:in `<main>'

I event try to use following method to get all the div, but it still
doesn't work...
    ie.divs.lentgh     =>     it returns '0'

any idea?

Many thanks for your time....
Paservan

On May 10, 7:32 pm, Željko Filipin <[email protected]>
wrote:
> On Tue, May 10, 2011 at 1:24 PM, Paservan <[email protected]> wrote:
> > <html>
> > <head>
> > ....<frameset>
> > ........<frame>
> > ........<frameset>
> > ............<frame>
> > ............<frame>
> > ................<html>
> > how do i get the reference for the second <html> tag?
>
> Something like this:
>
> browser.frame(how, what).frame(how, what)
>
> Example:
>
> browser.frame(:name, "one").frame(:name, "two").link(:text, "click
> me").click
>
> More information:
>
> http://wiki.openqa.org/display/WTR/Frames
>
> Željko
> --
> watir.com - community manager
> watir.com/book - author
> watirpodcast.com - host
> viaqa.mobi conference on software testing - organizer

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to