public override string ToString() { return("ID = " + ID.ToString() + "; UserName = "******"; Country = " + Country + "; Project = " + Project + "; RegDate = " + RegDate.ToString() + "; AvgScore = " + AvgScore.ToString() + "; AllScore = " + AllScore.ToString()); }
public void FillBasicInformation(string br, string name, string othername) { Thread.Sleep(5000); WebDriver.driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30); Thread.Sleep(3000); txtBRNumber.EnterText(br); txtConBRNumber.EnterText(br); Actions dropdown = new Actions(WebDriver.driver); dpdCorporateStatus.ButtonClick(); dropdown.SendKeys(Keys.ArrowDown).SendKeys(Keys.Enter).Perform(); Thread.Sleep(2000); dpdCountry.ButtonClick(); dropdown.SendKeys(Keys.ArrowDown).SendKeys(Keys.Enter).Perform(); Thread.Sleep(2000); dpdCorporateType.ButtonClick(); Thread.Sleep(2000); chkClient.ButtonClick(); Thread.Sleep(5000); txtCorporateName.ButtonClick(); Thread.Sleep(2000); dpdBusinessType.ButtonClick(); dropdown.SendKeys(Keys.ArrowDown).SendKeys(Keys.Enter).Perform(); Thread.Sleep(1000); IJavaScriptExecutor js = WebDriver.driver as IJavaScriptExecutor; js.ExecuteScript("window.scrollBy(0,200);"); Thread.Sleep(1000); dpdCorporateGrade.ButtonClick(); dropdown.SendKeys(Keys.ArrowDown).SendKeys(Keys.Enter).Perform(); Thread.Sleep(2000); txtCorporateName.EnterText(name); txtCorporateOtherName.EnterText(othername); Thread.Sleep(2000); WebDriver.driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30); Actions acc = new Actions(WebDriver.driver); RegistrationDate.ButtonClick(); Thread.Sleep(2000); RegMonth.ButtonClick(); acc.SendKeys(Keys.ArrowUp).SendKeys(Keys.Enter).Perform(); RegYear.ButtonClick(); acc.SendKeys(Keys.ArrowUp).SendKeys(Keys.Enter).Perform(); Thread.Sleep(2000); RegDate.ButtonClick(); dpdLanguage.ButtonClick(); dropdown.SendKeys(Keys.ArrowDown).SendKeys(Keys.Enter).Perform(); Thread.Sleep(2000); dpdSector.ButtonClick(); dropdown.SendKeys(Keys.ArrowDown).SendKeys(Keys.Enter).Perform(); Thread.Sleep(1000); dpdCommunicationMode.ButtonClick(); chkCommunication.ButtonClick(); Thread.Sleep(1000); txtCorporateName.ButtonClick(); dpdSupplierType.ButtonClick(); dropdown.SendKeys(Keys.ArrowDown).SendKeys(Keys.Enter).Perform(); Thread.Sleep(2000); IJavaScriptExecutor jsc = WebDriver.driver as IJavaScriptExecutor; jsc.ExecuteScript("window.scrollBy(0,-200);"); Thread.Sleep(2000); btnNext.ButtonClick(); Thread.Sleep(3000); }
public string RegDate2Str() { return(RegDate.AddHours(3).ToString("yy.MM.dd HH:mm:ss")); }