WebDriverWrapper.Browser.IsConnected C# (CSharp) Method

IsConnected() private method

private IsConnected ( ) : bool
return 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;
            }
        }