WebDriverWrapper.Browser.IsConnected C# (CSharp) Méthode

IsConnected() private méthode

private IsConnected ( ) : bool
Résultat bool
        private bool IsConnected()
        {
            TcpClient client = new TcpClient();
            Console.WriteLine("Connecting.....");
            try
            {
                client.Connect("127.0.0.1", Port);
                Console.WriteLine("True");
                return true;
            }
            catch
            {
                Console.WriteLine("False");
                return false;
            }
        }