I am testing a website in Firefox on Windows 7. I am a fresher in watir. I have problem in testing this scenario:
1.On click of a Image button in first browser(b1), another instance of browser(b2) opens up. 2.Need to select a link in b2. 3.On selection of link in b2, b2 closes by itself and enters the selected value in the field in b1. All these 3 steps are done by watir but after this step, my script doesnot run further(which is on b1). Its giving this error: JsshSocket::JSTypeError: window.getBrowser is not a function c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/ jssh_socket.rb:12:in `js_eval' c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/ firefox.rb:492:in `wait' c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/ element.rb:1118:in `wait' c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/ element.rb:1099:in `click' My script is like this: @b.image(:class, ' ').click @b2 = Watir::Browser.attach(:title, '') sleep 3 @b2.link(:text, ' ').click sleep 3 @b.button(:name, 'Button').click I am not getting how to bring back the watir control to b1 and get rid of this error. Can anyone please give inputs. Thanks, Chandra -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com