Skip to main content
Participant
July 29, 2009
Question

how to refresh the browser in [Before] for each test running?

  • July 29, 2009
  • 1 reply
  • 1115 views

is there any way to control the browser actions e.g. refresh browser in FlexUnit or Actionscript?

This topic has been closed for replies.

1 reply

brian_thomas2
Adobe Employee
Adobe Employee
July 29, 2009

I doubt this is the behavior you are looking for. If you refresh the browser, FlexUnit itself will be closed and relaunched along with the Flash Player plugin. Your test will never be run, your browser will just refresh and reload the SWF.

That said, I think you can do this by calling into javascript. This example is untested, but hopefully it will put you on the right track:

getURL("javascript:window.location.reload(true)");