still no luck :(
1) Error: test_TCrecorded(TCrecorded): NoMethodError: undefined method `element_by_xpath' for #<Watir::Frame: 0x2e55054> C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/table.rb: 324:in `locate' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb: 49:in `assert_exists' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb: 284:in `enabled?' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb: 56:in `assert_enabled' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb: 229:in `click!' C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb: 215:in `click!' Am i missing something basic, do i need to require anything else for using xpath? On Sep 8, 4:24 pm, Željko Filipin <zeljko.fili...@wa-research.ch> wrote: > http://wiki.openqa.org/display/WTR/XPathsays: > > "you can access frames using the attributes that Watir provides but you > can't use xpath attribute for accessing frames" > > Try this: > > browser.frame(:index, 3).cell(:xpath, "//td[contains(@onclick , > 'MainMenu.jmp?pid=97&pName=Areas And Branches')]").click > > Željko --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---