public SelectOptionByIndex ( |
||
by | ||
index | int | |
return | bool |
public void SeEmployer_Create_workorder_copyinfo() { //Arrange var _emp = frb.CloneEmployer(); var _wo = frb.CloneWorkOrder(); //Act ui.employerCreate(_emp); ui.WaitThenClickElement(By.Id("workOrderCreateTab_" + _emp.ID)); ui.WaitThenClickElement(By.Id("WO0-copyEmployerInfo")); ui.SelectOptionByIndex(By.Id("WO0-transportMethodID"), 1); ui.WaitThenClickElement(By.Id("WO0-SaveBtn")); //_wo.ID = ui.getSelectedTabRecordID("WO"); _wo.contactName = _emp.name; _wo.workSiteAddress1 = _emp.address1; _wo.workSiteAddress2 = _emp.address2; _wo.city = _emp.city; _wo.state = _emp.state; _wo.zipcode = _emp.zipcode; _wo.phone = _emp.phone; _wo.description = ""; _wo.statusID = HttpClientUtil.GetLookup(LCategory.orderstatus, LOrderStatus.Pending); _wo.ID = ui.getSelectedTabRecordID("WO"); //Assert ui.workOrderValidate(_wo); }