private async Task setExternalGeneral(TankSummaryReader tsr) { //goto and edit await navigateAndWait("ctl00_ContentPlaceHolder1_WcMenuResLh1_cmdExternalInspectionGeneral"); await navigateAndWait("ctl00_ContentPlaceHolder1_cmdEdit"); //set coatings and structre await setDropdown("ctl00_ContentPlaceHolder1_cmbStructure", tsr.getReport(ReportSection.General, "Structure Ext").ratingInt); await setDropdown("ctl00_ContentPlaceHolder1_cmbCoatings", tsr.getReport(ReportSection.General, "Coatings Ext").ratingInt); //save await navigateAndWait("ctl00_ContentPlaceHolder1_cmdSave"); }
private async Task setInternalGeneral(TankSummaryReader tsr) { //goto and edit await navigateAndWait("ctl00_ContentPlaceHolder1_WcMenuResLh1_cmdInternalInspectionGeneral"); await navigateAndWait("ctl00_ContentPlaceHolder1_cmdEdit"); //set coatings and structre string structInt = tsr.getReport(ReportSection.General, "Structure Int").ratingInt; checkMinIntIsNotZero(ref structInt); string coatInt = tsr.getReport(ReportSection.General, "Coatings Int").ratingInt; checkMinIntIsNotZero(ref coatInt); await setDropdown("ctl00_ContentPlaceHolder1_cmbStructure", structInt); await setDropdown("ctl00_ContentPlaceHolder1_cmbCoatings", coatInt); //save await navigateAndWait("ctl00_ContentPlaceHolder1_cmdSaveMain"); }
private async Task setCondition(TankSummaryReader tsr, ReportSection section, string areaName) { //create the userId's in here ReportArea ra = tsr.getReport(section, areaName); if (ra != null) { string prefix = "ctl00_ContentPlaceHolder1_"; await setDropdown(string.Format("{0}cmbPriority{1}", prefix, areaName.Replace(" ", string.Empty)), ra.ratingInt); await setDropdown(string.Format("{0}cmbStatus{1}", prefix, areaName.Replace(" ", string.Empty)), ra.ratingLetter); await setText(string.Format("{0}txtComment{1}", prefix, areaName.Replace(" ", string.Empty)), ra.comment); } }
private async Task setGeneralGeneral(TankSummaryReader tsr) { //goto general await navigateAndWait("ctl00_ContentPlaceHolder1_WcMenuResLh1_cmdGeneral"); //edit await navigateAndWait("ctl00_ContentPlaceHolder1_cmdEdit"); //Securit, contamination, safety await setDropdown("ctl00_ContentPlaceHolder1_cmbSecurity", tsr.getReport(ReportSection.General, "Security").ratingInt); await setText("ctl00_ContentPlaceHolder1_txtSecurityComment", tsr.getReport(ReportSection.General, "Security").comment); await setDropdown("ctl00_ContentPlaceHolder1_cmbContamination", tsr.getReport(ReportSection.General, "Contamination").ratingInt); await setText("ctl00_ContentPlaceHolder1_txtContaminationComment", tsr.getReport(ReportSection.General, "Contamination").comment); await setDropdown("ctl00_ContentPlaceHolder1_cmbSafety", tsr.getReport(ReportSection.General, "Safety").ratingInt); await setText("ctl00_ContentPlaceHolder1_txtSafetyComment", tsr.getReport(ReportSection.General, "Safety").comment); //save await navigateAndWait("ctl00_ContentPlaceHolder1_cmdSave"); }