Ejemplo n.º 1
0
        static string GetBinaryLocation(Dictionary capabilities)
        {
            string path;

            if (!capabilities.TryGetValue("firefox_binary", out path))
            {
                path = IOExt.GetApplicationPath(APP_FILENAME);
            }

            if (!File.Exists(path))
            {
                throw new Errors.FileNotFoundError(path);
            }

            return(path);
        }