static void Main(string[] args)
        {
            Host = new ChromeServerHost();
            Host.LostConnectionToChrome += Host_LostConnectionToChrome;
            Thread serverThread = new Thread(ServerThread);

            serverThread.Start();
            Thread.Sleep(250);
            Host.Listen();
        }
Exemple #2
0
        public Automation()
        {
            // register host with chrome
            Host = new ChromeServerHost();
            if (!Host.IsRegisteredWithChrome())
            {
                Host.GenerateManifest(Description, AllowedOrigins);
                Host.Register();
            }

            serverPipes           = new Dictionary <long, ServerPipe>();
            browserProcessDic     = new Dictionary <long, int>();
            BrowserInstallPath    = GetInstalledBrowserPath();
            BackUpFilePath        = $"{ GetSavedBackUpPath("AutomationProfile")}\\{AutomationBackUpFileName}.zcg";
            BackupDataItems       = GetBackupItems();
            CommonBackupDataItems = GetDefaultBackupDataItems();
        }