예제 #1
0
        public void testGH()
        {
            HtmlElementValueSetter hevs = this.getHtmlAppUtil().getHtmlSetter();
            HtmlElementActions     hea  = this.getHtmlAppUtil().getHtmlActor();

            hea.click(null, "action", "上传图片");
        }
예제 #2
0
 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);
 }
예제 #3
0
        public void tryFill3CStep1Submit()
        {
            HtmlElementActions hea = this.getHtmlAppUtil().getHtmlActor();

            hea.click(null, "continueWrite", "   查   看   ", "mainFrame");
        }