public void WhenUserClicksOnTheLoginWithSalesForceLink() { try { Synchronization.VisibleElement(SelectBrowser.driver, By.LinkText("Login with Salesforce")); InitialPage.LoginButton(SelectBrowser.driver).Click(); test.Log(Status.Pass, "Click on the Login Button"); } catch (Exception ex) { Console.WriteLine("Exception==>" + ex); ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png); } }