I'm writing some automated acceptance tests for a flash movie (driving the movie using iMacros).
I need to "reset" the test environment before each test run by clearing out the settings flash is storing in Local Shared Objects.
I can do this manually by deleting the files in:
C:\Documents and Settings{username}\Application Data\Macromedia\Flash Player#SharedObjects\FQSTGCV7\{site-url}
Obviously I want to automate this deletion step; but I'm wondering how to determine the above path in a non machine specific way.
In .NET,
"C:\Documents and Settings{username}\Application Data\Macromedia\Flash Player#SharedObjects\" is clearly
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
@"Macromedia\Flash Player\#SharedObjects")
How do I figure out what "FQSTGCV7" will be on a different machine? Is there an environment variable? Is there only ever 1 directory below #SharedObjects\ ?
Thanks