public void CheckButton() { NavigationHelper.NavigateToUrl(ObjectRepository.config.GetWebsite()); LinkHelper.ClickOnLink(By.Id("enter_bug")); TextBoxHelper.TypeInTextBox(By.Id("Bugzilla_login"), ObjectRepository.config.GetUsername()); TextBoxHelper.TypeInTextBox(By.Id("Bugzilla_password"), ObjectRepository.config.GetPassword()); Console.WriteLine("Text on the Button is: {0}", ButtonHelper.ButtonText(By.Id("log_in"))); if (ButtonHelper.IsButtonEnabled(By.Id("log_in"))) { ButtonHelper.ClickButton(By.Id("log_in")); } else { Console.WriteLine("Button not enabled"); } }