Hi guys, I'll first explain what the test is to make it easier to understand.
I have a very basic HTML file which has a button that simulates a post request and loads a page when clicked. In my env.rb I have the following code: def start_browser @browser = Watir::Browser.new(:firefox, {:port => PORT}) # @browser = Watir::Browser.new(:firefox, {:profile => 'default',:port => PORT}) end Before do start_browser end After do @browser.close end When I run the test the above code opens a blank browser instance which I expected, I can also open the HTML file in a separate browser however when I try to interact with the elements in the HTML file I cant seem to switch the focus. I have tried @browser.window(:title, ' XXXX').use Has anyone got any ideas?? Thanks in advance Mo -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com