I met with this kind of problem, too. In fact, when I user IE developer toolbar to access the web page with the source code above, the IFRAME won't expand. The IFrame is with src attributes, it points to the other place, which crosses the domain, so we have no access.
Thanks. Wesley Chen. For life, the easier, the better. On Mon, Jan 11, 2010 at 2:36 PM, Angrez Singh <[email protected]> wrote: > Thanks a lot for the HTML source .. it is sufficient. Will look into the > issue and resolve it. > > - Angrez > > 2010/1/9 Kunal <[email protected]> > > Well, the HTML doc is quite big! You would not want to dig into >> that ;) >> >> Anyways I tried to remove most of the redundant things and the >> skeleton HTML does look something like as below >> >> <html> >> <head> >> </head> >> <body> >> <div> Some content here </div> >> <iframe src="http://dummy-url"> >> <html> >> <body> >> <div id="test-1" > Test test >> <div id="test-2" > </div> >> <span id="test-span-1"> lkdsjlakjds </span> >> <span id="Root-Node" > </span> >> </div> >> </body> >> </html> >> </iframe> >> </body> >> </html> >> >> If this helps, great. If you need more information, please let me >> know. >> >> -Kunal >> >> On Jan 9, 6:48 pm, Angrez Singh <[email protected]> wrote: >> > I'll look into this .. above should work .. meanwhile can you send me >> the >> > HTML you are using? >> > >> > - Angrez >> > >> > On Sat, Jan 9, 2010 at 3:18 PM, Kunal <[email protected]> wrote: >> > > No. They don't. See the error which I get, If I try to do something >> > > like that. >> > >> > > irb(main):025:0> browser.frame( :id, "test-339" ).span( :xpath, >> "//span >> > > [...@text='Root Node']" ).focus >> > >> > > NoMethodError: undefined method `element_by_xpath' for #<Watir::Frame: >> > > 0x32f24f4> >> > >> > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ >> > > non_control_elements.rb:20:in `locate' >> > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ >> > > element.rb:49:in `assert_exists' >> > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ >> > > element.rb:284:in `enabled?' >> > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ >> > > element.rb:56:in `assert_enabled' >> > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ >> > > element.rb:266:in `focus' >> > > from (irb):25 >> > >> > > On Jan 8, 3:45 pm, Angrez Singh <[email protected]> wrote: >> > > > Correct as Željko said it should work? >> > >> > > > On Fri, Jan 8, 2010 at 3:59 PM, Željko Filipin < >> > >> > > > [email protected]> wrote: >> > > > > On Fri, Jan 8, 2010 at 11:15 AM, Kunal Kumar <[email protected] >> > >> > > wrote: >> > > > > > $ie.frame(:index, 3).span( :xpath, "//d...@id='test']/../span" >> > > ).click >> > > > > > would fail with error. >> > >> > > > > That should work. What error do you get? >> > >> > > > > Take a look: >> > >> > > > >http://wiki.openqa.org/display/WTR/XPath >> > >> > > > > "...you can access frames using the attributes that Watir provides >> but >> > > you >> > > > > can't use *xpath* attribute for accessing frames..." >> > >> > > > > Željko >> > > > > -- >> > > > > watir.com - community manager >> > > > > watirpodcast.com - host >> > >> > > > > -- >> > > > > You received this message because you are subscribed to the Google >> > > Groups >> > > > > "Watir General" group. >> > > > > To post to this group, send email to >> [email protected] >> > > > > Before posting, please read the following guidelines: >> > > > >http://wiki.openqa.org/display/WTR/Support >> > > > > To unsubscribe from this group, send email to >> > > > > [email protected] >> > > > > For more options, visit this group at >> > > > >http://groups.google.com/group/watir-general >> > >> > > -- >> > > You received this message because you are subscribed to the Google >> Groups >> > > "Watir General" group. >> > > To post to this group, send email to [email protected] >> > > Before posting, please read the following guidelines: >> > >http://wiki.openqa.org/display/WTR/Support >> > > To unsubscribe from this group, send email to >> > > [email protected] >> > > For more options, visit this group at >> > >http://groups.google.com/group/watir-general >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Watir General" group. >> To post to this group, send email to [email protected] >> Before posting, please read the following guidelines: >> http://wiki.openqa.org/display/WTR/Support >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/watir-general >> > > > -- > You received this message because you are subscribed to the Google Groups > "Watir General" group. > To post to this group, send email to [email protected] > Before posting, please read the following guidelines: > http://wiki.openqa.org/display/WTR/Support > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/watir-general >
-- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general
