You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(6) |
Jul
(17) |
Aug
(18) |
Sep
(22) |
Oct
(16) |
Nov
(6) |
Dec
(11) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(11) |
Feb
(10) |
Mar
(34) |
Apr
(26) |
May
(6) |
Jun
(22) |
Jul
(14) |
Aug
(4) |
Sep
(47) |
Oct
(69) |
Nov
(23) |
Dec
(21) |
2005 |
Jan
(53) |
Feb
(33) |
Mar
(92) |
Apr
(65) |
May
(63) |
Jun
(57) |
Jul
(43) |
Aug
(132) |
Sep
(61) |
Oct
(75) |
Nov
(60) |
Dec
(130) |
2006 |
Jan
(74) |
Feb
(87) |
Mar
(101) |
Apr
(58) |
May
(54) |
Jun
(42) |
Jul
(31) |
Aug
(67) |
Sep
(61) |
Oct
(71) |
Nov
(28) |
Dec
(58) |
2007 |
Jan
(53) |
Feb
(50) |
Mar
(96) |
Apr
(66) |
May
(55) |
Jun
(130) |
Jul
(99) |
Aug
(115) |
Sep
(37) |
Oct
(78) |
Nov
(24) |
Dec
(70) |
2008 |
Jan
(94) |
Feb
(85) |
Mar
(197) |
Apr
(274) |
May
(119) |
Jun
(143) |
Jul
(193) |
Aug
(99) |
Sep
(160) |
Oct
(120) |
Nov
(178) |
Dec
(109) |
2009 |
Jan
(238) |
Feb
(169) |
Mar
(115) |
Apr
(109) |
May
(131) |
Jun
(167) |
Jul
(144) |
Aug
(193) |
Sep
(155) |
Oct
(154) |
Nov
(97) |
Dec
(127) |
2010 |
Jan
(108) |
Feb
(127) |
Mar
(176) |
Apr
(113) |
May
(130) |
Jun
(200) |
Jul
(115) |
Aug
(80) |
Sep
(92) |
Oct
(101) |
Nov
(124) |
Dec
(53) |
2011 |
Jan
(67) |
Feb
(144) |
Mar
(88) |
Apr
(60) |
May
(89) |
Jun
(54) |
Jul
(68) |
Aug
(81) |
Sep
(48) |
Oct
(40) |
Nov
(10) |
Dec
(20) |
2012 |
Jan
(21) |
Feb
(28) |
Mar
(17) |
Apr
(35) |
May
(41) |
Jun
(44) |
Jul
(68) |
Aug
(67) |
Sep
(89) |
Oct
(58) |
Nov
(47) |
Dec
(56) |
2013 |
Jan
(49) |
Feb
(28) |
Mar
(46) |
Apr
(31) |
May
(28) |
Jun
(37) |
Jul
(34) |
Aug
(52) |
Sep
(42) |
Oct
(108) |
Nov
(59) |
Dec
(56) |
2014 |
Jan
(41) |
Feb
(72) |
Mar
(46) |
Apr
(21) |
May
(19) |
Jun
(17) |
Jul
(15) |
Aug
(40) |
Sep
(11) |
Oct
(3) |
Nov
(5) |
Dec
(31) |
2015 |
Jan
(11) |
Feb
(12) |
Mar
(19) |
Apr
(19) |
May
(38) |
Jun
(54) |
Jul
(14) |
Aug
(42) |
Sep
(14) |
Oct
(16) |
Nov
(26) |
Dec
(14) |
2016 |
Jan
(3) |
Feb
(1) |
Mar
(24) |
Apr
(5) |
May
(15) |
Jun
(14) |
Jul
(33) |
Aug
(19) |
Sep
(8) |
Oct
(10) |
Nov
|
Dec
(2) |
2017 |
Jan
(16) |
Feb
(12) |
Mar
(23) |
Apr
(8) |
May
(11) |
Jun
(20) |
Jul
(21) |
Aug
(20) |
Sep
|
Oct
(6) |
Nov
(9) |
Dec
(2) |
2018 |
Jan
(7) |
Feb
(5) |
Mar
(6) |
Apr
(5) |
May
(1) |
Jun
(2) |
Jul
(2) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
|
Dec
(4) |
2019 |
Jan
(2) |
Feb
(2) |
Mar
(3) |
Apr
(4) |
May
|
Jun
(4) |
Jul
(9) |
Aug
(2) |
Sep
|
Oct
(4) |
Nov
(1) |
Dec
(7) |
2020 |
Jan
(2) |
Feb
(6) |
Mar
(9) |
Apr
(1) |
May
(1) |
Jun
(15) |
Jul
(1) |
Aug
(1) |
Sep
(2) |
Oct
(6) |
Nov
(3) |
Dec
(5) |
2021 |
Jan
(3) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
(3) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
(1) |
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(6) |
2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Ahmed A. <asa...@ya...> - 2015-09-27 05:43:23
|
Hi, tho...@gm... is subscribed, but not @googlemail.com Ahmed From: Tom(Desean) Ng <tho...@go...> To: Ahmed Ashour <asa...@ya...>; "htm...@li..." <htm...@li...> Cc: Tom(Desean) Ng <tho...@go...> Sent: Sunday, September 27, 2015 7:38 AM Subject: Re: Fail to locate the input text field on left menu as well I subscribed to the mailing list yesterday via http://htmlunit.sourceforge.net/mail-lists.html. I am not sure if I have submitted to the wrong thing though. (Please see the attached image). Please correct me if I did. I was basically using the code you provided. try (final WebClient webClient = new WebClient(BrowserVersion.CHROME)) { final HtmlPage page = webClient.getPage("http://www.aastocks.com/en/stock/detailquote.aspx?&symbol=1"); HtmlInput input = page.getHtmlElementById("PY_txt"); input.type("1"); final HtmlPage page2 = page.getHtmlElementById("imgHKStockSubmit").click(); System.out.println(page2.getUrl()); System.out.println(page2.asText()); System.out.println("***************************** Cookies:"); System.out.println(webClient.getCookieManager().getCookies()); The error message is listed below:Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:34 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:34 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' [2:1] Error in style rule. (Invalid token "@media". Was expecting one of: <S>, <LBRACE>, <COMMA>.)Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler warningWARNING: CSS warning: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' [2:1] Ignoring the following declarations in this rule.Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' [2:1] Error in style rule. (Invalid token "@media". Was expecting one of: <S>, <LBRACE>, <COMMA>.)Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler warningWARNING: CSS warning: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' [2:1] Ignoring the following declarations in this rule.Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' [2:1] Error in style rule. (Invalid token "@media". Was expecting one of: <S>, <LBRACE>, <COMMA>.)Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler warningWARNING: CSS warning: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' [2:1] Ignoring the following declarations in this rule.Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3' [202:19] Error in expression; ':' found after identifier "progid".Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3' [202:19] Error in expression; ':' found after identifier "progid".Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3' [202:19] Error in expression; ':' found after identifier "progid".Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' [104:392] Error in expression; ':' found after identifier "progid".Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' [106:110] Error in expression; ':' found after identifier "progid".Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' [104:392] Error in expression; ':' found after identifier "progid".Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' [106:110] Error in expression; ':' found after identifier "progid".Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' [104:392] Error in expression; ':' found after identifier "progid".Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' [1:2] Error in style rule. (Invalid token "@media". Was expecting one of: <S>, <LBRACE>, ".", ":", "[", <COMMA>, <HASH>, <S>.)Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' [106:110] Error in expression; ':' found after identifier "progid".Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler warningWARNING: CSS warning: 'http://www.aastocks.com/en/Style/Master_en.css' [1:2] Ignoring the following declarations in this rule.Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' [1:2] Error in style rule. (Invalid token "@media". Was expecting one of: <S>, <LBRACE>, ".", ":", "[", <COMMA>, <HASH>, <S>.)Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler warningWARNING: CSS warning: 'http://www.aastocks.com/en/Style/Master_en.css' [1:2] Ignoring the following declarations in this rule.Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' [1:12859] Error in style sheet. (Invalid token "}". Was expecting one of: <EOF>, <S>, <IDENT>, "<!--", "-->", ".", ":", "*", "[", <HASH>, <IMPORT_SYM>, <PAGE_SYM>, <MEDIA_SYM>, <FONT_FACE_SYM>, <ATKEYWORD>.)Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' [1:2] Error in style rule. (Invalid token "@media". Was expecting one of: <S>, <LBRACE>, ".", ":", "[", <COMMA>, <HASH>, <S>.)Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler warningWARNING: CSS warning: 'http://www.aastocks.com/en/Style/Master_en.css' [1:2] Ignoring the following declarations in this rule.Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' [1:12859] Error in style sheet. (Invalid token "}". Was expecting one of: <EOF>, <S>, <IDENT>, "<!--", "-->", ".", ":", "*", "[", <HASH>, <IMPORT_SYM>, <PAGE_SYM>, <MEDIA_SYM>, <FONT_FACE_SYM>, <ATKEYWORD>.)Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' [1:2] Error in style rule. (Invalid token "@media". Was expecting one of: <S>, <LBRACE>, ".", ":", "[", <COMMA>, <HASH>, <S>.)Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler warningWARNING: CSS warning: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' [1:2] Ignoring the following declarations in this rule.Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' [1:2] Error in style rule. (Invalid token "@media". Was expecting one of: <S>, <LBRACE>, ".", ":", "[", <COMMA>, <HASH>, <S>.)Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' [1:12859] Error in style sheet. (Invalid token "}". Was expecting one of: <EOF>, <S>, <IDENT>, "<!--", "-->", ".", ":", "*", "[", <HASH>, <IMPORT_SYM>, <PAGE_SYM>, <MEDIA_SYM>, <FONT_FACE_SYM>, <ATKEYWORD>.)Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler warningWARNING: CSS warning: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' [1:2] Ignoring the following declarations in this rule.Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler errorWARNING: CSS error: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' [1:2] Error in style rule. (Invalid token "@media". Was expecting one of: <S>, <LBRACE>, ".", ":", "[", <COMMA>, <HASH>, <S>.)Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler warningWARNING: CSS warning: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' [1:2] Ignoring the following declarations in this rule.Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:39 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:39 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:39 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'application/x-javascript'.Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:41 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:41 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:41 PM org.apache.http.client.protocol.ResponseProcessCookies processCookiesWARNING: Cookie rejected [test_cookie="CheckForPermission", version:0, domain:doubleclick.net, path:/, expiry:Sun Sep 27 13:49:40 HKT 2015] Illegal 'domain' attribute "doubleclick.net". Domain of origin: "pagead2.googlesyndication.com"Sep 27, 2015 1:34:41 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:41 PM com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument closeWARNING: close() called when document is not open.Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument closeWARNING: close() called when document is not open.Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument closeWARNING: close() called when document is not open.Sep 27, 2015 1:34:43 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'.Sep 27, 2015 1:34:44 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notifyWARNING: Obsolete content type encountered: 'text/javascript'. On Sep 27, 2015, at 4:04 AM, Ahmed Ashour <asa...@ya...> wrote: Hi Desean, - You are still not subscribed to the user-list.- Please provide the details, what errors you get, and what is your code. Ahmed From: Tom(Desean) Ng <tho...@go...> To: Ahmed Ashour <asa...@ya...> Cc: "htm...@li..." <htm...@li...>; "tho...@go..." <tho...@go...> Sent: Saturday, September 26, 2015 7:41 PM Subject: Re: Fail to locate the input text field on left menu as well Hi, Thanks Ahmed. The solution worked. Then several hours later, I got home and I tried to re-run the code again and I got errors again. This time I was not able to get access to the website. - What may the cause be ? - How can I overcome this? Thanks. Desean. On Sep 26, 2015, at 3:06 PM, Ahmed Ashour <asa...@ya...> wrote: Hi, - Please subscribe to the list before posting. The website has a CSS with URL //:, which wasn't correctly handled by HtmlUnit, and it now fixed in SVN.Please get the latest build, with which the far below code works.P.S. next time, you don't need to cross post :)Thanks,Ahmed try (final WebClient webClient = new WebClient(BrowserVersion.CHROME)) { final HtmlPage page = webClient.getPage("http://www.aastocks.com/en/stock/DetailQuote.aspx?&symbol1"); HtmlInput input = page.getHtmlElementById("PY_txt"); input.type("328"); final HtmlPage page2 = page.getHtmlElementById("imgHKStockSubmit").click(); System.out.println(page2.getUrl()); System.out.println(page2.asText()); } From: "htm...@li..." <htm...@li...> Sent: Saturday, September 26, 2015 8:41 AM ----- Forwarded Message ----- The attached message has been automatically discarded. am completely new to HtmlUnit and I do not really know how to read and understand the page source of a website. Nonetheless,I have written code (learned from this tutorial)to try and access the following websiteThen I am stuck, as I am not familiar with javascript. This is what I want to achieve: - I would like to type into 328 to the textfield on the left menu on that website - and click submit button So that I can be brought to the next page.However, with the code that I have written so far. I am NOT able to locate the input text field on the left menu of the website and click the submit button. Can someone show me how this can be done please? Thankspublic void testing() throws Exception { /* turn off annoying htmlunit warnings */ java.util.logging.Logger.getLogger("com.gargoylesoftware").setLevel(java.util.logging.Level.OFF); try (final WebClient webClient = new WebClient(BrowserVersion.CHROME)) { final HtmlPage page = webClient.getPage("http://www.aastocks.com/en/stock/DetailQuote.aspx?&symbol=1"); final HtmlDivision div = page.getHtmlElementById("LeftMenu_Button"); } } <Mail Attachment.eml> |
From: Ahmed A. <asa...@ya...> - 2015-09-26 20:04:46
|
Hi Desean, - You are still not subscribed to the user-list.- Please provide the details, what errors you get, and what is your code. Ahmed From: Tom(Desean) Ng <tho...@go...> To: Ahmed Ashour <asa...@ya...> Cc: "htm...@li..." <htm...@li...>; "tho...@go..." <tho...@go...> Sent: Saturday, September 26, 2015 7:41 PM Subject: Re: Fail to locate the input text field on left menu as well Hi, Thanks Ahmed. The solution worked. Then several hours later, I got home and I tried to re-run the code again and I got errors again. This time I was not able to get access to the website. - What may the cause be ? - How can I overcome this? Thanks. Desean. On Sep 26, 2015, at 3:06 PM, Ahmed Ashour <asa...@ya...> wrote: Hi, - Please subscribe to the list before posting. The website has a CSS with URL //:, which wasn't correctly handled by HtmlUnit, and it now fixed in SVN.Please get the latest build, with which the far below code works.P.S. next time, you don't need to cross post :)Thanks,Ahmed try (final WebClient webClient = new WebClient(BrowserVersion.CHROME)) { final HtmlPage page = webClient.getPage("http://www.aastocks.com/en/stock/DetailQuote.aspx?&symbol1"); HtmlInput input = page.getHtmlElementById("PY_txt"); input.type("328"); final HtmlPage page2 = page.getHtmlElementById("imgHKStockSubmit").click(); System.out.println(page2.getUrl()); System.out.println(page2.asText()); } From: "htm...@li..." <htm...@li...> Sent: Saturday, September 26, 2015 8:41 AM ----- Forwarded Message ----- The attached message has been automatically discarded. am completely new to HtmlUnit and I do not really know how to read and understand the page source of a website. Nonetheless,I have written code (learned from this tutorial)to try and access the following websiteThen I am stuck, as I am not familiar with javascript. This is what I want to achieve: - I would like to type into 328 to the textfield on the left menu on that website - and click submit button So that I can be brought to the next page.However, with the code that I have written so far. I am NOT able to locate the input text field on the left menu of the website and click the submit button. Can someone show me how this can be done please? Thankspublic void testing() throws Exception { /* turn off annoying htmlunit warnings */ java.util.logging.Logger.getLogger("com.gargoylesoftware").setLevel(java.util.logging.Level.OFF); try (final WebClient webClient = new WebClient(BrowserVersion.CHROME)) { final HtmlPage page = webClient.getPage("http://www.aastocks.com/en/stock/DetailQuote.aspx?&symbol=1"); final HtmlDivision div = page.getHtmlElementById("LeftMenu_Button"); } } <Mail Attachment.eml> |
From: Ahmed A. <asa...@ya...> - 2015-09-26 07:06:09
|
Hi, - Please subscribe to the list before posting. The website has a CSS with URL //:, which wasn't correctly handled by HtmlUnit, and it now fixed in SVN.Please get the latest build, with which the far below code works.P.S. next time, you don't need to cross post :)Thanks,Ahmed try (final WebClient webClient = new WebClient(BrowserVersion.CHROME)) { final HtmlPage page = webClient.getPage("http://www.aastocks.com/en/stock/DetailQuote.aspx?&symbol1"); HtmlInput input = page.getHtmlElementById("PY_txt"); input.type("328"); final HtmlPage page2 = page.getHtmlElementById("imgHKStockSubmit").click(); System.out.println(page2.getUrl()); System.out.println(page2.asText()); } From: "htm...@li..." <htm...@li...> Sent: Saturday, September 26, 2015 8:41 AM ----- Forwarded Message ----- The attached message has been automatically discarded. am completely new to HtmlUnit and I do not really know how to read and understand the page source of a website. Nonetheless,I have written code (learned from this tutorial)to try and access the following websiteThen I am stuck, as I am not familiar with javascript. This is what I want to achieve: - I would like to type into 328 to the textfield on the left menu on that website - and click submit button So that I can be brought to the next page.However, with the code that I have written so far. I am NOT able to locate the input text field on the left menu of the website and click the submit button. Can someone show me how this can be done please? Thankspublic void testing() throws Exception { /* turn off annoying htmlunit warnings */ java.util.logging.Logger.getLogger("com.gargoylesoftware").setLevel(java.util.logging.Level.OFF); try (final WebClient webClient = new WebClient(BrowserVersion.CHROME)) { final HtmlPage page = webClient.getPage("http://www.aastocks.com/en/stock/DetailQuote.aspx?&symbol=1"); final HtmlDivision div = page.getHtmlElementById("LeftMenu_Button"); } } |
From: Arya F. <ary...@gm...> - 2015-09-14 19:50:43
|
Hi Teryl Yes it is possible look at the example below. I have not compiled it but that's the idea new WebConnectionWrapper(webClient) { public WebResponse getResponse(WebRequest request) { WebResponse response = null; try { response = super.getResponse(request); System.out.println(request.getUrl().toString() } catch (Exception e) { e.printStackTrace(); } return response; } }; } On Mon, Sep 14, 2015 at 10:44 PM, Teryl Taylor <ter...@gm...> wrote: > Hi everyone, > > Is there an easy way to get the list of URLs that HTMLUnit requests during > its interaction with a website? > > Cheers, > > Teryl > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Teryl T. <ter...@gm...> - 2015-09-14 19:44:55
|
Hi everyone, Is there an easy way to get the list of URLs that HTMLUnit requests during its interaction with a website? Cheers, Teryl |
From: Ahmed A. <asa...@ya...> - 2015-09-06 19:38:02
|
Hi Mark, Please read http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Mark Ferris <sen...@gm...> To: htm...@li... Sent: Sunday, September 6, 2015 9:15 PM Subject: [Htmlunit-user] Quickbooks Online OAuth Hi htmlunit users, Has anyone successfully used htmlunit with Quickbooks Online's (QBO) OAuth process? Somewhat different from other OAuth examples and can't seem to navigate through the various pages. I successfully provide credentials and submit the first form but immediately face trouble.Depending upon the number of QBO company files, the next form requires company selection or, if only one exists, form redirects to final form with "Authorize" button. I only have one company file at the moment so expecting to find the Authorize button... final WebClient webClient = new WebClient(BrowserVersion.FIREFOX_38); webClient.setAjaxController(new NicelyResynchronizingAjaxController());final HtmlPage page1 = webClient.getPage(url);HtmlForm form = null;for (int i = 0; i < 20; i++) { if ((form = page1.getFirstByXPath("//*[@id='ius-sign-in']/form")) != null) { break; } synchronized (page1) { page1.wait(500); }}final HtmlSubmitInput button = form.getInputByName("SignIn");final HtmlTextInput textField = form.getInputByName("Email");final HtmlPasswordInput textField2 = form.getInputByName("Password");// Change the value of the text fieldtextField.setValueAttribute(QBO_USERNAME);textField2.setValueAttribute(QBO_PASSWORD);final HtmlPage page2 = button.click(); //Above appears to work..here's where I expect the Authorize button on a form...for (int i = 0; i < 20; i++) { if ((form = page2.getFirstByXPath("//*[@id='grantForm']")) != null) { break; } synchronized (page2) { page2.wait(500); }} 'form' value is always null regardless of the loop length above. I've tried xpath searching for the button id as well but still no joy. Plenty of htmlunit warnings but process continues even after the following......INFO: sign in successSep 06, 2015 2:04:50 PM com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl runSingleJobSEVERE: Job run failed with unexpected RuntimeException: TypeError: Cannot read property "ius" from undefined (script in https://accounts.intuit.com/xdr.html?v2=true from (149, 33) to (162, 11)#156)======= EXCEPTION START ========EcmaError: lineNumber=[156] column=[0] lineSource=[<no source>] name=[TypeError] sourceName=[script in https://accounts.intuit.com/xdr.html?v2=true from (149, 33) to (162, 11)] message=[TypeError: Cannot read property "ius" from undefined (script in https://accounts.intuit.com/xdr.html?v2=true from (149, 33) to (162, 11)#156)]com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "ius" from undefined (script in https://accounts.intuit.com/xdr.html?v2=true from (149, 33) to (162, 11)#156) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.handleJavaScriptException(JavaScriptEngine.java:953)... Would love to here any experiences or thoughts from those with ideas or interested in final solution. Happy to answer any questions or provide more detail. Best regards |
From: Mark F. <sen...@gm...> - 2015-09-06 19:15:35
|
Hi htmlunit users, Has anyone successfully used htmlunit with Quickbooks Online's (QBO) OAuth process? Somewhat different from other OAuth examples and can't seem to navigate through the various pages. I successfully provide credentials and submit the first form but immediately face trouble. Depending upon the number of QBO company files, the next form requires company selection or, if only one exists, form redirects to final form with "Authorize" button. I only have one company file at the moment so expecting to find the Authorize button... final WebClient webClient = new WebClient(BrowserVersion.FIREFOX_38); webClient.setAjaxController(new NicelyResynchronizingAjaxController()); final HtmlPage page1 = webClient.getPage(url); HtmlForm form = null; for (int i = 0; i < 20; i++) { if ((form = page1.getFirstByXPath("//*[@id='ius-sign-in']/form")) != null) { break; } synchronized (page1) { page1.wait(500); } } final HtmlSubmitInput button = form.getInputByName("SignIn"); final HtmlTextInput textField = form.getInputByName("Email"); final HtmlPasswordInput textField2 = form.getInputByName("Password"); // Change the value of the text field textField.setValueAttribute(QBO_USERNAME); textField2.setValueAttribute(QBO_PASSWORD); final HtmlPage page2 = button.click(); /*/Above appears to work..here's where I expect the Authorize button on a form...* for (int i = 0; i < 20; i++) { if ((form = page2.getFirstByXPath("//*[@id='grantForm']")) != null) { break; } synchronized (page2) { page2.wait(500); } } 'form' value is always null regardless of the loop length above. I've tried xpath searching for the button id as well but still no joy. Plenty of htmlunit warnings but process continues even after the following... ... INFO: sign in success Sep 06, 2015 2:04:50 PM com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl runSingleJob SEVERE: Job run failed with unexpected RuntimeException: TypeError: Cannot read property "ius" from undefined (script in https://accounts.intuit.com/xdr.html?v2=true from (149, 33) to (162, 11)#156) ======= EXCEPTION START ======== EcmaError: lineNumber=[156] column=[0] lineSource=[<no source>] name=[TypeError] sourceName=[script in https://accounts.intuit.com/xdr.html?v2=true from (149, 33) to (162, 11)] message=[TypeError: Cannot read property "ius" from undefined (script in https://accounts.intuit.com/xdr.html?v2=true from (149, 33) to (162, 11)#156)] com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "ius" from undefined (script in https://accounts.intuit.com/xdr.html?v2=true from (149, 33) to (162, 11)#156) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.handleJavaScriptException(JavaScriptEngine.java:953) ... Would love to here any experiences or thoughts from those with ideas or interested in final solution. Happy to answer any questions or provide more detail. Best regards |
From: Parham, C. <cp...@bi...> - 2015-09-03 15:27:18
|
Oh happy days! File upload is working. Thanks for your help. From: Ahmed Ashour [mailto:asa...@ya...] Sent: Monday, August 24, 2015 1:01 PM To: htm...@li... Subject: Re: [Htmlunit-user] RichFaces 4 fileUpload Hi Clinton, Thanks for clarifying. Handling this has been just fixed in SVN. Please update if you still have an issue. Thanks, Ahmed ________________________________ From: "Parham, Clinton" <cp...@bi...<mailto:cp...@bi...>> To: Ahmed Ashour <asa...@ya...<mailto:asa...@ya...>>; "htm...@li...<mailto:htm...@li...>" <htm...@li...<mailto:htm...@li...>> Sent: Monday, August 24, 2015 4:31 PM Subject: Re: [Htmlunit-user] RichFaces 4 fileUpload Hi Ahmed, The reason your code isn’t producing a POST is because you are using an outdated element ID: ‘j_idt1245:upload’. This element ID changes whenever the website maintainers push new code out. So today, the ID is 'j_idt1269:upload'. I tried highlighting this in an earlier reply but maybe you missed it. Please try again while ensuring you’re using the current element ID. Thank you kindly, Clint ________________________________ The contents contained herein may contain confidential information. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, printing or action taken on the contents is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete this message. |
From: Ahmed A. <asa...@ya...> - 2015-08-24 17:01:08
|
Hi Clinton, Thanks for clarifying. Handling this has been just fixed in SVN. Please update if you still have an issue. Thanks,Ahmed From: "Parham, Clinton" <cp...@bi...> To: Ahmed Ashour <asa...@ya...>; "htm...@li..." <htm...@li...> Sent: Monday, August 24, 2015 4:31 PM Subject: Re: [Htmlunit-user] RichFaces 4 fileUpload Hi Ahmed, The reason your code isn’t producing a POST is because you are using an outdated element ID: ‘j_idt1245:upload’. This element ID changes whenever the website maintainers push new code out. So today, the ID is 'j_idt1269:upload'. I tried highlighting this in an earlier reply but maybe you missed it. Please try again while ensuring you’re using the current element ID. Thank you kindly, Clint #yiv6018586641 #yiv6018586641 -- _filtered #yiv6018586641 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv6018586641 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;} _filtered #yiv6018586641 {font-family:HelveticaNeue;panose-1:0 0 0 0 0 0 0 0 0 0;}#yiv6018586641 #yiv6018586641 p.yiv6018586641MsoNormal, #yiv6018586641 li.yiv6018586641MsoNormal, #yiv6018586641 div.yiv6018586641MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv6018586641 a:link, #yiv6018586641 span.yiv6018586641MsoHyperlink {color:blue;text-decoration:underline;}#yiv6018586641 a:visited, #yiv6018586641 span.yiv6018586641MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv6018586641 p.yiv6018586641MsoAcetate, #yiv6018586641 li.yiv6018586641MsoAcetate, #yiv6018586641 div.yiv6018586641MsoAcetate {margin:0in;margin-bottom:.0001pt;font-size:8.0pt;}#yiv6018586641 span.yiv6018586641BalloonTextChar {}#yiv6018586641 p.yiv6018586641msoacetate, #yiv6018586641 li.yiv6018586641msoacetate, #yiv6018586641 div.yiv6018586641msoacetate {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal, #yiv6018586641 li.yiv6018586641msonormal, #yiv6018586641 div.yiv6018586641msonormal {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal1, #yiv6018586641 li.yiv6018586641msonormal1, #yiv6018586641 div.yiv6018586641msonormal1 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msochpdefault, #yiv6018586641 li.yiv6018586641msochpdefault, #yiv6018586641 div.yiv6018586641msochpdefault {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal2, #yiv6018586641 li.yiv6018586641msonormal2, #yiv6018586641 div.yiv6018586641msonormal2 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msoacetate1, #yiv6018586641 li.yiv6018586641msoacetate1, #yiv6018586641 div.yiv6018586641msoacetate1 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal3, #yiv6018586641 li.yiv6018586641msonormal3, #yiv6018586641 div.yiv6018586641msonormal3 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal11, #yiv6018586641 li.yiv6018586641msonormal11, #yiv6018586641 div.yiv6018586641msonormal11 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msochpdefault1, #yiv6018586641 li.yiv6018586641msochpdefault1, #yiv6018586641 div.yiv6018586641msochpdefault1 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal4, #yiv6018586641 li.yiv6018586641msonormal4, #yiv6018586641 div.yiv6018586641msonormal4 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msoacetate2, #yiv6018586641 li.yiv6018586641msoacetate2, #yiv6018586641 div.yiv6018586641msoacetate2 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal5, #yiv6018586641 li.yiv6018586641msonormal5, #yiv6018586641 div.yiv6018586641msonormal5 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal12, #yiv6018586641 li.yiv6018586641msonormal12, #yiv6018586641 div.yiv6018586641msonormal12 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msochpdefault2, #yiv6018586641 li.yiv6018586641msochpdefault2, #yiv6018586641 div.yiv6018586641msochpdefault2 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal21, #yiv6018586641 li.yiv6018586641msonormal21, #yiv6018586641 div.yiv6018586641msonormal21 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msoacetate11, #yiv6018586641 li.yiv6018586641msoacetate11, #yiv6018586641 div.yiv6018586641msoacetate11 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal31, #yiv6018586641 li.yiv6018586641msonormal31, #yiv6018586641 div.yiv6018586641msonormal31 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal111, #yiv6018586641 li.yiv6018586641msonormal111, #yiv6018586641 div.yiv6018586641msonormal111 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msochpdefault11, #yiv6018586641 li.yiv6018586641msochpdefault11, #yiv6018586641 div.yiv6018586641msochpdefault11 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal6, #yiv6018586641 li.yiv6018586641msonormal6, #yiv6018586641 div.yiv6018586641msonormal6 {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msoacetate3, #yiv6018586641 li.yiv6018586641msoacetate3, #yiv6018586641 div.yiv6018586641msoacetate3 {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal7, #yiv6018586641 li.yiv6018586641msonormal7, #yiv6018586641 div.yiv6018586641msonormal7 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal13, #yiv6018586641 li.yiv6018586641msonormal13, #yiv6018586641 div.yiv6018586641msonormal13 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msochpdefault3, #yiv6018586641 li.yiv6018586641msochpdefault3, #yiv6018586641 div.yiv6018586641msochpdefault3 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal22, #yiv6018586641 li.yiv6018586641msonormal22, #yiv6018586641 div.yiv6018586641msonormal22 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msoacetate12, #yiv6018586641 li.yiv6018586641msoacetate12, #yiv6018586641 div.yiv6018586641msoacetate12 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal32, #yiv6018586641 li.yiv6018586641msonormal32, #yiv6018586641 div.yiv6018586641msonormal32 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal112, #yiv6018586641 li.yiv6018586641msonormal112, #yiv6018586641 div.yiv6018586641msonormal112 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msochpdefault12, #yiv6018586641 li.yiv6018586641msochpdefault12, #yiv6018586641 div.yiv6018586641msochpdefault12 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal41, #yiv6018586641 li.yiv6018586641msonormal41, #yiv6018586641 div.yiv6018586641msonormal41 {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msoacetate21, #yiv6018586641 li.yiv6018586641msoacetate21, #yiv6018586641 div.yiv6018586641msoacetate21 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal51, #yiv6018586641 li.yiv6018586641msonormal51, #yiv6018586641 div.yiv6018586641msonormal51 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal121, #yiv6018586641 li.yiv6018586641msonormal121, #yiv6018586641 div.yiv6018586641msonormal121 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msochpdefault21, #yiv6018586641 li.yiv6018586641msochpdefault21, #yiv6018586641 div.yiv6018586641msochpdefault21 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal211, #yiv6018586641 li.yiv6018586641msonormal211, #yiv6018586641 div.yiv6018586641msonormal211 {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msoacetate111, #yiv6018586641 li.yiv6018586641msoacetate111, #yiv6018586641 div.yiv6018586641msoacetate111 {margin:0in;margin-bottom:.0001pt;font-size:8.0pt;}#yiv6018586641 p.yiv6018586641msonormal311, #yiv6018586641 li.yiv6018586641msonormal311, #yiv6018586641 div.yiv6018586641msonormal311 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6018586641 p.yiv6018586641msonormal1111, #yiv6018586641 li.yiv6018586641msonormal1111, #yiv6018586641 div.yiv6018586641msonormal1111 {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;}#yiv6018586641 p.yiv6018586641msochpdefault111, #yiv6018586641 li.yiv6018586641msochpdefault111, #yiv6018586641 div.yiv6018586641msochpdefault111 {margin-right:0in;margin-left:0in;font-size:10.0pt;}#yiv6018586641 span.yiv6018586641msohyperlink {}#yiv6018586641 span.yiv6018586641msohyperlinkfollowed {}#yiv6018586641 span.yiv6018586641balloontextchar {}#yiv6018586641 span.yiv6018586641msohyperlink1 {}#yiv6018586641 span.yiv6018586641msohyperlinkfollowed1 {}#yiv6018586641 span.yiv6018586641msohyperlink21 {}#yiv6018586641 span.yiv6018586641msohyperlinkfollowed21 {}#yiv6018586641 span.yiv6018586641msohyperlink111 {}#yiv6018586641 span.yiv6018586641msohyperlinkfollowed111 {}#yiv6018586641 span.yiv6018586641emailstyle17111 {}#yiv6018586641 span.yiv6018586641emailstyle2711 {}#yiv6018586641 span.yiv6018586641emailstyle381 {}#yiv6018586641 span.yiv6018586641emailstyle56 {}#yiv6018586641 span.yiv6018586641emailstyle57 {}#yiv6018586641 span.yiv6018586641msohyperlink2 {color:blue;text-decoration:underline;}#yiv6018586641 span.yiv6018586641msohyperlinkfollowed2 {color:purple;text-decoration:underline;}#yiv6018586641 span.yiv6018586641balloontextchar1 {}#yiv6018586641 span.yiv6018586641msohyperlink11 {color:blue;text-decoration:underline;}#yiv6018586641 span.yiv6018586641msohyperlinkfollowed11 {color:purple;text-decoration:underline;}#yiv6018586641 span.yiv6018586641msohyperlink211 {color:blue;text-decoration:underline;}#yiv6018586641 span.yiv6018586641msohyperlinkfollowed211 {color:purple;text-decoration:underline;}#yiv6018586641 span.yiv6018586641msohyperlink1111 {color:blue;text-decoration:underline;}#yiv6018586641 span.yiv6018586641msohyperlinkfollowed1111 {color:purple;text-decoration:underline;}#yiv6018586641 span.yiv6018586641emailstyle171111 {color:windowtext;}#yiv6018586641 span.yiv6018586641emailstyle27111 {color:#1F497D;}#yiv6018586641 span.yiv6018586641emailstyle3811 {color:#1F497D;}#yiv6018586641 span.yiv6018586641emailstyle561 {color:#1F497D;}#yiv6018586641 span.yiv6018586641emailstyle571 {color:#1F497D;}#yiv6018586641 span.yiv6018586641EmailStyle86 {color:#1F497D;}#yiv6018586641 .yiv6018586641MsoChpDefault {font-size:10.0pt;} _filtered #yiv6018586641 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv6018586641 div.yiv6018586641WordSection1 {}#yiv6018586641 |
From: Parham, C. <cp...@bi...> - 2015-08-24 14:32:06
|
Hi Ahmed, The reason your code isn’t producing a POST is because you are using an outdated element ID: ‘j_idt1245:upload’. This element ID changes whenever the website maintainers push new code out. So today, the ID is 'j_idt1269:upload'. I tried highlighting this in an earlier reply but maybe you missed it. Please try again while ensuring you’re using the current element ID. Thank you kindly, Clint From: Ahmed Ashour [mailto:asa...@ya...] Sent: Sunday, August 23, 2015 10:13 PM To: htm...@li... Subject: Re: [Htmlunit-user] RichFaces 4 fileUpload Hi Clinton, >> Did you find my attachments and see the POST requests? Yes I did, but there was no POST request triggered by HtmlUnit with me. I even enabled HttpComponents header logging, and all requests are GET. … ________________________________ The contents contained herein may contain confidential information. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, printing or action taken on the contents is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete this message. |
From: Ahmed A. <asa...@ya...> - 2015-08-24 14:10:34
|
Hi Roberto, Yes, I have the same output. In the mentioned page, you can change the JavaScript through Proxy without modifying the website. Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 3:12 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, thanks for your kindness.. unfortunately the page a want to read is on a website that i cannot modify (http://www.hapag-lloyd.com/).. Maybe, each time a call the page (https://www.hapag-lloyd.com/en/tracing/by_container.html) they send me javascript that the browser interprets and changes the document DOM (as do the real browsers). I tried also another way with Selenium + HtmlUnit Driver with no success, while with Selenium + FireFox Driver is everything ok. Just to know.. do you see the same javascript code? Roberto ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 2:46 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, As you can see, there is no ScriptException related to the 'stack depth'. I guess your issue is that the content is not similar to real browser. Please isolate a case as hinted in http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 12:47 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, I have attached java source code for testing and the output (output.txt) I get. (with HtmlUnit 2.19-SNAPSHOT and JDK 1.7u80) Roberto. ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 12:15 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, The minimal code to reproduce the issue. Please also read http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 11:47 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, should I provide a full source code and the full javascript code retrieved (by email)? Roberto. ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Roberto B. - A. <r.b...@af...> - 2015-08-24 13:11:51
|
Hi Ahmed, thanks for your kindness.. unfortunately the page a want to read is on a website that i cannot modify (http://www.hapag-lloyd.com/).. Maybe, each time a call the page (https://www.hapag-lloyd.com/en/tracing/by_container.html) they send me javascript that the browser interprets and changes the document DOM (as do the real browsers). I tried also another way with Selenium + HtmlUnit Driver with no success, while with Selenium + FireFox Driver is everything ok. Just to know.. do you see the same javascript code? Roberto ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 2:46 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, As you can see, there is no ScriptException related to the 'stack depth'. I guess your issue is that the content is not similar to real browser. Please isolate a case as hinted in http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 12:47 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, I have attached java source code for testing and the output (output.txt) I get. (with HtmlUnit 2.19-SNAPSHOT and JDK 1.7u80) Roberto. ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 12:15 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, The minimal code to reproduce the issue. Please also read http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 11:47 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, should I provide a full source code and the full javascript code retrieved (by email)? Roberto. ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Ahmed A. <asa...@ya...> - 2015-08-24 12:48:04
|
Hi Roberto, As you can see, there is no ScriptException related to the 'stack depth'. I guess your issue is that the content is not similar to real browser. Please isolate a case as hinted in http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 12:47 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, I have attached java source code for testing and the output (output.txt) I get. (with HtmlUnit 2.19-SNAPSHOT and JDK 1.7u80) Roberto. ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 12:15 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, The minimal code to reproduce the issue. Please also read http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 11:47 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, should I provide a full source code and the full javascript code retrieved (by email)? Roberto. ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Marks, D. <Dav...@nr...> - 2015-08-24 12:39:22
|
I figured that was probably at least part of my problem, yeah. After tinkering with it a bit more over the weekend, I managed to load and interact with the webpage via HtmlUnit successfully using this set of options in the WebClient: setThrowExceptionOnScriptError(false); setCssEnabled(false); setThrowExceptionOnFailingStatusCode(false); waitForBackgroundJavaScript(50000); It seems likely only some functionality on the page was loaded successfully, but what I was targeting worked so this is good enough for me. Perhaps this set of options will help someone else in the future. ~David Marks From: Ahmed Ashour <asa...@ya...<mailto:asa...@ya...>> Reply-To: Ahmed Ashour <asa...@ya...<mailto:asa...@ya...>>, "htm...@li...<mailto:htm...@li...>" <htm...@li...<mailto:htm...@li...>> Date: Sunday, August 23, 2015 at 8:52 PM To: "htm...@li...<mailto:htm...@li...>" <htm...@li...<mailto:htm...@li...>> Subject: Re: [Htmlunit-user] Error Accessing Page Hi, VBScript is not supported by HtmlUnit, only JavaScript. Ahmed ________________________________ From: "Marks, David" <Dav...@nr...<mailto:Dav...@nr...>> To: "htm...@li...<mailto:htm...@li...>" <htm...@li...<mailto:htm...@li...>> Sent: Thursday, August 20, 2015 10:30 PM Subject: [Htmlunit-user] Error Accessing Page Hello, I'm a new user to HtmlUnit and am unfortunately receiving an error on the first page I tried to load. I'm not sure if the error lies with me or the page, but here are the details: Code I am trying to execute public void homePage() throws Exception { try (final WebClient webClient = new WebClient()) { final HtmlPage page = webClient.getPage("http://www.ukho.gov.uk/ProductsandServices/MartimeSafety/Pages/NMPublic.aspx"); } catch(Exception e) { e.printStackTrace(); } } It's failing on the getPage call, saying "======= EXCEPTION START ======== Exception class=[net.sourceforge.htmlunit.corejs.javascript.EvaluatorException] com.gargoylesoftware.htmlunit.ScriptException: syntax error (script in http://www.ukho.gov.uk/ProductsandServices/MartimeSafety/Pages/NMPublic.aspx from (714, 460) to (755, 10)#744)" followed by an impressively long stack trace. Lines 714-755 of the page seem to be snippets of code dealing with the browser context and the start of a VBSCRIPT block. Does this page have elements HtmlUnit can't handle currently or is my accessing approach incorrect? Thanks for the help, David Marks |
From: Roberto B. - A. <r.b...@af...> - 2015-08-24 10:47:35
|
Hi Ahmed, I have attached java source code for testing and the output (output.txt) I get. (with HtmlUnit 2.19-SNAPSHOT and JDK 1.7u80) Roberto. ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 12:15 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, The minimal code to reproduce the issue. Please also read http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 11:47 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, should I provide a full source code and the full javascript code retrieved (by email)? Roberto. ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Ahmed A. <asa...@ya...> - 2015-08-24 10:15:32
|
Hi Roberto, The minimal code to reproduce the issue. Please also read http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 11:47 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, should I provide a full source code and the full javascript code retrieved (by email)? Roberto. |
From: Roberto B. - A. <r.b...@af...> - 2015-08-24 09:47:23
|
Hi Ahmed, should I provide a full source code and the full javascript code retrieved (by email)? Roberto. ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 11:30 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, It could be because a bug has been fixed in 2.19-SNAPSHOT. Please use it instead of 2.18, and provide case if you have an issue, the HTML below contains line breaks. Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 11:24 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, i tried with last snapshot (2.19).. I get no errors.. but (as with version 2.18) i get a javascript-like page, that i think has to be interpreted to display an HTML-like page (as do the browser). Follows a brief code of the javascript-like page (page.asXml()) : <?xml version="1.0" encoding="ISO-8859-1"?> <html> <head> <meta http-equiv="Pragma" content="no-cache"/> <meta http-equiv="Expires" content="-1"/> <meta http-equiv="CacheControl" content="no-cache"/> </head> <body> <noscript> Please enable JavaScript to view the page content. </noscript> <apm_do_not_touch> <script language="javascript"> //<![CDATA[ (function(){ var securemsg; var packmsg; var CryptoUtils; try{(function(){try{var _S,JS,lS=1,LS=1,ZS=1,__=1,i_=1,I_=1,j_=1,J_=1;for(var l_=0;l_<JS;++l_)lS+=2,LS+=2,ZS+=2,__+=2,i_+=2,I_+=2,j_+=2,J_+=3;_S=lS+LS+ZS+__+i_+I_+j_+J_;window.iS===_S&&(window.iS=++_S)}catch(o_){window.iS=_S}var O_=window.sdkljshr489=!0;function z_(S){window.sdkljshr489&&S&&(O_=!1);return O_}function Z_(){}z_(window[Z_.name]===Z_);z_("undefined"===window.vodsS0);window.vodsS0=null;z_(/\x3c/.test(function(){return"\x3c"})&/x3d/.test(function(){return"0";"x3d"})); var s_=/mobi/i.test(navigator.userAgent),Si=+new Date,_i=s_?3E4:3E3;function ii(){return z_(Si+_i<(Si=+new Date))}(function(){3%O_&&eval(function(S){S=S.split("l");var J="";for(var l=0;l<S.length;++l)J+=String.fromCharCode(S[l]);return J}("40l102l117l110l99l116l105l111l110l40l41l123l118l97l114l32l104l101l97l100l61l100l111l99l117l109l101l110l116l46l104l101l97l100l59l118l97l114l32l97l108l108l61l102l117l110l99l116l105l111l110l40l97l114l114l41l123l114l101l116l117l114l110l32l97l114l114l46l102l105l108l116l101l114l40l102l117l110l99l116l105l111l110l40l120l41l123l114l101l116l117l114l110l32l47l105l115l47l46l116l101l115l116l40l120l41l125l41l46l108l101l110l103l116l104l125l59l118l97l114l32l117l61l39l84l101l120l116l32l105l115l32l97l118l97l105l108l97l98l108l101l32l117l110l100l101l114l32l116l104l101l32l67l114l101l97l116l105l118l101l32l67l111l109l109l111l110l115l32l65l116l116l114l105l98l117l116l105l111l110l45l83l104l97l114l101l65l108l105l107l101l32l76l105l99l101l110l115l101l59l97l100l100l105l116l105l111l110l97l108l32l116l101l114l109l115l32l109l97l121l32l97l112l112l108l121l46l32l66l121l32l117l115l105l110l103l32l116l104l105l115l32l115l105l116l101l44l121l111l117l32l97l103l114l101l101l32l116l111l32l116l104l101l32l84l101l114l10! 9l115l32l111l102l32l85l115l101l32l97l110l100l32l80l114l105l118l97l99l121l32l80l111l108l105l99l121l39l46l115l112l108l105l116l40l47l87l43l47l41l59l102l117l110l99l116l105l111l110l32l116l104l101l105l114l115l40l97l114l114l41l123l117l46l112l111l112l40l41l59l114l101l116l117l114l110l32l97l114l114l59l125l118l97l114l32l114l61l123l108l111l115l101l58l102l117l110l99l116l105l111l110l40l102l117l110l99l41l123l117l61l116l104l101l105l114l115l40l117l41l125l125l59l118l97l114l32l117l99l97l110l61l123l107l101l101l112l58l102l117l110l99l116l105l111l110l40l120l41l123l116l104l105l115l46l99l97l99l104l101l46l112l117l115l104l40l120l41l59l114l101l116l117l114l110l32l116l114l117l101l59l125l44l116l114l117l115l116l58l102l117l110l99l116l105l111l110l40l120l41l123l114l101l116l117l114l110l32l120l61l61l61l116l104l105l115l125l44l99l97l99l104l101l58l91l93l125l59l118l97l114l32l100l111l117l98l116l61l51l48l59l102l117l110l99l116l105l111l110l32l73l84l40l120l41l123l102l111l114l40l118l97l114l32l121l32l105l110l32l120l41l10! 5l102l40l120l91l121l93l61l61l61l54l54l55l41l114l101l116l117l114l110l32l116l114l117l101l59l114l101l116l117l114l110l32l102l97l108l115l101l125l59l102l117l110l99l116l105l111l110l32l98l108l97l109l101l40l97l44l98l41l123l114l101l116l117l114l110l32l97l40l98l41l125l59l105l102l40l117l99l97l110l46l107l101l101l112l40l104l101l97l100l41l41l123l119l104l105l108l101l40l97l108l108l40l117l41l41l123l114l46l108l111l115l101l40l116l104l101l105l114l115l41l38l38l98l108l97l109l101l40l73l84l44l117l41l59l125l125l125l41l40l41"))})(); ...................................... ...................................... })(); //]]> </script> </apm_do_not_touch> </body> </html> Roberto. ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 3:58 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, I tried with latest snapshot/build [1], and no error occurs. Ahmed [1] https://ci.canoo.com/teamcity/viewLog.html?buildTypeId=HtmlUnit_FastBuild&buildId=lastSuccessful&tab=artifacts From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Thursday, August 20, 2015 1:42 PM Subject: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed! When i try to get this page https://www.hapag-lloyd.com/en/tracing/by_container.html , I get an error and the page cannot be displayed HtmlUnit 2.18 and JDK 1.7 This is the code : import com.gargoylesoftware.htmlunit.*; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class HtmlUnitTest { static final WebClient browser; static { browser = new WebClient(BrowserVersion.CHROME); browser.getOptions().setJavaScriptEnabled(true); browser.setAjaxController(new NicelyResynchronizingAjaxController()); CookieManager cookieMan = new CookieManager(); cookieMan = browser.getCookieManager(); cookieMan.setCookiesEnabled(true); browser.getOptions().setRedirectEnabled(true); browser.getOptions().setThrowExceptionOnFailingStatusCode(false); browser.getOptions().setPrintContentOnFailingStatusCode(true); browser.getOptions().setThrowExceptionOnScriptError(false); } public static void main(String[] args) { doTestHapag(); } private static void doTestHapag() { try { HtmlPage page = (HtmlPage) browser.getPage("https://www.hapag-lloyd.com/en/tracing/by_container.html"); browser.waitForBackgroundJavaScript(5000); } catch (Exception e) { System.out.println("EXCEPTION --------------- " + e.toString()); } } } ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Ahmed A. <asa...@ya...> - 2015-08-24 09:30:53
|
Hi Roberto, It could be because a bug has been fixed in 2.19-SNAPSHOT. Please use it instead of 2.18, and provide case if you have an issue, the HTML below contains line breaks. Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 11:24 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, i tried with last snapshot (2.19).. I get no errors.. but (as with version 2.18) i get a javascript-like page, that i think has to be interpreted to display an HTML-like page (as do the browser). Follows a brief code of the javascript-like page (page.asXml()) : <?xml version="1.0" encoding="ISO-8859-1"?> <html> <head> <meta http-equiv="Pragma" content="no-cache"/> <meta http-equiv="Expires" content="-1"/> <meta http-equiv="CacheControl" content="no-cache"/> </head> <body> <noscript> Please enable JavaScript to view the page content. </noscript> <apm_do_not_touch> <script language="javascript"> //<![CDATA[ (function(){ var securemsg; var packmsg; var CryptoUtils; try{(function(){try{var _S,JS,lS=1,LS=1,ZS=1,__=1,i_=1,I_=1,j_=1,J_=1;for(var l_=0;l_<JS;++l_)lS+=2,LS+=2,ZS+=2,__+=2,i_+=2,I_+=2,j_+=2,J_+=3;_S=lS+LS+ZS+__+i_+I_+j_+J_;window.iS===_S&&(window.iS=++_S)}catch(o_){window.iS=_S}var O_=window.sdkljshr489=!0;function z_(S){window.sdkljshr489&&S&&(O_=!1);return O_}function Z_(){}z_(window[Z_.name]===Z_);z_("undefined"===window.vodsS0);window.vodsS0=null;z_(/\x3c/.test(function(){return"\x3c"})&/x3d/.test(function(){return"0";"x3d"})); var s_=/mobi/i.test(navigator.userAgent),Si=+new Date,_i=s_?3E4:3E3;function ii(){return z_(Si+_i<(Si=+new Date))}(function(){3%O_&&eval(function(S){S=S.split("l");var J="";for(var l=0;l<S.length;++l)J+=String.fromCharCode(S[l]);return J}("40l102l117l110l99l116l105l111l110l40l41l123l118l97l114l32l104l101l97l100l61l100l111l99l117l109l101l110l116l46l104l101l97l100l59l118l97l114l32l97l108l108l61l102l117l110l99l116l105l111l110l40l97l114l114l41l123l114l101l116l117l114l110l32l97l114l114l46l102l105l108l116l101l114l40l102l117l110l99l116l105l111l110l40l120l41l123l114l101l116l117l114l110l32l47l105l115l47l46l116l101l115l116l40l120l41l125l41l46l108l101l110l103l116l104l125l59l118l97l114l32l117l61l39l84l101l120l116l32l105l115l32l97l118l97l105l108l97l98l108l101l32l117l110l100l101l114l32l116l104l101l32l67l114l101l97l116l105l118l101l32l67l111l109l109l111l110l115l32l65l116l116l114l105l98l117l116l105l111l110l45l83l104l97l114l101l65l108l105l107l101l32l76l105l99l101l110l115l101l59l97l100l100l105l116l105l111l110l97l108l32l116l101l114l109l115l32l109l97l121l32l97l112l112l108l121l46l32l66l121l32l117l115l105l110l103l32l116l104l105l115l32l115l105l116l101l44l121l111l117l32l97l103l114l101l101l32l116l111l32l116l104l101l32l84l101l114l10! 9l115l32l111l102l32l85l115l101l32l97l110l100l32l80l114l105l118l97l99l121l32l80l111l108l105l99l121l39l46l115l112l108l105l116l40l47l87l43l47l41l59l102l117l110l99l116l105l111l110l32l116l104l101l105l114l115l40l97l114l114l41l123l117l46l112l111l112l40l41l59l114l101l116l117l114l110l32l97l114l114l59l125l118l97l114l32l114l61l123l108l111l115l101l58l102l117l110l99l116l105l111l110l40l102l117l110l99l41l123l117l61l116l104l101l105l114l115l40l117l41l125l125l59l118l97l114l32l117l99l97l110l61l123l107l101l101l112l58l102l117l110l99l116l105l111l110l40l120l41l123l116l104l105l115l46l99l97l99l104l101l46l112l117l115l104l40l120l41l59l114l101l116l117l114l110l32l116l114l117l101l59l125l44l116l114l117l115l116l58l102l117l110l99l116l105l111l110l40l120l41l123l114l101l116l117l114l110l32l120l61l61l61l116l104l105l115l125l44l99l97l99l104l101l58l91l93l125l59l118l97l114l32l100l111l117l98l116l61l51l48l59l102l117l110l99l116l105l111l110l32l73l84l40l120l41l123l102l111l114l40l118l97l114l32l121l32l105l110l32l120l41l10! 5l102l40l120l91l121l93l61l61l61l54l54l55l41l114l101l116l117l114l110l32l116l114l117l101l59l114l101l116l117l114l110l32l102l97l108l115l101l125l59l102l117l110l99l116l105l111l110l32l98l108l97l109l101l40l97l44l98l41l123l114l101l116l117l114l110l32l97l40l98l41l125l59l105l102l40l117l99l97l110l46l107l101l101l112l40l104l101l97l100l41l41l123l119l104l105l108l101l40l97l108l108l40l117l41l41l123l114l46l108l111l115l101l40l116l104l101l105l114l115l41l38l38l98l108l97l109l101l40l73l84l44l117l41l59l125l125l125l41l40l41"))})(); ...................................... ...................................... })(); //]]> </script> </apm_do_not_touch> </body> </html> Roberto. ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 3:58 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, I tried with latest snapshot/build [1], and no error occurs. Ahmed [1] https://ci.canoo.com/teamcity/viewLog.html?buildTypeId=HtmlUnit_FastBuild&buildId=lastSuccessful&tab=artifacts From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Thursday, August 20, 2015 1:42 PM Subject: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed! When i try to get this page https://www.hapag-lloyd.com/en/tracing/by_container.html , I get an error and the page cannot be displayed HtmlUnit 2.18 and JDK 1.7 This is the code : import com.gargoylesoftware.htmlunit.*; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class HtmlUnitTest { static final WebClient browser; static { browser = new WebClient(BrowserVersion.CHROME); browser.getOptions().setJavaScriptEnabled(true); browser.setAjaxController(new NicelyResynchronizingAjaxController()); CookieManager cookieMan = new CookieManager(); cookieMan = browser.getCookieManager(); cookieMan.setCookiesEnabled(true); browser.getOptions().setRedirectEnabled(true); browser.getOptions().setThrowExceptionOnFailingStatusCode(false); browser.getOptions().setPrintContentOnFailingStatusCode(true); browser.getOptions().setThrowExceptionOnScriptError(false); } public static void main(String[] args) { doTestHapag(); } private static void doTestHapag() { try { HtmlPage page = (HtmlPage) browser.getPage("https://www.hapag-lloyd.com/en/tracing/by_container.html"); browser.waitForBackgroundJavaScript(5000); } catch (Exception e) { System.out.println("EXCEPTION --------------- " + e.toString()); } } } ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Roberto B. - A. <r.b...@af...> - 2015-08-24 09:23:57
|
Hi Ahmed, i tried with last snapshot (2.19).. I get no errors.. but (as with version 2.18) i get a javascript-like page, that i think has to be interpreted to display an HTML-like page (as do the browser). Follows a brief code of the javascript-like page (page.asXml()) : <?xml version="1.0" encoding="ISO-8859-1"?> <html> <head> <meta http-equiv="Pragma" content="no-cache"/> <meta http-equiv="Expires" content="-1"/> <meta http-equiv="CacheControl" content="no-cache"/> </head> <body> <noscript> Please enable JavaScript to view the page content. </noscript> <apm_do_not_touch> <script language="javascript"> //<![CDATA[ (function(){ var securemsg; var packmsg; var CryptoUtils; try{(function(){try{var _S,JS,lS=1,LS=1,ZS=1,__=1,i_=1,I_=1,j_=1,J_=1;for(var l_=0;l_<JS;++l_)lS+=2,LS+=2,ZS+=2,__+=2,i_+=2,I_+=2,j_+=2,J_+=3;_S=lS+LS+ZS+__+i_+I_+j_+J_;window.iS===_S&&(window.iS=++_S)}catch(o_){window.iS=_S}var O_=window.sdkljshr489=!0;function z_(S){window.sdkljshr489&&S&&(O_=!1);return O_}function Z_(){}z_(window[Z_.name]===Z_);z_("undefined"===window.vodsS0);window.vodsS0=null;z_(/\x3c/.test(function(){return"\x3c"})&/x3d/.test(function(){return"0";"x3d"})); var s_=/mobi/i.test(navigator.userAgent),Si=+new Date,_i=s_?3E4:3E3;function ii(){return z_(Si+_i<(Si=+new Date))}(function(){3%O_&&eval(function(S){S=S.split("l");var J="";for(var l=0;l<S.length;++l)J+=String.fromCharCode(S[l]);return J}("40l102l117l110l99l116l105l111l110l40l41l123l118l97l114l32l104l101l97l100l61l100l111l99l117l109l101l110l116l46l104l101l97l100l59l118l97l114l32l97l108l108l61l102l117l110l99l116l105l111l110l40l97l114l114l41l123l114l101l116l117l114l110l32l97l114l114l46l102l105l108l116l101l114l40l102l117l110l99l116l105l111l110l40l120l41l123l114l101l116l117l114l110l32l47l105l115l47l46l116l101l115l116l40l120l41l125l41l46l108l101l110l103l116l104l125l59l118l97l114l32l117l61l39l84l101l120l116l32l105l115l32l97l118l97l105l108l97l98l108l101l32l117l110l100l101l114l32l116l104l101l32l67l114l101l97l116l105l118l101l32l67l111l109l109l111l110l115l32l65l116l116l114l105l98l117l116l105l111l110l45l83l104l97l114l101l65l108l105l107l101l32l76l105l99l101l110l115l101l59l97l100l100l105l116l105l111l110l97l108l32l116l101l114l109l115l32l109l97l121l32l97l112l112l108l121l46l32l66l121l32l117l115l105l110l103l32l116l104l105l115l32l115l105l116l101l44l121l111l117l32l97l103l114l101l101l32l116l111l32l116l104l101l32l84l101l114l10! 9l115l32l111l102l32l85l115l101l32l97l110l100l32l80l114l105l118l97l99l121l32l80l111l108l105l99l121l39l46l115l112l108l105l116l40l47l87l43l47l41l59l102l117l110l99l116l105l111l110l32l116l104l101l105l114l115l40l97l114l114l41l123l117l46l112l111l112l40l41l59l114l101l116l117l114l110l32l97l114l114l59l125l118l97l114l32l114l61l123l108l111l115l101l58l102l117l110l99l116l105l111l110l40l102l117l110l99l41l123l117l61l116l104l101l105l114l115l40l117l41l125l125l59l118l97l114l32l117l99l97l110l61l123l107l101l101l112l58l102l117l110l99l116l105l111l110l40l120l41l123l116l104l105l115l46l99l97l99l104l101l46l112l117l115l104l40l120l41l59l114l101l116l117l114l110l32l116l114l117l101l59l125l44l116l114l117l115l116l58l102l117l110l99l116l105l111l110l40l120l41l123l114l101l116l117l114l110l32l120l61l61l61l116l104l105l115l125l44l99l97l99l104l101l58l91l93l125l59l118l97l114l32l100l111l117l98l116l61l51l48l59l102l117l110l99l116l105l111l110l32l73l84l40l120l41l123l102l111l114l40l118l97l114l32l121l32l105l110l32l120l41l10! 5l102l40l120l91l121l93l61l61l61l54l54l55l41l114l101l116l117l114l110l32l116l114l117l101l59l114l101l116l117l114l110l32l102l97l108l115l101l125l59l102l117l110l99l116l105l111l110l32l98l108l97l109l101l40l97l44l98l41l123l114l101l116l117l114l110l32l97l40l98l41l125l59l105l102l40l117l99l97l110l46l107l101l101l112l40l104l101l97l100l41l41l123l119l104l105l108l101l40l97l108l108l40l117l41l41l123l114l46l108l111l115l101l40l116l104l101l105l114l115l41l38l38l98l108l97l109l101l40l73l84l44l117l41l59l125l125l125l41l40l41"))})(); ...................................... ...................................... })(); //]]> </script> </apm_do_not_touch> </body> </html> Roberto. ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 3:58 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, I tried with latest snapshot/build [1], and no error occurs. Ahmed [1] https://ci.canoo.com/teamcity/viewLog.html?buildTypeId=HtmlUnit_FastBuild&buildId=lastSuccessful&tab=artifacts From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Thursday, August 20, 2015 1:42 PM Subject: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed! When i try to get this page https://www.hapag-lloyd.com/en/tracing/by_container.html , I get an error and the page cannot be displayed HtmlUnit 2.18 and JDK 1.7 This is the code : import com.gargoylesoftware.htmlunit.*; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class HtmlUnitTest { static final WebClient browser; static { browser = new WebClient(BrowserVersion.CHROME); browser.getOptions().setJavaScriptEnabled(true); browser.setAjaxController(new NicelyResynchronizingAjaxController()); CookieManager cookieMan = new CookieManager(); cookieMan = browser.getCookieManager(); cookieMan.setCookiesEnabled(true); browser.getOptions().setRedirectEnabled(true); browser.getOptions().setThrowExceptionOnFailingStatusCode(false); browser.getOptions().setPrintContentOnFailingStatusCode(true); browser.getOptions().setThrowExceptionOnScriptError(false); } public static void main(String[] args) { doTestHapag(); } private static void doTestHapag() { try { HtmlPage page = (HtmlPage) browser.getPage("https://www.hapag-lloyd.com/en/tracing/by_container.html"); browser.waitForBackgroundJavaScript(5000); } catch (Exception e) { System.out.println("EXCEPTION --------------- " + e.toString()); } } } ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Ahmed A. <asa...@ya...> - 2015-08-24 02:13:19
|
Hi Clinton, >> Did you find my attachments and see the POST requests? Yes I did, but there was no POST request triggered by HtmlUnit with me. I even enabled HttpComponents header logging, and all requests are GET. Please try the below code, which I used. @Test public void testRichFacesFileUpload() throws Exception { final CollectingAlertHandler handler = new CollectingAlertHandler(); try (final WebClient webClient = new WebClient(BrowserVersion.CHROME, "localhost", 8888)){ webClient.setAlertHandler(handler); webClient.setAjaxController(new NicelyResynchronizingAjaxController()); String url = "http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=fileUpload&skin=blueSky"; HtmlPage page = webClient.getPage(url); // choose file to upload HtmlInput htmlInput = (HtmlInput) page.getByXPath("//input[@type='file']").get(0); page = (HtmlPage) htmlInput.setValueAttribute("C:\\use\\chrome.PNG"); // click Upload button HtmlElement element = (HtmlElement) page.getByXPath( "//*[@id='j_idt1245:upload']/div[1]/span[1]/span[2]/span").get( 0); page = (HtmlPage) element.click(); } catch(Exception e) { System.out.println(e.getMessage()); } for (String x : handler.getCollectedAlerts()) { System.err.println(x); } } Ahmed From: "Parham, Clinton" <cp...@bi...> To: Ahmed Ashour <asa...@ya...>; "htm...@li..." <htm...@li...> Sent: Thursday, August 20, 2015 3:15 PM Subject: Re: [Htmlunit-user] RichFaces 4 fileUpload <!--#yiv6103805429 _filtered #yiv6103805429 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv6103805429 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;} _filtered #yiv6103805429 {font-family:HelveticaNeue;}#yiv6103805429 #yiv6103805429 p.yiv6103805429MsoNormal, #yiv6103805429 li.yiv6103805429MsoNormal, #yiv6103805429 div.yiv6103805429MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 a:link, #yiv6103805429 span.yiv6103805429MsoHyperlink {color:blue;text-decoration:underline;}#yiv6103805429 a:visited, #yiv6103805429 span.yiv6103805429MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv6103805429 p.yiv6103805429MsoAcetate, #yiv6103805429 li.yiv6103805429MsoAcetate, #yiv6103805429 div.yiv6103805429MsoAcetate {margin:0in;margin-bottom:.0001pt;font-size:8.0pt;font-family:"Tahoma", "sans-serif";}#yiv6103805429 span.yiv6103805429BalloonTextChar {font-family:"Tahoma", "sans-serif";}#yiv6103805429 p.yiv6103805429msoacetate, #yiv6103805429 li.yiv6103805429msoacetate, #yiv6103805429 div.yiv6103805429msoacetate {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 p.yiv6103805429msonormal, #yiv6103805429 li.yiv6103805429msonormal, #yiv6103805429 div.yiv6103805429msonormal {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 p.yiv6103805429msonormal1, #yiv6103805429 li.yiv6103805429msonormal1, #yiv6103805429 div.yiv6103805429msonormal1 {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 p.yiv6103805429msochpdefault, #yiv6103805429 li.yiv6103805429msochpdefault, #yiv6103805429 div.yiv6103805429msochpdefault {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 p.yiv6103805429msonormal2, #yiv6103805429 li.yiv6103805429msonormal2, #yiv6103805429 div.yiv6103805429msonormal2 {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 p.yiv6103805429msoacetate1, #yiv6103805429 li.yiv6103805429msoacetate1, #yiv6103805429 div.yiv6103805429msoacetate1 {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 p.yiv6103805429msonormal3, #yiv6103805429 li.yiv6103805429msonormal3, #yiv6103805429 div.yiv6103805429msonormal3 {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 p.yiv6103805429msonormal11, #yiv6103805429 li.yiv6103805429msonormal11, #yiv6103805429 div.yiv6103805429msonormal11 {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 p.yiv6103805429msochpdefault1, #yiv6103805429 li.yiv6103805429msochpdefault1, #yiv6103805429 div.yiv6103805429msochpdefault1 {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 p.yiv6103805429msonormal4, #yiv6103805429 li.yiv6103805429msonormal4, #yiv6103805429 div.yiv6103805429msonormal4 {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 p.yiv6103805429msoacetate2, #yiv6103805429 li.yiv6103805429msoacetate2, #yiv6103805429 div.yiv6103805429msoacetate2 {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 p.yiv6103805429msonormal5, #yiv6103805429 li.yiv6103805429msonormal5, #yiv6103805429 div.yiv6103805429msonormal5 {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 p.yiv6103805429msonormal12, #yiv6103805429 li.yiv6103805429msonormal12, #yiv6103805429 div.yiv6103805429msonormal12 {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 p.yiv6103805429msochpdefault2, #yiv6103805429 li.yiv6103805429msochpdefault2, #yiv6103805429 div.yiv6103805429msochpdefault2 {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 p.yiv6103805429msonormal21, #yiv6103805429 li.yiv6103805429msonormal21, #yiv6103805429 div.yiv6103805429msonormal21 {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 p.yiv6103805429msoacetate11, #yiv6103805429 li.yiv6103805429msoacetate11, #yiv6103805429 div.yiv6103805429msoacetate11 {margin:0in;margin-bottom:.0001pt;font-size:8.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 p.yiv6103805429msonormal31, #yiv6103805429 li.yiv6103805429msonormal31, #yiv6103805429 div.yiv6103805429msonormal31 {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 p.yiv6103805429msonormal111, #yiv6103805429 li.yiv6103805429msonormal111, #yiv6103805429 div.yiv6103805429msonormal111 {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 p.yiv6103805429msochpdefault11, #yiv6103805429 li.yiv6103805429msochpdefault11, #yiv6103805429 div.yiv6103805429msochpdefault11 {margin-right:0in;margin-left:0in;font-size:10.0pt;font-family:"Times New Roman", "serif";}#yiv6103805429 span.yiv6103805429msohyperlink {}#yiv6103805429 span.yiv6103805429msohyperlinkfollowed {}#yiv6103805429 span.yiv6103805429msohyperlink2 {}#yiv6103805429 span.yiv6103805429msohyperlinkfollowed2 {}#yiv6103805429 span.yiv6103805429msohyperlink11 {}#yiv6103805429 span.yiv6103805429msohyperlinkfollowed11 {}#yiv6103805429 span.yiv6103805429emailstyle1711 {}#yiv6103805429 span.yiv6103805429emailstyle271 {}#yiv6103805429 span.yiv6103805429emailstyle38 {}#yiv6103805429 span.yiv6103805429msohyperlink1 {color:blue;text-decoration:underline;}#yiv6103805429 span.yiv6103805429msohyperlinkfollowed1 {color:purple;text-decoration:underline;}#yiv6103805429 span.yiv6103805429msohyperlink21 {color:blue;text-decoration:underline;}#yiv6103805429 span.yiv6103805429msohyperlinkfollowed21 {color:purple;text-decoration:underline;}#yiv6103805429 span.yiv6103805429msohyperlink111 {color:blue;text-decoration:underline;}#yiv6103805429 span.yiv6103805429msohyperlinkfollowed111 {color:purple;text-decoration:underline;}#yiv6103805429 span.yiv6103805429emailstyle17111 {color:windowtext;}#yiv6103805429 span.yiv6103805429emailstyle2711 {color:#1F497D;}#yiv6103805429 span.yiv6103805429emailstyle381 {color:#1F497D;}#yiv6103805429 span.yiv6103805429EmailStyle56 {font-family:"Calibri", "sans-serif";color:#1F497D;}#yiv6103805429 span.yiv6103805429EmailStyle57 {font-family:"Calibri", "sans-serif";color:#1F497D;}#yiv6103805429 .yiv6103805429MsoChpDefault {font-size:10.0pt;} _filtered #yiv6103805429 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv6103805429 div.yiv6103805429WordSection1 {}-->Hi Ahmed, Did you find my attachments and see the POST requests? Thank you, Clint From: Parham, Clinton Sent: Thursday, August 13, 2015 2:12 PM To: 'Ahmed Ashour'; htm...@li... Subject: RE: [Htmlunit-user] RichFaces 4 fileUpload Hi Ahmed, I did attach three files to my earlier email: FirefoxFileUpload.txt – shows POST that Charles captured for FireFox HTMLUnitFileUpload.txt – shows POST that Charles captured for HTMLUnit HTMLUnitTestCase.java – code to reproduce I see them attached in my Sent Items. Should I send them another way? Also, the id that you have in your code “j_idt1245:upload” sometimes changes on the site when they update it. Today the id is “j_idt498:upload”. Thanks. From: Ahmed Ashour [mailto:asa...@ya...] Sent: Thursday, August 13, 2015 1:44 PM To: htm...@li... Subject: Re: [Htmlunit-user] RichFaces 4 fileUpload Hi again, There are no POST requests by Charles for the below code. Please post your code and provide compared results. Ahmed @Test public void testRichFacesFileUpload() throws Exception { final CollectingAlertHandler handler = new CollectingAlertHandler(); try (final WebClient webClient = new WebClient(BrowserVersion.CHROME, "localhost", 8888)){ webClient.setAlertHandler(handler); webClient.setAjaxController(new NicelyResynchronizingAjaxController()); String url = "http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=fileUpload&skin=blueSky"; HtmlPage page = webClient.getPage(url); // choose file to upload HtmlInput htmlInput = (HtmlInput) page.getByXPath("//input[@type='file']").get(0); page = (HtmlPage) htmlInput.setValueAttribute("C:\\use\\chrome.PNG"); // click Upload button HtmlElement element = (HtmlElement) page.getByXPath( "//*[@id='j_idt1245:upload']/div[1]/span[1]/span[2]/span").get( 0); page = (HtmlPage) element.click(); } catch(Exception e) { System.out.println(e.getMessage()); } for (String x : handler.getCollectedAlerts()) { System.err.println(x); } } |
From: Ahmed A. <asa...@ya...> - 2015-08-24 01:59:01
|
Hi Roberto, I tried with latest snapshot/build [1], and no error occurs. Ahmed [1] https://ci.canoo.com/teamcity/viewLog.html?buildTypeId=HtmlUnit_FastBuild&buildId=lastSuccessful&tab=artifacts From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Thursday, August 20, 2015 1:42 PM Subject: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed! When i try to get this page https://www.hapag-lloyd.com/en/tracing/by_container.html , I get an error and the page cannot be displayed HtmlUnit 2.18 and JDK 1.7 This is the code : import com.gargoylesoftware.htmlunit.*; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class HtmlUnitTest { static final WebClient browser; static { browser = new WebClient(BrowserVersion.CHROME); browser.getOptions().setJavaScriptEnabled(true); browser.setAjaxController(new NicelyResynchronizingAjaxController()); CookieManager cookieMan = new CookieManager(); cookieMan = browser.getCookieManager(); cookieMan.setCookiesEnabled(true); browser.getOptions().setRedirectEnabled(true); browser.getOptions().setThrowExceptionOnFailingStatusCode(false); browser.getOptions().setPrintContentOnFailingStatusCode(true); browser.getOptions().setThrowExceptionOnScriptError(false); } public static void main(String[] args) { doTestHapag(); } private static void doTestHapag() { try { HtmlPage page = (HtmlPage) browser.getPage("https://www.hapag-lloyd.com/en/tracing/by_container.html"); browser.waitForBackgroundJavaScript(5000); } catch (Exception e) { System.out.println("EXCEPTION --------------- " + e.toString()); } } } |
From: Ahmed A. <asa...@ya...> - 2015-08-24 01:53:01
|
Hi, VBScript is not supported by HtmlUnit, only JavaScript. Ahmed From: "Marks, David" <Dav...@nr...> To: "htm...@li..." <htm...@li...> Sent: Thursday, August 20, 2015 10:30 PM Subject: [Htmlunit-user] Error Accessing Page Hello, I'm a new user to HtmlUnit and am unfortunately receiving an error on the first page I tried to load. I'm not sure if the error lies with me or the page, but here are the details: Code I am trying to execute public void homePage() throws Exception { try (final WebClient webClient = new WebClient()) { final HtmlPage page = webClient.getPage("http://www.ukho.gov.uk/ProductsandServices/MartimeSafety/Pages/NMPublic.aspx"); } catch(Exception e) { e.printStackTrace(); } } It's failing on the getPage call, saying "======= EXCEPTION START ======== Exception class=[net.sourceforge.htmlunit.corejs.javascript.EvaluatorException] com.gargoylesoftware.htmlunit.ScriptException: syntax error (script in http://www.ukho.gov.uk/ProductsandServices/MartimeSafety/Pages/NMPublic.aspx from (714, 460) to (755, 10)#744)" followed by an impressively long stack trace. Lines 714-755 of the page seem to be snippets of code dealing with the browser context and the start of a VBSCRIPT block. Does this page have elements HtmlUnit can't handle currently or is my accessing approach incorrect? Thanks for the help, David Marks |
From: Marks, D. <Dav...@nr...> - 2015-08-20 20:59:10
|
Hello, I'm a new user to HtmlUnit and am unfortunately receiving an error on the first page I tried to load. I'm not sure if the error lies with me or the page, but here are the details: Code I am trying to execute public void homePage() throws Exception { try (final WebClient webClient = new WebClient()) { final HtmlPage page = webClient.getPage("http://www.ukho.gov.uk/ProductsandServices/MartimeSafety/Pages/NMPublic.aspx"); } catch(Exception e) { e.printStackTrace(); } } It's failing on the getPage call, saying "======= EXCEPTION START ======== Exception class=[net.sourceforge.htmlunit.corejs.javascript.EvaluatorException] com.gargoylesoftware.htmlunit.ScriptException: syntax error (script in http://www.ukho.gov.uk/ProductsandServices/MartimeSafety/Pages/NMPublic.aspx from (714, 460) to (755, 10)#744)" followed by an impressively long stack trace. Lines 714-755 of the page seem to be snippets of code dealing with the browser context and the start of a VBSCRIPT block. Does this page have elements HtmlUnit can't handle currently or is my accessing approach incorrect? Thanks for the help, David Marks |
From: Parham, C. <cp...@bi...> - 2015-08-20 13:15:28
|
Hi Ahmed, Did you find my attachments and see the POST requests? Thank you, Clint From: Parham, Clinton Sent: Thursday, August 13, 2015 2:12 PM To: 'Ahmed Ashour'; htm...@li... Subject: RE: [Htmlunit-user] RichFaces 4 fileUpload Hi Ahmed, I did attach three files to my earlier email: FirefoxFileUpload.txt – shows POST that Charles captured for FireFox HTMLUnitFileUpload.txt – shows POST that Charles captured for HTMLUnit HTMLUnitTestCase.java – code to reproduce I see them attached in my Sent Items. Should I send them another way? Also, the id that you have in your code “j_idt1245:upload” sometimes changes on the site when they update it. Today the id is “j_idt498:upload”. Thanks. From: Ahmed Ashour [mailto:asa...@ya...] Sent: Thursday, August 13, 2015 1:44 PM To: htm...@li...<mailto:htm...@li...> Subject: Re: [Htmlunit-user] RichFaces 4 fileUpload Hi again, There are no POST requests by Charles for the below code. Please post your code and provide compared results. Ahmed @Test public void testRichFacesFileUpload() throws Exception { final CollectingAlertHandler handler = new CollectingAlertHandler(); try (final WebClient webClient = new WebClient(BrowserVersion.CHROME, "localhost", 8888)){ webClient.setAlertHandler(handler); webClient.setAjaxController(new NicelyResynchronizingAjaxController()); String url = "http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=fileUpload&skin=blueSky"; HtmlPage page = webClient.getPage(url); // choose file to upload HtmlInput htmlInput = (HtmlInput) page.getByXPath("//input[@type='file']").get(0); page = (HtmlPage) htmlInput.setValueAttribute("C:\\use\\chrome.PNG"); // click Upload button HtmlElement element = (HtmlElement) page.getByXPath( "//*[@id='j_idt1245:upload']/div[1]/span[1]/span[2]/span").get( 0); page = (HtmlPage) element.click(); } catch(Exception e) { System.out.println(e.getMessage()); } for (String x : handler.getCollectedAlerts()) { System.err.println(x); } } ________________________________ The contents contained herein may contain confidential information. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, printing or action taken on the contents is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete this message. |
From: Roberto B. - A. <r.b...@af...> - 2015-08-20 12:10:29
|
Hi Ahmed! When i try to get this page https://www.hapag-lloyd.com/en/tracing/by_container.html , I get an error and the page cannot be displayed HtmlUnit 2.18 and JDK 1.7 This is the code : import com.gargoylesoftware.htmlunit.*; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class HtmlUnitTest { static final WebClient browser; static { browser = new WebClient(BrowserVersion.CHROME); browser.getOptions().setJavaScriptEnabled(true); browser.setAjaxController(new NicelyResynchronizingAjaxController()); CookieManager cookieMan = new CookieManager(); cookieMan = browser.getCookieManager(); cookieMan.setCookiesEnabled(true); browser.getOptions().setRedirectEnabled(true); browser.getOptions().setThrowExceptionOnFailingStatusCode(false); browser.getOptions().setPrintContentOnFailingStatusCode(true); browser.getOptions().setThrowExceptionOnScriptError(false); } public static void main(String[] args) { doTestHapag(); } private static void doTestHapag() { try { HtmlPage page = (HtmlPage) browser.getPage("https://www.hapag-lloyd.com/en/tracing/by_container.html"); browser.waitForBackgroundJavaScript(5000); } catch (Exception e) { System.out.println("EXCEPTION --------------- " + e.toString()); } } } This is the Exception : ago 20, 2015 1:24:11 PM com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter runtimeError Grave: runtimeError: message=[Exceeded maximum stack depth] sourceName=[script in https://www.hapag-lloyd.com/en/tracing/by_container.html from (8, 31) to (25, 10)] line=[19] lineSource=[null] lineOffset=[0] ago 20, 2015 1:24:11 PM com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine handleJavaScriptException Informazioni: Caught script exception ======= EXCEPTION START ======== Exception class=[net.sourceforge.htmlunit.corejs.javascript.EvaluatorException] com.gargoylesoftware.htmlunit.ScriptException: Exceeded maximum stack depth (script in https://www.hapag-lloyd.com/en/tracing/by_container.html from (8, 31) to (25, 10)#19) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:865) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:628) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:513) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:747) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:722) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:945) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:351) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:411) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:276) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:290) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:800) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:757) at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1170) at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1072) at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:330) at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3126) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2093) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:920) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:1040) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:253) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:199) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:272) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:160) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:476) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:350) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:415) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:400) at HtmlUnitTest.doTestHapag(HtmlUnitTest.java:75) at HtmlUnitTest.main(HtmlUnitTest.java:48) Caused by: net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: Exceeded maximum stack depth (script in https://www.hapag-lloyd.com/en/tracing/by_container.html from (8, 31) to (25, 10)#19) at com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter.runtimeError(StrictErrorReporter.java:84) at net.sourceforge.htmlunit.corejs.javascript.Context.reportRuntimeError(Context.java:1090) at net.sourceforge.htmlunit.corejs.javascript.Context.reportRuntimeError(Context.java:1137) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.initFrame(Interpreter.java:2887) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1448) 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:411) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:310) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3286) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:115) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:738) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:850) ... 33 more Enclosed exception: net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: Exceeded maximum stack depth (script in https://www.hapag-lloyd.com/en/tracing/by_container.html from (8, 31) to (25, 10)#19) at com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter.runtimeError(StrictErrorReporter.java:84) at net.sourceforge.htmlunit.corejs.javascript.Context.reportRuntimeError(Context.java:1090) at net.sourceforge.htmlunit.corejs.javascript.Context.reportRuntimeError(Context.java:1137) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.initFrame(Interpreter.java:2887) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1448) at script.ii(script in https://www.hapag-lloyd.com/en/tracing/by_container.html from (8, 31) to (25, 10):19) at script.ii(script in https://www.hapag-lloyd.com/en/tracing/by_container.html from (8, 31) to (25, 10):19) at script.ii(script in https://www.hapag-lloyd.com/en/tracing/by_container.html from (8, 31) to (25, 10):19) at script.ii(script in https://www.hapag-lloyd.com/en/tracing/by_container.html from (8, 31) to (25, 10):19) .................................... at script.ii(script in https://www.hapag-lloyd.com/en/tracing/by_container.html from (8, 31) to (25, 10):19) at script(script in https://www.hapag-lloyd.com/en/tracing/by_container.html from (8, 31) to (25, 10):19) at script(script in https://www.hapag-lloyd.com/en/tracing/by_container.html from (8, 31) to (25, 10):15) at script(script in https://www.hapag-lloyd.com/en/tracing/by_container.html from (8, 31) to (25, 10):10) 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:411) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:310) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3286) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:115) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:738) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:850) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:628) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:513) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:747) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:722) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:945) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:351) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:411) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:276) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:290) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:800) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:757) at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1170) at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1072) at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:330) at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3126) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2093) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:920) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:1040) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:253) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:199) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:272) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:160) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:476) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:350) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:415) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:400) at HtmlUnitTest.doTestHapag(HtmlUnitTest.java:75) at HtmlUnitTest.main(HtmlUnitTest.java:48) ======= EXCEPTION END ======== Regards, Roberto. |