public void testGH() { HtmlElementValueSetter hevs = this.getHtmlAppUtil().getHtmlSetter(); HtmlElementActions hea = this.getHtmlAppUtil().getHtmlActor(); hea.click(null, "action", "上传图片"); }
public void step0Login() { HtmlElementValueSetter hevs = this.getHtmlAppUtil().getHtmlSetter(); hevs.setTextValue("UName", "UName", "testCatarc"); hevs.setTextValue("Pwd", "Pwd", "testCatarc"); }
public void deleteFirstRadio() { HtmlElementValueSetter hevs = this.getHtmlAppUtil().getHtmlSetter(); hevs.setRadioChecked(); this.getHtmlAppUtil().getHtmlActor().click("action", "action", "删除"); }
public void step1Fill() { HtmlElementValueSetter hevs = this.getHtmlAppUtil().getHtmlSetter(); HtmlElementActions hea = this.getHtmlAppUtil().getHtmlActor(); hevs.setRadioChecked("RadioGroup1_0", "cartype", "QQC", DeclarationInfo.DeclarationXNY.MainFrameName); hevs.setTextValue("car", "entity.car", "BJ5042XTY-G1", DeclarationInfo.DeclarationXNY.MainFrameName); }
public void step0Login() { HtmlElementValueSetter hevs = this.getHtmlAppUtil().getHtmlSetter(); hevs.setTextValue("departNo", "departNo", "78585081-3"); hevs.setTextValue("userno", "userno", "admin"); hevs.setTextValue("password", "password", "Saic_T&V"); }
//3C参数填报 public void tryFill3CStep2Fill() { HtmlElementValueSetter hevs = this.getHtmlAppUtil().getHtmlSetter(); hevs.setTextValue("f_c_0_1_2", "f_c_0_1_2", "测试生产厂名称", "mainFrame", "paramain"); hevs.setTextValue("f_0_2", "f_0_2", "测试生产厂名称", "mainFrame", "paramain"); hevs.setTextValue("f_0_2_0_2", "f_0_2_0_2", "测试车身型式", "mainFrame", "paramain"); hevs.setTextValue("f_c_0_2_0_0_1_2", "f_c_0_2_0_0_1_2", "测试整车型号", "mainFrame", "paramain"); hevs.setTextValue("f_c_0_2_1", "f_c_0_2_1", "中文名称", "mainFrame", "paramain"); hevs.setTextValue("f_0_2_1", "f_0_2_1", "英文名称", "mainFrame", "paramain"); }
public void step3Fill() { HtmlElementValueSetter hevs = this.getHtmlAppUtil().getHtmlSetter(); hevs.setTextValue(null, "carname", "测试名称", DeclarationInfo.DeclarationXNY.MainFrameName); hevs.setTextValue(null, "popname", "测试俗名", DeclarationInfo.DeclarationXNY.MainFrameName); hevs.selectItem("standard", "standard", "4", DeclarationInfo.DeclarationXNY.MainFrameName); hevs.selectItem(null, "category", "1", DeclarationInfo.DeclarationXNY.MainFrameName); hevs.setTextValue(null, "maxspeed", "100", DeclarationInfo.DeclarationXNY.MainFrameName); hevs.setTextValue(null, "maxweight", "1000", DeclarationInfo.DeclarationXNY.MainFrameName); hevs.setTextValue(null, "standweight", "1000", DeclarationInfo.DeclarationXNY.MainFrameName); hevs.setTextValue(null, "seats", "1000", DeclarationInfo.DeclarationXNY.MainFrameName); }
public void tryFillGHStep3AddAppendixInfo() { HtmlElementValueSetter hevs = this.getHtmlAppUtil().getHtmlSetter(); hevs.selectItem("select", "newsb", "福田牌"); hevs.setTextValue("zzcxh", "zclxh", "BJ5042XTY-G1"); hevs.setTextValue("zcxmc", "zclmc", "密闭式桶装垃圾车"); hevs.setTextValue("a", "a", "BJ5042XTY-G2"); hevs.setTextValue("newvinwz", "newvinwz", "发动机右侧"); hevs.selectItem("select", "newcllb", "N1"); hevs.setTextValue("newsccdz2", "newcxbswz", "N/A"); hevs.selectItem("newsccmc", "newsccmc", "北汽福田汽车股份有限公司"); hevs.setTextValue("newsccdz", "newsccdz", "北汽福田汽车股份有限公司"); hevs.setTextValue("newobdwz", "newobdwz", "车身后部"); }
public static Boolean tryLogin(WebBrowser mainWebBrowser) { try { HtmlElementValueSetter setter = new HtmlElementValueSetter(mainWebBrowser); HtmlElementActions act = new HtmlElementActions(mainWebBrowser); String username = Properties.Settings.Default.USERNAME; String password = Properties.Settings.Default.PASSWORD; if (!checkUsernameAndPassword()) { throw new Exception("用户名或密码为空"); } setter.setTextValue("UserName", username); setter.setTextValue("Password", password); act.click("loginButton"); } catch { return(false); } return(true); }
//3C选择车型 public void tryFill3CStep1Fill() { HtmlElementValueSetter hevs = this.getHtmlAppUtil().getHtmlSetter(); hevs.setRadioChecked(null, "id", "20141103213616gg6100", "mainFrame"); }