//Enter request information in the send request form internal void AddRequstInformation() { // Populating the data from Excel ExcelLib.PopulateInCollection(Base.ExcelPath, "Send Request"); string tenant = ExcelLib.ReadData(2, "Tenant"); string type = ExcelLib.ReadData(2, "Type"); //choose tenant from dropdown list TenantText.Click(); Driver.WaitForElementClickable(Driver.driver, By.XPath(String.Format("//div[@class='item'][contains(text(),'{0}')]", tenant)), 5); Driver.driver.FindElement(By.XPath(String.Format("//div[@class='item'][contains(text(),'{0}')]", tenant))).Click(); //choose type from dropdown list SelectElement select2 = new SelectElement(TypeDropdown); select2.SelectByText(type); //enter description DescriptionText.SendKeys(ExcelLib.ReadData(2, "Description")); //upload files ChooseFilesButton.SendKeys(ExcelLib.ReadData(2, "Choose Files")); }
internal void AddRequstInformation() { // Populating the data from Excel ExcelLib.PopulateInCollection(Base.ExcelPath, "Send Request"); string tenant = ExcelLib.ReadData(2, "Tenant"); string type = ExcelLib.ReadData(2, "Type"); //choose tenant from dropdown list TenantText.Click(); Driver.driver.FindElement(By.XPath(String.Format(".//*[@id='main-content']/section/div/div[1]/div[2]/div/div[2]/div[text()='{0}']", tenant))).Click(); //choose type from dropdown list SelectElement select2 = new SelectElement(TypeDropdown); select2.SelectByText(type); //enter description DescriptionText.SendKeys(ExcelLib.ReadData(2,"Description")); //upload files ChooseFilesButton.SendKeys(ExcelLib.ReadData(2, "Choose Files")); }
//Fill out the list rental property form internal void AddRentalPropertyDetails() { // Populating the data from Excel ExcelLib.PopulateInCollection(Base.ExcelPath, "List Rental Property"); SelectElement select1 = new SelectElement(SelectPropertyDropdown); select1.SelectByIndex(1); TitleText.SendKeys(ExcelLib.ReadData(2, "Title")); MovingCostText.SendKeys(ExcelLib.ReadData(2, "Moving Cost")); DescriptionText.SendKeys(ExcelLib.ReadData(2, "Description")); TargentRentText.SendKeys(ExcelLib.ReadData(2, "Target Rent")); AvailableDateDatepicker.Click(); OccupantsCountText.SendKeys(ExcelLib.ReadData(2, "Occupants Count")); SelectElement select2 = new SelectElement(PetAllowedDropdown); select2.SelectByText("Yes"); //upload file ChooseFilesButton.SendKeys(ExcelLib.ReadData(2, "Choose Files")); }
void ReleaseDesignerOutlets() { if (CameraImportImage != null) { CameraImportImage.Dispose(); CameraImportImage = null; } if (ChooseCameraButton != null) { ChooseCameraButton.Dispose(); ChooseCameraButton = null; } if (ChooseFilesButton != null) { ChooseFilesButton.Dispose(); ChooseFilesButton = null; } if (ChoosePhotoButton != null) { ChoosePhotoButton.Dispose(); ChoosePhotoButton = null; } if (FileImportImage != null) { FileImportImage.Dispose(); FileImportImage = null; } if (ImportFromCameraDescription != null) { ImportFromCameraDescription.Dispose(); ImportFromCameraDescription = null; } if (ImportFromCameraTitle != null) { ImportFromCameraTitle.Dispose(); ImportFromCameraTitle = null; } if (ImportFromFilesDescription != null) { ImportFromFilesDescription.Dispose(); ImportFromFilesDescription = null; } if (ImportFromFilesTitle != null) { ImportFromFilesTitle.Dispose(); ImportFromFilesTitle = null; } if (ImportFromPhotosDescription != null) { ImportFromPhotosDescription.Dispose(); ImportFromPhotosDescription = null; } if (ImportFromPhotoTitle != null) { ImportFromPhotoTitle.Dispose(); ImportFromPhotoTitle = null; } if (PhotoImportImage != null) { PhotoImportImage.Dispose(); PhotoImportImage = null; } }