public void ProgrammePage() { CommonUtils cookieIgnore = new CommonUtils(driver); cookieIgnore.RejectAll_Cookies(); SignIn_Page.Click(); Excel_Suite userEmail = new Excel_Suite(Env.EXCEL_TEST_URL); userEmail.getCellData("SPP_TestData", true); UserEmail.SendKeys(Env.Email_Id); Password.SendKeys("Test@123"); WebDriverWait wait = new WebDriverWait(driver, System.TimeSpan.FromSeconds(800)); Thread.Sleep(800); signEmailId.Click(); ProgrammesTab.Click(); Thread.Sleep(1000); // value = NCS_Selection.GetAttribute("data-name"); for (int i = 1; i <= NCS_Selection.Count; i++) { IWebElement ncsVal = driver.FindElement(By.XPath("//*[@id='ProgrammeApplicationListView']/div/div/div[1]/table/tbody/tr" + "[" + i + "]")); string val = ncsVal.Text; if (val.Contains("NCS 2020")) { ncsVal.Click(); break; } } NextButton.Click(); NextButton.Click(); Eyp_paucertified_label.Click(); NextButton.Click(); IJavaScriptExecutor js = (IJavaScriptExecutor)driver; js.ExecuteScript("window.scrollBy(0,500)", ""); js.ExecuteScript("arguments[0].scrollIntoView();", Eyp_organisationcertified_label); Thread.Sleep(500); Eyp_organisationcertified_label.Click(); ReportsGeneration._test.Log(Status.Pass, "SPP PROGRAMMES NCS" + " " + driver.Url + " " + "PASSED"); NextButton.Click(); searchLookUp_Button.Click(); Thread.Sleep(500); selectButton.Click(); Thread.Sleep(1000); js.ExecuteScript("window.scrollBy(0,500)", ""); js.ExecuteScript("arguments[0].scrollIntoView();", Eyp_bankaccountcertified_label); Thread.Sleep(1000); Eyp_bankaccountcertified_label.Click(); NextButton.Click(); Eyp_serviceproviderusercertified_label.Click(); NextButton.Click(); confirmServiceProvider.Click(); NextButton.Click(); Eyp_tuslaregistrationcertified_label.Click(); NextButton.Click(); js.ExecuteScript("window.scrollBy(0,500)", ""); js.ExecuteScript("arguments[0].scrollIntoView();", Eyp_servicecalendarcertified_label); Thread.Sleep(500); Eyp_servicecalendarcertified_label.Click(); NextButton.Click(); js.ExecuteScript("window.scrollBy(0,500)", ""); js.ExecuteScript("arguments[0].scrollIntoView();", Eyp_feeslistcertified_label); Thread.Sleep(500); Eyp_feeslistcertified_label.Click(); NextButton.Click(); Thread.Sleep(1000); js.ExecuteScript("window.scrollBy(0,500)", ""); if (AJAXCall.IsElementPresent(By.Id("eyp_complywithcovid19_label"))) { Eyp_complywithcovid19_label.Click(); NextButton.Click(); } AJAXCall.scrollToBottomPage(); confirmContractActivation.Click(); Thread.Sleep(500); NextButton.Click(); }