Hi,
xpath does't support frames. have a look at below link
http://wiki.openqa.org/display/WTR/XPath
Thanks,
jam
On Oct 9, 8:31 am, "bugs apple" <[EMAIL PROTECTED]> wrote:
> hi, all
>
> For my script like this,
>
> ie.frame(:name,"LeftFrame").text_field(:xpath,"//[EMAIL
> PROTECTED]'wiston']/").set("hello")
>
> it throws error like below,
>
> C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/input_elements.rb:6:in
> `locate': undefined method `element_by_xpath' for #<Watir::Frame:0x3a1bb18>
> (NoMethodError)
> from
> C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/element.rb:53:in
> `assert_exists'
> from
> C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/element.rb:288:in
> `enabled?'
> from
> C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/element.rb:60:in
> `assert_enabled'
> from
> C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/input_elements.rb:328:in
> `set'
> from
> C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/watir/RubyApplication2/lib/main.rb:91
>
> whether the frame support the XPath or not? if Yes, how do such a step?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---