//Click on Back public static void ClickOnBack() { log4net.Config.XmlConfigurator.Configure(); ILog logger = LogManager.GetLogger(typeof(SelectProductDetailsPage)); try { Wait.WaitVisible(Back); Back.Click(); } catch (Exception e) { logger.Error("Click on back failed due to : " + e); test.Fail("Click on back failed."); //**Closing browser Driver.Quit(); } }