private static void ApplicationPreconditions() { // Driver status var message = $"Please check that the application under test is available in '{ApplcationPath}'."; session.Should().NotBeNull($"the application session is not available. {message}"); session.SessionId.Should().NotBeNull($"the application session id is not available. {message}"); // Configure App for updates try { WindowsElement enableButton = session.FindElementByName("\"Disable\""); if (enableButton != null) { enableButton.Click(); } } catch { } // Application under tests status session.Title.Should().Be("KeePass"); }