Solved

Need help login into my yahoo mail account using Htmlunit in java

Posted on 2013-06-19
4
821 Views
Last Modified: 2013-06-26
Hello all,
I need help on trying to log into my yahoo email, using Htmlunit in java. I am getting errors, I am really new to Htmlunit. I heard this is the best tool to use for screen scraping and in order for me to do screen scraping i need to log into my intranet but I am practicing using my yahoo mail. Please help!!

import java.net.*;
import com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException;
import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.html.*;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;


public class HtmlDelete {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        HtmlDelete main = new HtmlDelete();
        try {
            main.submittingForm();
        } catch (Exception ex) {
            Logger.getLogger(HtmlDelete.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    public void submittingForm() throws Exception {
        final WebClient webClient = new WebClient();
        //webClient.setJavaScriptEnabled(false);
        // Get the first page
        final HtmlPage page1 = webClient.getPage("https://login.yahoo.com/config/login_verify2?.intl=us&.src=ym");

        // Get the form that we are dealing with and within that form,
        // find the submit button and the field that we want to change.
        final HtmlForm form = page1.getFormByName("login_form");

        //final HtmlSubmitInput button = form.getInputByName("subbtn");
        final HtmlSubmitInput button = page1.getHtmlElementById(".save");
        final HtmlTextInput loginName = form.getInputByName("login");
        final HtmlPasswordInput loginPs = form.getInputByName("passwd");

        // Change the value of the text field
        loginName.setValueAttribute("xxxx@yahoo.com");
        loginPs.setValueAttribute("exxxxx5");


        // Now submit the form by clicking the button and get back the second page.
        final HtmlPage page2 = button.click();
        final String pageAsXml = page2.asText();
        System.out.println(pageAsXml);
        //webClient.closeAllWindows();
    }


}

Open in new window


my output errors
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://s.yimg.com/lq/i/reg/css/yregbase_sec_ui_1_9.css' [1:49] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://s.yimg.com/lq/i/reg/css/yregbase_sec_ui_1_9.css' [1:49] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://s.yimg.com/lq/i/reg/css/yregbase_sec_ui_1_9.css' [1:210] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://s.yimg.com/lq/i/reg/css/yregbase_sec_ui_1_9.css' [1:210] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://s.yimg.com/lq/i/reg/css/yregbase_sec_ui_1_9.css' [1:10255] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://s.yimg.com/lq/i/reg/css/yregbase_sec_ui_1_9.css' [1:10255] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://login.yahoo.com/config/login_verify2?.intl=us&.src=ym' [112:12] Error in @media rule. (Invalid token "and". Was expecting one of: <S>, <LBRACE>, <COMMA>.)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://login.yahoo.com/config/login_verify2?.intl=us&.src=ym' [112:12] Ignoring the whole rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://login.yahoo.com/config/login_verify2?.intl=us&.src=ym' [139:65] Error in style rule. (Invalid token ":". Was expecting one of: <EOF>, <S>, <NUMBER>, "inherit", <IDENT>, <STRING>, <PLUS>, <COMMA>, <HASH>, <IMPORTANT_SYM>, <EMS>, <EXS>, <LENGTH_PX>, <LENGTH_CM>, <LENGTH_MM>, <LENGTH_IN>, <LENGTH_PT>, <LENGTH_PC>, <ANGLE_DEG>, <ANGLE_RAD>, <ANGLE_GRAD>, <TIME_MS>, <TIME_S>, <FREQ_HZ>, <FREQ_KHZ>, <PERCENTAGE>, <DIMENSION>, <URI>, <FUNCTION>, "}", ";", "/", "-".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://login.yahoo.com/config/login_verify2?.intl=us&.src=ym' [139:65] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://s.yimg.com/lq/lib/reg/css/container-min-1.css' [7:1222] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://s.yimg.com/lq/lib/reg/css/container-min-1.css' [7:1222] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://s.yimg.com/lq/lib/reg/css/container-min-1.css' [7:1361] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://s.yimg.com/lq/lib/reg/css/container-min-1.css' [7:1361] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://s.yimg.com/lq/lib/reg/css/container-min-1.css' [7:1561] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://s.yimg.com/lq/lib/reg/css/container-min-1.css' [7:1561] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://s.yimg.com/lq/lib/reg/css/container-min-1.css' [7:1797] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://s.yimg.com/lq/lib/reg/css/container-min-1.css' [7:1797] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://s.yimg.com/lq/lib/reg/css/container-min-1.css' [7:2600] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://s.yimg.com/lq/lib/reg/css/container-min-1.css' [7:2600] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://login.yahoo.com/config/login_verify2?.intl=us&.src=ym' [23:78] Error in style rule. (Invalid token ":". Was expecting one of: <EOF>, <S>, <NUMBER>, "inherit", <IDENT>, <STRING>, <PLUS>, <COMMA>, <HASH>, <IMPORTANT_SYM>, <EMS>, <EXS>, <LENGTH_PX>, <LENGTH_CM>, <LENGTH_MM>, <LENGTH_IN>, <LENGTH_PT>, <LENGTH_PC>, <ANGLE_DEG>, <ANGLE_RAD>, <ANGLE_GRAD>, <TIME_MS>, <TIME_S>, <FREQ_HZ>, <FREQ_KHZ>, <PERCENTAGE>, <DIMENSION>, <URI>, <FUNCTION>, "}", ";", "/", "-".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://login.yahoo.com/config/login_verify2?.intl=us&.src=ym' [23:78] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [1:5423] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [1:5423] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [2:342] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [2:342] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [2:530] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [2:530] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [2:804] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [2:804] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [2:1750] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [2:1750] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [2:2390] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [2:2390] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [2:3298] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [2:3298] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [2:4476] Error in expression. (Invalid token "#3494b2". Was expecting one of: <S>, <NUMBER>, <IDENT>, <STRING>, <PLUS>, <COMMA>, <URI>, "-", "=", ")".)
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [2:4497] Error in style rule. (Invalid token "background-image". Was expecting one of: <EOF>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [2:4497] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [2:4924] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://s.yimg.com/zz/combo?kx/ucs/uh/css/291/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/uh/css/288/yunivhead_https-min.css' [2:4924] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://login.yahoo.com/config/login_verify2?.intl=us&.src=ym' [3:7] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://login.yahoo.com/config/login_verify2?.intl=us&.src=ym' [3:7] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://login.yahoo.com/config/login_verify2?.intl=us&.src=ym' [6:7] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://login.yahoo.com/config/login_verify2?.intl=us&.src=ym' [6:7] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://login.yahoo.com/config/login_verify2?.intl=us&.src=ym' [7:57] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://login.yahoo.com/config/login_verify2?.intl=us&.src=ym' [7:57] Ignoring the following declarations in this rule.
WARN  (DefaultCssErrorHandler.java:39 ) - CSS error: 'https://login.yahoo.com/config/login_verify2?.intl=us&.src=ym' [12:69] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".)
WARN  (DefaultCssErrorHandler.java:53 ) - CSS warning: 'https://login.yahoo.com/config/login_verify2?.intl=us&.src=ym' [12:69] Ignoring the following declarations in this rule.
WARN  (IncorrectnessListenerImpl.java:38 ) - Obsolete content type encountered: 'application/x-javascript'.
WARN  (     HtmlScript.java:469) - Script is not JavaScript (type: text/plain, language: ). Skipping execution.
WARN  (     HtmlScript.java:469) - Script is not JavaScript (type: , language: VBScript). Skipping execution.
WARN  (IncorrectnessListenerImpl.java:38 ) - Obsolete content type encountered: 'application/x-javascript'.
WARN  (IncorrectnessListenerImpl.java:38 ) - Obsolete content type encountered: 'application/x-javascript'.
ERROR (StrictErrorReporter.java:80 ) - runtimeError: message=[innerHTML is read-only for tag table] sourceName=[https://s.yimg.com/lq/combo?yui-ssl/3.4.1/build/oop/oop-min.js&yui-ssl/3.4.1/build/event-custom-base/event-custom-base-min.js&yui-ssl/3.4.1/build/dom-core/dom-core-min.js&yui-ssl/3.4.1/build/dom-base/dom-base-min.js&yui-ssl/3.4.1/build/selector-native/selector-native-min.js&yui-ssl/3.4.1/build/selector/selector-min.js&yui-ssl/3.4.1/build/node-core/node-core-min.js&yui-ssl/3.4.1/build/node-base/node-base-min.js&yui-ssl/3.4.1/build/event-base/event-base-min.js&yui-ssl/3.4.1/build/event-base-ie/event-base-ie-min.js&yui-ssl/3.4.1/build/event-delegate/event-delegate-min.js&yui-ssl/3.4.1/build/node-event-delegate/node-event-delegate-min.js&yui-ssl/3.4.1/build/pluginhost-base/pluginhost-base-min.js&yui-ssl/3.4.1/build/pluginhost-config/pluginhost-config-min.js&yui-ssl/3.4.1/build/node-pluginhost/node-pluginhost-min.js&yui-ssl/3.4.1/build/dom-style/dom-style-min.js&yui-ssl/3.4.1/build/dom-style-ie/dom-style-ie-min.js&yui-ssl/3.4.1/build/dom-screen/dom-screen-min.js&yui-ssl/3.4.1/build/node-screen/node-screen-min.js&yui-ssl/3.4.1/build/node-style/node-style-min.js&yui-ssl/3.4.1/build/event-custom-complex/event-custom-complex-min.js&yui-ssl/3.4.1/build/event-synthetic/event-synthetic-min.js&yui-ssl/3.4.1/build/event-mousewheel/event-mousewheel-min.js&yui-ssl/3.4.1/build/event-mouseenter/event-mouseenter-min.js&yui-ssl/3.4.1/build/event-key/event-key-min.js&yui-ssl/3.4.1/build/event-focus/event-focus-min.js&yui-ssl/3.4.1/build/event-resize/event-resize-min.js&yui-ssl/3.4.1/build/event-hover/event-hover-min.js&yui-ssl/3.4.1/build/event-outside/event-outside-min.js&yui-ssl/3.4.1/build/substitute/substitute-min.js&yui-ssl/3.4.1/build/attribute-base/attribute-base-min.js&yui-ssl/3.4.1/build/attribute-complex/attribute-complex-min.js&yui-ssl/3.4.1/build/base-base/base-base-min.js&yui-ssl/3.4.1/build/plugin/plugin-min.js&yui-ssl/3.4.1/build/event-simulate/event-simulate-min.js&yui-ssl/3.4.1/build/node-event-simulate/node-event-simulate-min.js&yui-ssl/3.4.1/build/node-focusmanager/node-focusmanager-min.js] line=[27] lineSource=[null] lineOffset=[0]
WARN  (IncorrectnessListenerImpl.java:38 ) - Obsolete content type encountered: 'application/x-javascript'.
ERROR (StrictErrorReporter.java:80 ) - runtimeError: message=[innerHTML is read-only for tag table] sourceName=[https://s.yimg.com/lq/combo?yui-ssl/3.4.1/build/oop/oop-min.js&yui-ssl/3.4.1/build/event-custom-base/event-custom-base-min.js&yui-ssl/3.4.1/build/dom-core/dom-core-min.js&yui-ssl/3.4.1/build/dom-base/dom-base-min.js&yui-ssl/3.4.1/build/selector-native/selector-native-min.js&yui-ssl/3.4.1/build/selector/selector-min.js&yui-ssl/3.4.1/build/node-core/node-core-min.js&yui-ssl/3.4.1/build/node-base/node-base-min.js&yui-ssl/3.4.1/build/event-base/event-base-min.js&yui-ssl/3.4.1/build/event-base-ie/event-base-ie-min.js&yui-ssl/3.4.1/build/event-delegate/event-delegate-min.js&yui-ssl/3.4.1/build/node-event-delegate/node-event-delegate-min.js&yui-ssl/3.4.1/build/pluginhost-base/pluginhost-base-min.js&yui-ssl/3.4.1/build/pluginhost-config/pluginhost-config-min.js&yui-ssl/3.4.1/build/node-pluginhost/node-pluginhost-min.js&yui-ssl/3.4.1/build/dom-style/dom-style-min.js&yui-ssl/3.4.1/build/dom-style-ie/dom-style-ie-min.js&yui-ssl/3.4.1/build/dom-screen/dom-screen-min.js&yui-ssl/3.4.1/build/node-screen/node-screen-min.js&yui-ssl/3.4.1/build/node-style/node-style-min.js&yui-ssl/3.4.1/build/event-custom-complex/event-custom-complex-min.js&yui-ssl/3.4.1/build/event-synthetic/event-synthetic-min.js&yui-ssl/3.4.1/build/event-mousewheel/event-mousewheel-min.js&yui-ssl/3.4.1/build/event-mouseenter/event-mouseenter-min.js&yui-ssl/3.4.1/build/event-key/event-key-min.js&yui-ssl/3.4.1/build/event-focus/event-focus-min.js&yui-ssl/3.4.1/build/event-resize/event-resize-min.js&yui-ssl/3.4.1/build/event-hover/event-hover-min.js&yui-ssl/3.4.1/build/event-outside/event-outside-min.js&yui-ssl/3.4.1/build/substitute/substitute-min.js&yui-ssl/3.4.1/build/attribute-base/attribute-base-min.js&yui-ssl/3.4.1/build/attribute-complex/attribute-complex-min.js&yui-ssl/3.4.1/build/base-base/base-base-min.js&yui-ssl/3.4.1/build/plugin/plugin-min.js&yui-ssl/3.4.1/build/event-simulate/event-simulate-min.js&yui-ssl/3.4.1/build/node-event-simulate/node-event-simulate-min.js&yui-ssl/3.4.1/build/node-focusmanager/node-focusmanager-min.js] line=[27] lineSource=[null] lineOffset=[0]
Jun 19, 2013 9:31:47 AM com.att.temp.HtmlDelete main
SEVERE: null
======= EXCEPTION START ========
Exception class=[net.sourceforge.htmlunit.corejs.javascript.WrappedException]
com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:669)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:601)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:576)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1005)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:208)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:228)
	at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:813)
	at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:737)
	at com.gargoylesoftware.htmlunit.html.HtmlElement$1.run(HtmlElement.java:867)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:872)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1268)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:237)
	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:441)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:309)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:374)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359)
	at com.att.temp.HtmlDelete.submittingForm(HtmlDelete.java:34)
	at com.att.temp.HtmlDelete.main(HtmlDelete.java:24)
Caused by: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1888)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:719)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$500(JavaScriptEngine.java:91)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:664)
	... 21 more
Caused by: com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:669)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:601)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:576)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1005)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:208)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeListeners(EventListenersContainer.java:293)
	at com.gargoylesoftware.htmlunit.javascript.host.Window.executeEvent(Window.java:1975)
	at com.gargoylesoftware.htmlunit.javascript.host.Node.executeEvent(Node.java:725)
	at com.gargoylesoftware.htmlunit.html.HtmlScript.setAndExecuteReadyState(HtmlScript.java:535)
	at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:261)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:714)
	... 23 more
Caused by: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1888)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:719)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$500(JavaScriptEngine.java:91)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:664)
	... 35 more
Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:669)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:555)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1082)
	at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:399)
	at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:260)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:714)
	... 37 more
Caused by: net.sourceforge.htmlunit.corejs.javascript.JavaScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1006)
	at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798)
	at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:405)
	at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:275)
	at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3031)
	at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:115)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:546)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:654)
	... 44 more
WrappedException: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1888)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:719)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$500(JavaScriptEngine.java:91)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:664)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:601)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:576)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1005)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:208)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:228)
	at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:813)
	at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:737)
	at com.gargoylesoftware.htmlunit.html.HtmlElement$1.run(HtmlElement.java:867)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:872)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1268)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:237)
	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:441)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:309)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:374)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359)
	at com.att.temp.HtmlDelete.submittingForm(HtmlDelete.java:34)
	at com.att.temp.HtmlDelete.main(HtmlDelete.java:24)
Caused by: com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:669)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:601)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:576)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1005)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:208)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeListeners(EventListenersContainer.java:293)
	at com.gargoylesoftware.htmlunit.javascript.host.Window.executeEvent(Window.java:1975)
	at com.gargoylesoftware.htmlunit.javascript.host.Node.executeEvent(Node.java:725)
	at com.gargoylesoftware.htmlunit.html.HtmlScript.setAndExecuteReadyState(HtmlScript.java:535)
	at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:261)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:714)
	... 23 more
Caused by: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1888)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:719)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$500(JavaScriptEngine.java:91)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:664)
	... 35 more
Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:669)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:555)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1082)
	at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:399)
	at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:260)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:714)
	... 37 more
Caused by: net.sourceforge.htmlunit.corejs.javascript.JavaScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1006)
	at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798)
	at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:405)
	at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:275)
	at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3031)
	at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:115)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:546)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:654)
	... 44 more
Inside wrapped exception:
======= EXCEPTION START ========
Exception class=[net.sourceforge.htmlunit.corejs.javascript.WrappedException]
com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:669)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:601)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:576)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1005)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:208)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeListeners(EventListenersContainer.java:293)
	at com.gargoylesoftware.htmlunit.javascript.host.Window.executeEvent(Window.java:1975)
	at com.gargoylesoftware.htmlunit.javascript.host.Node.executeEvent(Node.java:725)
	at com.gargoylesoftware.htmlunit.html.HtmlScript.setAndExecuteReadyState(HtmlScript.java:535)
	at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:261)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:714)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$500(JavaScriptEngine.java:91)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:664)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:601)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:576)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1005)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:208)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:228)
	at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:813)
	at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:737)
	at com.gargoylesoftware.htmlunit.html.HtmlElement$1.run(HtmlElement.java:867)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:872)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1268)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:237)
	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:441)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:309)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:374)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359)
	at com.att.temp.HtmlDelete.submittingForm(HtmlDelete.java:34)
	at com.att.temp.HtmlDelete.main(HtmlDelete.java:24)
Caused by: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1888)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:719)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$500(JavaScriptEngine.java:91)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:664)
	... 35 more
Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:669)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:555)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1082)
	at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:399)
	at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:260)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:714)
	... 37 more
Caused by: net.sourceforge.htmlunit.corejs.javascript.JavaScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1006)
	at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798)
	at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:405)
	at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:275)
	at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3031)
	at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:115)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:546)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:654)
	... 44 more
WrappedException: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1888)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:719)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$500(JavaScriptEngine.java:91)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:664)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:601)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:576)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1005)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:208)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeListeners(EventListenersContainer.java:293)
	at com.gargoylesoftware.htmlunit.javascript.host.Window.executeEvent(Window.java:1975)
	at com.gargoylesoftware.htmlunit.javascript.host.Node.executeEvent(Node.java:725)
	at com.gargoylesoftware.htmlunit.html.HtmlScript.setAndExecuteReadyState(HtmlScript.java:535)
	at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:261)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:714)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$500(JavaScriptEngine.java:91)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:664)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:601)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:576)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1005)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:208)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:228)
	at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:813)
	at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:737)
	at com.gargoylesoftware.htmlunit.html.HtmlElement$1.run(HtmlElement.java:867)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:872)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1268)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:237)
	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:441)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:309)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:374)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359)
	at com.att.temp.HtmlDelete.submittingForm(HtmlDelete.java:34)
	at com.att.temp.HtmlDelete.main(HtmlDelete.java:24)
Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:669)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:555)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1082)
	at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:399)
	at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:260)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:714)
	... 37 more
Caused by: net.sourceforge.htmlunit.corejs.javascript.JavaScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1006)
	at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798)
	at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:405)
	at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:275)
	at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3031)
	at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:115)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:546)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:654)
	... 44 more
Inside wrapped exception:
======= EXCEPTION START ========
Exception class=[net.sourceforge.htmlunit.corejs.javascript.JavaScriptException]
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:669)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:555)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1082)
	at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:399)
	at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:260)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:714)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$500(JavaScriptEngine.java:91)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:664)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:601)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:576)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1005)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:208)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeListeners(EventListenersContainer.java:293)
	at com.gargoylesoftware.htmlunit.javascript.host.Window.executeEvent(Window.java:1975)
	at com.gargoylesoftware.htmlunit.javascript.host.Node.executeEvent(Node.java:725)
	at com.gargoylesoftware.htmlunit.html.HtmlScript.setAndExecuteReadyState(HtmlScript.java:535)
	at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:261)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:714)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$500(JavaScriptEngine.java:91)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:664)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:601)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:576)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1005)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:208)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:228)
	at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:813)
	at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:737)
	at com.gargoylesoftware.htmlunit.html.HtmlElement$1.run(HtmlElement.java:867)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
	at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:872)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1268)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:237)
	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:441)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:309)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:374)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359)
	at com.att.temp.HtmlDelete.submittingForm(HtmlDelete.java:34)
	at com.att.temp.HtmlDelete.main(HtmlDelete.java:24)
Caused by: net.sourceforge.htmlunit.corejs.javascript.JavaScriptException: TypeError: Cannot call method "one" of null (https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js#8)
	at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1006)
	at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798)
	at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:405)
	at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:275)
	at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3031)
	at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:115)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:546)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:654)
	... 44 more
JavaScriptException value = TypeError: Cannot call method "one" of null
======= EXCEPTION END ========
== CALLING JAVASCRIPT ==

  function () {
      if (this.readyState == "loaded" || this.readyState == "complete") {
          loadUHJS();
      }
  }

======= EXCEPTION END ========
== CALLING JAVASCRIPT ==

  function () {
      var seedfile = "https://s.yimg.com/lq/lib/yui-ssl/3.4.1/build/yui/yui-min.js";
      var yui3 = document.createElement("script");
      yui3.type = "text/javascript";
      yui3.id = "seedfile";
      yui3.src = seedfile;
      var head = document.getElementsByTagName("head")[0];
      head.appendChild(yui3);
      yui3.onload = function () {
          loadUHJS();
      };
      yui3.onreadystatechange = function () {
          if (this.readyState == "loaded" || this.readyState == "complete") {
              loadUHJS();
          }
      };
      loadUHJS = function () {
          YUI({combine: true, comboBase: "https://s.yimg.com/lq/combo?", root: "yui-ssl/3.4.1/build/"}).use("node", "event", "event-mouseenter", "substitute", "oop", "node-focusmanager", function (Y) {
          });
          var hdJS = document.createElement("script");
          hdJS.type = "text/javascript";
          hdJS.src = "https://s.yimg.com/zz/combo?kx/ucs/sts/js/442/skip-min.js&kx/ucs/uh/js/279/timestamp_library-min.js&kx/ucs/menu_utils/js/164/menu_utils_v2-min.js&kx/ucs/uh/js/267/aria_toolbar-min.js&kx/ucs/username/js/43/user_menu-min.js&kx/ucs/help/js/41/help_menu-min.js&kx/ucs/utility_link/js/20/utility_menu-min.js&kx/ucs/uh/js/262/logo_debug-min.js";
          head.appendChild(hdJS);
      };
  }

======= EXCEPTION END ========

Open in new window

0
Comment
Question by:yescobar2012
  • 3
4 Comments
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
You've got to understand that the amount of scripting support is not nearly as complete as you'd find in a browser. You'll probably need to find a workaround, e.g.

a. use a simplified view of the pages
b. use an api instead of scraping
0
 

Author Comment

by:yescobar2012
Comment Utility
can you give me working examples, I tried htmlunit.sourceforge.net/ but i don't see anything useful, I also try googling it and nothing please help me with working examples
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
Comment Utility
http://htmlunit.sourceforge.net/gettingStarted.html

is an example with a form. If the software can't handle the javascript, then that's all there is to it unless you either

a. fix the javascript handling yourself from the source
b. see my last comment
c. try a different Java-based library that can handle Javascript (google for it)
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
:)
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now