ruby - Watir can't locate frame which houses an element in Firefox but works fine in IE -


i have script:

browser.frame( :name, 'frame_navigation' ).span(:text=>'foo').fire_event('onmouseup') 

which clicks on elements of tree view (inside frame) works great in ie, when set:

require 'watir' watir::browser.default = 'firefox' 

and run get:

failure/error:  browser.frame( :name, 'frame_navigation').span(:text=>'foo').fire_event('onmouseup') watir::exception::unknownframeexception: unable locate frame using name , frame_navigation. 

i elements inside frame on page. not tree view. i've tried requiring firewatir well, or on own no luck.

any insight appreciated!

thanks,

-m

you're not using frame method correctly. try way:

browser.frame(:name => 'frame_navigation').span(:text => 'foo').fire_event('onmouseup') 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -