public void TestKenDropDown()
 {
     NavigationHelper.NavigateToUrl("https://demos.telerik.com/kendo-ui/dropdownlist/index");
     GenericHelper.WaitForWebElement(By.XPath(DropDownXpath), TimeSpan.FromSeconds(60));
     JavaScriptExecutor.ScrollIntoViewAndClick(By.XPath(DropDownXpath));
     GenericHelper.WaitForWebElement(By.XPath(ItemXpath), TimeSpan.FromSeconds(60));
     ButtonHelper.ClickButton(By.XPath(ItemXpath));
     Thread.Sleep(1000);
 }
        public void ThenIClickOnTheAddAttachmentButtonAndUploadTheFile()
        {
            ButtonHelper.ClickButton(By.XPath("//div[@id='attachment_false']/input"));
            GenericHelper.WaitForWebElement(By.Id("data"), TimeSpan.FromSeconds(30));
            JavaScriptExecutor.ScrollIntoViewAndClick(By.Id("data"));
            //ButtonHelper.ClickButton(By.Id("data"));

            var processinfo = new ProcessStartInfo()
            {
                FileName        = "\"" + Directory.GetCurrentDirectory() + @"\Resources\FileUpload.exe" + "\"",
                Arguments       = "\"" + Directory.GetCurrentDirectory() + @"\Resources\ExcelData.xlsx" + "\"",
                UseShellExecute = false
            };

            using (var process = Process.Start(processinfo))
            {
                process.WaitForExit();
            }
            Thread.Sleep(5000);
        }
 public void ThenWaitForTheAttachmentButtonForSeconds(string btnId, int timeOut)
 {
     GenericHelper.WaitForWebElement(By.Id(btnId), TimeSpan.FromSeconds(timeOut));
     JavaScriptExecutor.ScrollIntoViewAndClick(By.Id(btnId));
 }