/// <summary> /// Filling the details in the conatct page /// </summary> public void FillTheDetails() { IWantToDropDown.Click(); IWantToDropDownOption.Click(); WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10)); wait.Until(ExpectedConditions.ElementToBeClickable(By.XPath(".//*[@id='contactForm']/div[4]/div[2]/div[2]/div/div[1]/button"))); ChangeButton.Click(); ChangeButtonOption.Click(); CurrentBenifitButton.Click(); CurrentBenifitButtonOption.Click(); DedutioPerDay.SendKeys(ExcelOperation.GetData[3]); PayDatePerChange.Click(); EmailID.Clear(); EmailID.SendKeys(ExcelOperation.GetData[4]); PreferedContact.Click(); MessageBox.SendKeys(ExcelOperation.GetData[5]); if (SubmitMessage.Text != "Submit") { throw new Exception(); } }
public Vendor(string companyName) // Constructor 2 { CompanyName = companyName; PhoneNumber = ""; EmailAddress = ""; ContactMethod = PreferedContact.None; }
public Vendor(string companyName, string phoneNumber, string emailAddress, PreferedContact method) // Constructor 1 { CompanyName = companyName; PhoneNumber = phoneNumber; EmailAddress = emailAddress; ContactMethod = method; }