Skip to main content
Participant
Jul 29, 2009 9:02 PM UTC
Question

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

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

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

brian_thomas2
Adobe Employee
Adobe Employee
Jul 29, 2009 11:56 PM UTC

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)");
Translate