public void WhenNowUserClicksOnTheReconLink() { try { Synchronization.VisibleElement(SelectBrowser.driver, By.XPath("//col-md-[contains(text(),'Recon')]")); SpecificAccountInfo.ReconLink(SelectBrowser.driver).Click(); test.Log(Status.Pass, "User Clicks on the Recon Link"); } catch (Exception ex) { Console.WriteLine("Exception==>" + ex); ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png); } }
public void WhenUserClicksOnTheInvoicesPaymentsLink() { try { Synchronization.VisibleElement(SelectBrowser.driver, By.XPath("//a[@ui-sref='Invoice/Payments']/col-md-")); SpecificAccountInfo.Invoiceslink(SelectBrowser.driver).Click(); test.Log(Status.Pass, "User Clicks on the Invoices and Payments Link"); } catch (Exception ex) { Console.WriteLine("Exception==>" + ex); ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png); } }