public void ThenUserVerifiesTheData()
        {
            try
            {
                SelectBrowser.driver.SwitchTo().Window(SelectBrowser.driver.WindowHandles.Last());
                using (var session = Sikuli.CreateSession())
                {
                    var down_text   = Patterns.FromFile(@"C:\Users\ankit.kansal\Desktop\Downloadbutton.PNG", 0.9f);
                    var save_button = Patterns.FromFile(@"C:\Users\ankit.kansal\Desktop\SaveButton.PNG", 0.9f);
                    session.Wait(down_text, 500);
                    session.Click(down_text);
                    test.Log(Status.Pass, "User Clicks on the Download Button");
                    session.Wait(save_button, 500);
                    session.Click(save_button);
                    test.Log(Status.Pass, "User Clicks on the Save Button");
                }

                Assert.IsTrue(PDFReaderP.ExtractPDF(@"C:\Users\ankit.kansal\Downloads\ReconReport_V9.pdf").Contains("Account"));
            }
            catch (AssertFailedException ex)
            {
                Console.WriteLine("Exception==>" + ex);
                ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png);
            }
        }
 public void ThenUserShouldBeVerifyThatPDFDataIsValidated()
 {
     //string path=
     try
     {
         Assert.IsTrue(PDFReaderP.ExtractPDF(@"C:\Users\ankit.kansal\Downloads\60149025.pdf").Contains("ThomasNet"));
         test.Info("User is verified succesfully");
     }
     catch (Exception ex)
     {
         Console.WriteLine("Exception==>" + ex);
         ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png);
     }
 }
        public void ThenUserShouldBeVerifyThatPDFDataContentIsValidated()
        {
            try
            {
                string filePath = @"C:\Users\Anuruddha.Tiwari\Downloads\SalesActivity.pdf";

                string path = @"C:\Users\Anuruddha.Tiwari\Downloads\SalesActivity.pdf";
                Assert.IsTrue(PDFReaderP.ExtractPDF(path).Contains("Content Activity Report"));
                Console.WriteLine("Assert Pass");
                Assert.IsTrue(path.Contains(".pdf"));
                Console.WriteLine("file extenssion is .pdf");
            }
            catch (Exception ex)
            {
                Console.WriteLine("Exception==>" + ex);
                ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png);
            }
        }