public MainWindow WaitUntilConnected() { WindowsElement quickConnectButton = Session.FindElementByAccessibilityId("SidebarQuickConnectButton"); WaitUntilTextMatches(quickConnectButton, "Disconnect", seconds: 20); ConnectionResult.WaitUntilInternetConnectionIsRestored(); return(this); }