public void SearchPoNumber(string poNumber)
 {
     PoNumberElement.SendKeys(poNumber);
     javaScriptExecutor.ExecuteScript("arguments[0].click();", IncludeInsertLogCheckBox);
     javaScriptExecutor.ExecuteScript("arguments[0].click();", SubmitLink);
     webDriver.WaitForPageLoad(new TimeSpan(0, 0, 20));
 }
        public bool SearchByPoNumber(string poNumber)
        {
            PoNumberElement.SendKeys(poNumber);
            ////IncludeInsertLogCheckBox.Click();
            javaScriptExecutor.ExecuteScript("arguments[0].click();", IncludeInsertLogCheckBox);
            ////SubmitLink.Click();
            javaScriptExecutor.ExecuteScript("arguments[0].click();", SubmitLink);
            webDriver.WaitForPageLoad(new TimeSpan(0, 0, 20));

            if (!PoLogReportRows.Any())
            {
                Console.WriteLine("Log Events are not retrieved for PO: {0}", poNumber);
                return(false);
            }

            // 1. Capture Thread Id & Quote Id - EUDC verification
            Console.WriteLine(
                "Thread Id for this PO number {0} is :- {1}",
                poNumber,
                ThreadIdInTable.Text.Trim());
            Console.WriteLine(
                "Quote Id for this PO number {0} is :- {1}",
                poNumber,
                QuoteIdInTable.Text.Trim());

            return(true);
        }