public void testGH() { HtmlElementValueSetter hevs = this.getHtmlAppUtil().getHtmlSetter(); HtmlElementActions hea = this.getHtmlAppUtil().getHtmlActor(); hea.click(null, "action", "上传图片"); }
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 tryFill3CStep1Submit() { HtmlElementActions hea = this.getHtmlAppUtil().getHtmlActor(); hea.click(null, "continueWrite", " 查 看 ", "mainFrame"); }