instantiate $ie in setup or don't close browser in teardown - when you
close browser, $ie is closed (because browser is just a reference to the
same object) and thus unavailable going forward.

  #the setup method is executed before each test method
  def setup
    browser.goto('http://missiontesting.updatelog.com')
    browser.bring_to_front
    browser.maximize
  end

  #the teardown method is executed after each test method
  def teardown
   browser.close
  end

  However, after the first test method, the browser is closed,
  so Ruby cannot find the goto method (above in setup)

  How best can I structure this?

  aidy
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to