public void testGH() { HtmlElementValueSetter hevs = this.getHtmlAppUtil().getHtmlSetter(); HtmlElementActions hea = this.getHtmlAppUtil().getHtmlActor(); hea.click(null, "action", "上传图片"); }
public void step2Submit() { HtmlElementActions hea = this.getHtmlAppUtil().getHtmlActor(); hea.invokeScript("nextStep", DeclarationInfo.DeclarationXNY.MainFrameName); //hea.click(null, null, "下一步"); }
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 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); }
public void step1Submit() { HtmlElementActions hea = this.getHtmlAppUtil().getHtmlActor(); hea.invokeScript("formSubmit", DeclarationInfo.DeclarationXNY.MainFrameName); }
public void step0Submit() { HtmlElementActions hea = this.getHtmlAppUtil().getHtmlActor(); hea.invokeScript("FormSubmit"); }
public void tryFill3CStep2PressButton() { HtmlElementActions hea = this.getHtmlAppUtil().getHtmlActor(); hea.clickArea("0总则", "mainFrame", "paraleft"); }
public void tryFill3CStep1Submit() { HtmlElementActions hea = this.getHtmlAppUtil().getHtmlActor(); hea.click(null, "continueWrite", " 查 看 ", "mainFrame"); }