public static void Occupants_Count() { var Rows_Count = Excel_Obj.ExcelApp(); int rowCount = 0; string occupants; for (rowCount = 2; rowCount <= Rows_Count.Rows.Count; rowCount++) { occupants = (Rows_Count.Cells[rowCount, 8] as excel.Range).Text; var User_id = Browser.driver.FindElement(By.XPath("//*[@id='main-content']/div/form/fieldset/div[6]/div[1]/input")); User_id.Clear(); User_id.SendKeys(occupants); } }
public static void Furnishing() { var Rows_Count = Excel_Obj.ExcelApp(); int rowCount = 0; string furnishing; for (rowCount = 2; rowCount <= Rows_Count.Rows.Count; rowCount++) { furnishing = (Rows_Count.Cells[rowCount, 5] as excel.Range).Text; var User_id = Browser.driver.FindElement(By.XPath("//*[@id='main-content']/div/form/fieldset/div[4]/div[2]/input")); User_id.Clear(); User_id.SendKeys(furnishing); } }
public static void moving_Cost() { var Rows_Count = Excel_Obj.ExcelApp(); int rowCount = 0; string moving_Cost; for (rowCount = 2; rowCount <= Rows_Count.Rows.Count; rowCount++) { moving_Cost = (Rows_Count.Cells[rowCount, 2] as excel.Range).Text; var User_id = Browser.driver.FindElement(By.XPath("//*[@id='main-content']/div/form/fieldset/div[3]/div[1]/input[2]")); User_id.Clear(); User_id.SendKeys(moving_Cost); } Browser.driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5); }
public static void Ideal_Tenant() { Browser.driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10); var Rows_Count = Excel_Obj.ExcelApp(); int rowCount = 0; string ideal_tenant; for (rowCount = 2; rowCount <= Rows_Count.Rows.Count; rowCount++) { ideal_tenant = (Rows_Count.Cells[rowCount, 7] as excel.Range).Text; var User_id = Browser.driver.FindElement(By.XPath("//*[@id='main-content']/div/form/fieldset/div[5]/div[2]/input")); User_id.Clear(); User_id.SendKeys(ideal_tenant); } }
public static void Target_Rent() { var Rows_Count = Excel_Obj.ExcelApp(); int rowCount = 0; string description; for (rowCount = 2; rowCount <= Rows_Count.Rows.Count; rowCount++) { description = (Rows_Count.Cells[rowCount, 4] as excel.Range).Text; var User_id = Browser.driver.FindElement(By.XPath("//*[@id='main-content']/div/form/fieldset/div[4]/div[1]/input")); User_id.Clear(); User_id.SendKeys(description); } }
public static void Description() { Browser.driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10); var Rows_Count = Excel_Obj.ExcelApp(); int rowCount = 0; string description; for (rowCount = 2; rowCount <= Rows_Count.Rows.Count; rowCount++) { description = (Rows_Count.Cells[rowCount, 3] as excel.Range).Text; var User_id = Browser.driver.FindElement(By.XPath("//*[@id='main-content']/div/form/fieldset/div[3]/div[2]/textarea")); User_id.Clear(); User_id.SendKeys(description); } }