1.1:下拉框条件:后台取得ViewBag传给前台 MonitorController: public ActionResult BigData(): //下拉框筛选条件 var result = MonitorBLL.GetSoilPlantCountByCode(loginSoil); var r = (object)result.data; ViewBag.soilplantcount = r; // loginSoil是登录用户 public static ResponseModel G
示例脚本: click element id=provinceName #点击地区 省 wait until element is enabled xpath=.//*[@id='provinceNameDataGrid']/tbody/tr #等待 省份下拉框的出现 ${count1} get matching xpath count xpath=.//*[@id='provinceNameDataGrid']/tbody/tr #获取省份下拉值的数量 ${s1} evaluate rando