public void ChangeStatus(string description, string attach) { WebDriver.driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30); dpdStatusType.ButtonClick(); Actions acc = new Actions(WebDriver.driver); acc.SendKeys(Keys.ArrowDown).SendKeys(Keys.Enter).Perform(); dpdBSPStatus.ButtonClick(); acc.SendKeys(Keys.ArrowDown).SendKeys(Keys.Enter).Perform(); txtDescription.EnterText(description); Thread.Sleep(2000); WebDriver.driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30); ExpiryDate.ButtonClick(); CalenderMonth.ButtonClick(); acc.SendKeys(Keys.ArrowDown).SendKeys(Keys.Enter).Perform(); Thread.Sleep(1000); CalenderYear.ButtonClick(); acc.SendKeys(Keys.ArrowDown).SendKeys(Keys.Enter).Perform(); Thread.Sleep(1000); CalenderDay.ButtonClick(); Thread.Sleep(2000); FileChoose.EnterText(attach); Thread.Sleep(3000); }