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-11-03 15:54:09
|
Hi Teryl, You can: - use the same port. - use System.setProperty("javax.net.debug", "all"); - use an intermediate Proxy (between HtmlUnit and your proxy). Something like Squid or Charles. - sniff the traffic by a packet analyzer if you use different machines, WireShark is an example. Hope that helps,Ahmed From: Teryl Taylor <ter...@gm...> To: htm...@li... Sent: Tuesday, November 3, 2015 4:34 PM Subject: Re: [Htmlunit-user] http/https over proxy I should note, that from the proxy, I want to be able to decrypt the https and analyze it before forwarding it on... On Tue, Nov 3, 2015 at 10:25 AM, Teryl Taylor <ter...@gm...> wrote: Hi guys, Does anyone have any experience using HTMLUnit with a proxy? I wrote a custom proxy server to an HTMLUnit content on a single IP address/port pair. This works great for HTTP based websites. But I have a few instances where the requests made are https intermingled with http. And these https request don't seem to be going to the custom proxy, but are getting a 404 response. I haven't been able to figure out yet whether the requests are going to the proxy, or are just going to the internet and getting a 404 back. My question is, how should I set this up? Do I need to open another port on the proxy that specifically handles https? And if so, how do I direct HTMLUnit https to go there, while http goes to the other proxy? Thanks for any information you can provide, Cheers, Teryl |
From: Teryl T. <ter...@gm...> - 2015-11-03 15:34:34
|
I should note, that from the proxy, I want to be able to decrypt the https and analyze it before forwarding it on... On Tue, Nov 3, 2015 at 10:25 AM, Teryl Taylor <ter...@gm...> wrote: > Hi guys, > > Does anyone have any experience using HTMLUnit with a proxy? I wrote a > custom proxy server to an HTMLUnit content on a single IP address/port > pair. This works great for HTTP based websites. But I have a few > instances where the requests made are https intermingled with http. And > these https request don't seem to be going to the custom proxy, but are > getting a 404 response. I haven't been able to figure out yet whether the > requests are going to the proxy, or are just going to the internet and > getting a 404 back. > > My question is, how should I set this up? Do I need to open another port > on the proxy that specifically handles https? And if so, how do I direct > HTMLUnit https to go there, while http goes to the other proxy? > > Thanks for any information you can provide, > > Cheers, > > Teryl > > |
From: Teryl T. <ter...@gm...> - 2015-11-03 15:26:02
|
Hi guys, Does anyone have any experience using HTMLUnit with a proxy? I wrote a custom proxy server to an HTMLUnit content on a single IP address/port pair. This works great for HTTP based websites. But I have a few instances where the requests made are https intermingled with http. And these https request don't seem to be going to the custom proxy, but are getting a 404 response. I haven't been able to figure out yet whether the requests are going to the proxy, or are just going to the internet and getting a 404 back. My question is, how should I set this up? Do I need to open another port on the proxy that specifically handles https? And if so, how do I direct HTMLUnit https to go there, while http goes to the other proxy? Thanks for any information you can provide, Cheers, Teryl |
From: asashour <asa...@ya...> - 2015-10-28 09:11:21
|
Hi, - You must subscribe to the list before posting. - The code works locally, but on OpenShift it doesn't. Ahmed Aurasphere wrote > Hello, > I am using SeleniumWebDriver 2.48.2 to fill a form and submitting it. I > did this from my computer and it works perfectly, but when I upload the > app to OpenShift I get a StackOverflowError when I submit the form. Here's > the stacktrace: > > [0m[31m04:29:06,529 ERROR [stderr] (Thread-110) Exception in thread > "Thread-110" java.lang.StackOverflowError > [0m[31m04:29:06,542 ERROR [stderr] (Thread-110) at > net.sourceforge.htmlunit.corejs.javascript.regexp.NativeRegExp.emitREBytecode(NativeRegExp.java:1311) > [0m[31m04:29:06,547 ERROR [stderr] (Thread-110) at > net.sourceforge.htmlunit.corejs.javascript.regexp.NativeRegExp.emitREBytecode(NativeRegExp.java:1281) > [0m[31m04:29:06,547 ERROR [stderr] (Thread-110) at > net.sourceforge.htmlunit.corejs.javascript.regexp.NativeRegExp.emitREBytecode(NativeRegExp.java:1286) > [0m[31m04:29:06,548 ERROR [stderr] (Thread-110) at > net.sourceforge.htmlunit.corejs.javascript.regexp.NativeRegExp.emitREBytecode(NativeRegExp.java:1286) > [0m[31m04:29:06,548 ERROR [stderr] (Thread-110) at > net.sourceforge.htmlunit.corejs.javascript.regexp.NativeRegExp.emitREBytecode(NativeRegExp.java:1286) > [0m[31m04:29:06,564 ERROR [stderr] (Thread-110) at > net.sourceforge.htmlunit.corejs.javascript.regexp.NativeRegExp.emitREBytecode(NativeRegExp.java:1286) > > (he keeps going for a while but all the lines are the same...) > > As you can see from the stacktrace, I am using HtmlUnit WebDriver. I > googled this but I didn't find anybody with my exact problem, although it > seems that HtmlUnit often gives StackOverflow errors... > > Here's my code: > > HtmlUnitDriver driver = new HtmlUnitDriver(BrowserVersion.CHROME); > driver.setJavascriptEnabled(true); > driver.get(myUrl); > //Finds the fields of the login form and fills it. Also removes the > Remember me checkbox. > WebElement email = driver.findElement(By.id("email")); > email.clear(); > email.sendKeys(username); > > WebElement rememberMe = driver.findElement(By.name("persistent")); > if(rememberMe.isSelected())rememberMe.click(); > > WebElement pass = driver.findElement(By.id("pass")); > pass.clear(); > pass.sendKeys(pass); > > //HERE IS WHERE THE ERROR OCCURS: > pass.submit(); > > Instead of submit I've also tried to get the input manually from the > button and click it like this: > > WebElement button = driver.findElement(By.id("u_0_2")); > button.click(); > > but the problem is exactly the same... > > I also tryed with a little workaround: I've started the driver with > javascript disabled and I've been able to submit the form. Then I enabled > it and refreshed the page (I need javascript enabled) and as soon as I run > this line: > > List > <WebElement> > elements = driver.findElements(By.className(className)); > > I get again the same exception... > > From what I understand there's definitely a problem with Javascript but I > don't understand why. > Can anyone tell me if this is a bug or if am I missing something? Any help > is really appreciated, thanks! -- View this message in context: http://htmlunit.10904.n7.nabble.com/HtmlUnit-throws-StackOverFlowError-on-form-submit-tp37594p37595.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |
From: Ahmed A. <asa...@ya...> - 2015-10-23 07:31:53
|
Hi Edson, Please provide your complete java code, so we can check why JavaScript is not triggered. Thanks,Ahmed From: Edson Castoldi <eca...@gm...> To: htm...@li... Sent: Friday, October 23, 2015 5:20 AM Subject: [Htmlunit-user] Checking WebPage generated by a JavaScript Hi, I need to verify the Html content generated by a script javascript but when I get the HtmlPage using the webclient.getPage() method, it is return the fragment code of the script and not the content in the Html format. The attached file contains a fragment of the page returned when I call webclient.getPage().asXml() method.See that there are many "CDATA" sections. It's necessary that them be replaced by the HTML content generated by the script. In this case, I need that the last "CDATA" section be replaced by the correspondent HTML generated content. Att., Edson Castoldi |
From: Edson C. <eca...@gm...> - 2015-10-23 03:20:57
|
Hi, I need to verify the Html content generated by a script javascript but when I get the HtmlPage using the webclient.getPage() method, it is return the fragment code of the script and not the content in the Html format. The attached file contains a fragment of the page returned when I call webclient.getPage().asXml() method. See that there are many "CDATA" sections. It's necessary that them be replaced by the HTML content generated by the script. In this case, I need that the last "CDATA" section be replaced by the correspondent HTML generated content. Att., Edson Castoldi |
From: Ahmed A. <asa...@ya...> - 2015-10-22 08:21:09
|
Hi Wayne, This is because Regular Expressions take too long for big text (500 KB in your case). In SVN, this has been fixed. Please use latest snapshot or build [1] once successful. Thanks,Ahmed From: Wayne Xin <way...@ho...> To: htm...@li... Sent: Thursday, October 22, 2015 2:21 AM Subject: [Htmlunit-user] htmlunit 2.18 OSGi hangs on getting body text Hi, My simple program hangs on retrieving body text for web site: http://yorkshire-digital.com/ I don’t see anything special with this web site but my code hangs in retrieving body text. I don’t think it’ll be difficult for anybody to reproduce the problem. The problem must be in their HTML, however, I would like to see if there is a workaround: java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit").setLevel(Level.OFF); java.util.logging.Logger.getLogger("com.gargoylesoftware").setLevel(Level.OFF); java.util.logging.Logger.getLogger("org.apache.commons.httpclient").setLevel(Level.OFF); WebClient webClient = new WebClient(BrowserVersion.CHROME); webClient.getOptions().setTimeout(timeout*1000); webClient.getOptions().setCssEnabled(false); webClient.getOptions().setPopupBlockerEnabled(true); webClient.getOptions().setThrowExceptionOnScriptError(false); webClient.getOptions().setRedirectEnabled(true); webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); webClient.getOptions().setUseInsecureSSL(true); webClient.getOptions().setPrintContentOnFailingStatusCode(false); webClient.setJavaScriptTimeout(5000); webClient.setRefreshHandler(new HtmlunitWaitingRefreshHandler(timeout)); webClient.waitForBackgroundJavaScript(5000); … HtmlPage aPage = webClient.getPage(urlWithProto); System.out.println(“body text:” + page.getBody().asText()); The code hangs at following stack: at java.util.regex.Pattern$Slice.match(Pattern.java:3867) at java.util.regex.Pattern$Curly.match0(Pattern.java:4170) at java.util.regex.Pattern$Curly.match(Pattern.java:4132) at java.util.regex.Pattern$Start.match(Pattern.java:3408) at java.util.regex.Matcher.search(Matcher.java:1199) at java.util.regex.Matcher.find(Matcher.java:592) at java.util.regex.Matcher.replaceAll(Matcher.java:907) at com.gargoylesoftware.htmlunit.html.HtmlSerializer.reduceWhitespace(HtmlSerializer.java:84) at com.gargoylesoftware.htmlunit.html.HtmlSerializer.cleanUp(HtmlSerializer.java:70) at com.gargoylesoftware.htmlunit.html.HtmlSerializer.asText(HtmlSerializer.java:64) at com.gargoylesoftware.htmlunit.html.DomNode.asText(DomNode.java:770) at com.pan.utils.SingleCrawler.pagedumpWithHtmlunit(SingleCrawler.java:503) I don’t own the page, it may change later. The content looks like (captured by browser) the following. I suspect it’s a bug in HtmlSerializer. Any help would be appreciated. Thanks. -Wayne |
From: Wayne X. <way...@ho...> - 2015-10-22 00:22:06
|
Hi, My simple program hangs on retrieving body text for web site: http://yorkshire-digital.com/ I don¹t see anything special with this web site but my code hangs in retrieving body text. I don¹t think it¹ll be difficult for anybody to reproduce the problem. The problem must be in their HTML, however, I would like to see if there is a workaround: java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit").setLevel (Level.OFF); java.util.logging.Logger.getLogger("com.gargoylesoftware").setLevel(Level.OF F); java.util.logging.Logger.getLogger("org.apache.commons.httpclient").setLevel (Level.OFF); WebClient webClient = new WebClient(BrowserVersion.CHROME); webClient.getOptions().setTimeout(timeout*1000); webClient.getOptions().setCssEnabled(false); webClient.getOptions().setPopupBlockerEnabled(true); webClient.getOptions().setThrowExceptionOnScriptError(false); webClient.getOptions().setRedirectEnabled(true); webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); webClient.getOptions().setUseInsecureSSL(true); webClient.getOptions().setPrintContentOnFailingStatusCode(false); webClient.setJavaScriptTimeout(5000); webClient.setRefreshHandler(new HtmlunitWaitingRefreshHandler(timeout)); webClient.waitForBackgroundJavaScript(5000); HtmlPage aPage = webClient.getPage(urlWithProto); System.out.println(³body text:² + page.getBody().asText()); The code hangs at following stack: at java.util.regex.Pattern$Slice.match(Pattern.java:3867) at java.util.regex.Pattern$Curly.match0(Pattern.java:4170) at java.util.regex.Pattern$Curly.match(Pattern.java:4132) at java.util.regex.Pattern$Start.match(Pattern.java:3408) at java.util.regex.Matcher.search(Matcher.java:1199) at java.util.regex.Matcher.find(Matcher.java:592) at java.util.regex.Matcher.replaceAll(Matcher.java:907) at com.gargoylesoftware.htmlunit.html.HtmlSerializer.reduceWhitespace(HtmlSeria lizer.java:84) at com.gargoylesoftware.htmlunit.html.HtmlSerializer.cleanUp(HtmlSerializer.jav a:70) at com.gargoylesoftware.htmlunit.html.HtmlSerializer.asText(HtmlSerializer.java :64) at com.gargoylesoftware.htmlunit.html.DomNode.asText(DomNode.java:770) at com.pan.utils.SingleCrawler.pagedumpWithHtmlunit(SingleCrawler.java:503) I don¹t own the page, it may change later. The content looks like (captured by browser) the following. I suspect it¹s a bug in HtmlSerializer. Any help would be appreciated. Thanks. -Wayne <html><head><meta http-equiv="Content-Language" content="en-us"><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Yorkshire Digital</title><!--mstheme--><link rel="stylesheet" type="text/css" href="_themes/aftrnoon/aftr1011.css <http://yorkshire-digital.com/_themes/aftrnoon/aftr1011.css> "><meta name="Microsoft Theme" content="aftrnoon 1011"> </head><body><p> </p><p> </p><p><font face="John Handy LET" size="6"><strong>Yorkshire Digital </strong></font></p><p>Your Raleigh/Cary/Durham/Morrisville area live recording </p> <p>solution for high quality Photographic, Video and </p> <p>Audio digital production work.</p><p>Email: bill dot blomgren at Gmail dot com</p> <p> </p> <p>And now? Some ham oriented goodies.</p><hr> <p></p> <p>New! Chirp is a general purpose scanner programming (FREE!) program.</p> <p>Chirp is open source and constantly improving. To go along with the program, I've</p> <p>gathered up a listing in chirp format for the Raleigh Area - covering from around the coast </p> <p>to roughly Greensboro NC. There are several coastal repeaters, as well as a few in Virginia....</p> <p>Update in color below!</p> <p> </p> <p>To get your copy of chirp: Go to</p> <p><a href="http://chirp.danplanet.com/projects/chirp/wiki/Home"> http://chirp.danplanet.com/projects/chirp/wiki/Home</a></p> <p>I've been using the developer builds, because they have the latest and greatest from the Chinese handitalkie vendors and many other two way radios.</p> <p> </p> <p>To download the chirp file I worked up, <font color="#FF0000">right click and save</font> to an easily accessible directory on your computer:</p> <p> <a href="http://www.yorkshire-digital.com/raleigh-area-repeaters-v0.5.chirp%20" > http://www.yorkshire-digital.com/raleigh-area-repeaters-v0.5.chirp </a></p> <p> </p> <p> <font color="#008000">Several users found that chirp that is a tad older doesn't like a .chirp file. I've exported a new file with both a .chirp and a .csv file</font></p> <p> <a href="http://www.yorkshire-digital.com/raleigh-area-repeaters-v0.6.csv"> http://www.yorkshire-digital.com/raleigh-area-repeaters-v0.6.csv</a></p> <p> <a href="http://www.yorkshire-digital.com/raleigh-area-repeaters-v0.6.chirp"> http://www.yorkshire-digital.com/raleigh-area-repeaters-v0.6.chirp</a></p> <p> </p> <p> Right click on those files and save locally. With chrome, right click and "Save link as" to save the files. </p> <p> With IE, right click and "save target as". With firefox, right click and "Save link as"...</p> <p> </p> <p>The chirp file is an XML file that you need to import into your system. If you are not opening chirp without a file from your radio already running (I recommend getting your current config and saving it before starting) - you will need to use the csv. Until your radio is established, you will not be able to save to the radio, or easily handle the chirp input.</p> <p> </p> <p>Additionally, you will probably have to go through the file (once it gets imported into your native radio format) setting power level for each frequency. There are 100 of them. It won't take long.</p> <p> </p> <p>If you just click on the file, you will get a 404, because there is nothing represented in the file that can be run on the web server.</p> <p>Once imported, you can export it into your Beofung, Icom, Kenwood or whatever. Again, you will probably</p> <p>need to set power levels for each channel in CHIRP. That is easily done, since it presents that as a column with pull down menus.</p> <p>Remember to save your file after you edit it.</p> <p>Enjoy!</p> <p> </p> <p> </p> <p>Some photography from last year..</p> <p><a href="pic-index.htm <http://yorkshire-digital.com/pic-index.htm> ">NC & Pennsylvania</a></p> <p> </p> <p>Park Train video <a href="pt.wmv <http://yorkshire-digital.com/pt.wmv> ">Standard Def</a> <a href="pthd.wmv <http://yorkshire-digital.com/pthd.wmv> ">High def</a></p> <p>Some standard def lure coursing - the AKC trials... <a href="lure-coursing-1-rough.wmv <http://yorkshire-digital.com/lure-coursing-1-rough.wmv> ">Rough edit - unfinished</a></p> <p> </p> <p>A couple of new styles of links to videos on line. You can browse </p> <p>through the videos with the first version. The second shows the latest</p> <p>six videos. To play the back in high def, you will need to go to the </p> <p>Vimeo web site. Also, you will need the latest version of Adobe's flash player.</p> <p> <object type="application/x-shockwave-flash" width="400" height="300" data="http://vimeo.com/hubnut/?user_id=billblom&color=00adef&backgro und=000000&fullscreen=1&slideshow=1&stream=videos&id=&se rver=vimeo.com"> <param name="quality" value="best" /> <param name="allowfullscreen" value="true" /> <param name="scale" value="showAll" /> <param name="movie" value="http://vimeo.com/hubnut/?user_id=billblom&color=00adef&backgr ound=000000&fullscreen=1&slideshow=1&stream=videos&id=&s erver=vimeo.com" /></object><br /><br />I put <a href="http://vimeo.com/billblom/videos/l:hubnut">videos I create</a> on Vimeo. You can see <a href="http://vimeo.com/billblom/l:hubnut">my profile</a>.</p> <p> <!-- START Vimeo Badge ... info at http://vimeo.com/widget --> <style type="text/css"> <!-- /* You can modify these CSS styles */ .vimeoBadge { margin: 0; padding: 0; font: normal 11px verdana,sans-serif; } .vimeoBadge img { border: 0; } .vimeoBadge .vimeoBadge a:link, .vimeoBadge a:visited, .vimeoBadge a:active { color:#3A75C4; text-decoration:none; cursor:pointer; } .vimeoBadge a:hover { color:#00CCFF; } .vimeoBadge #vimeo_badge_logo { margin-top:10px; width: 57px; height: 16px; } .vimeoBadge .credit { font: normal 11px verdana,sans-serif; } .vimeoBadge .clip { padding:0; float:left; margin:0 10px 10px 0; width:100px; line-height:0; } .vimeoBadge .caption { font: normal 11px verdana,sans-serif; overflow:hidden; width:100px; } .vimeoBadge .clear { display: block; clear: both; visibility: hidden; } --> </style> <div class="vimeoBadge"> <script type="text/javascript" src="http://vimeo.com/billblom/badgeo/?stream=uploaded&stream_id=&co unt=6&thumbnail_width=100&show_titles=no"></script> </div> <!--END Vimeo Badge--></p> <p> </p> <p> </p> <p>New - 4/27/2009</p> <p></p> <p></p> <object width="400" height="225"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=4320286&server=vimeo.com&a mp;show_title=1&show_byline=0&show_portrait=0&color=c9ff23&f ullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=4320286&server=vimeo.com& ;show_title=1&show_byline=0&show_portrait=0&color=c9ff23&ful lscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object><br /><a href="http://vimeo.com/4320286">Charlotte Concert Band - Carmichael and Saint-Saens</a>. <p>New September 18, 2008</p> <p></p> <p></p> <p></p> <p> </p> <object width="400" height="225"> <param name="allowfullscreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=1755923&server=vimeo.com&a mp;show_title=1&show_byline=0&show_portrait=0&color=c9ff23&f ullscreen=1" /> <embed src="http://vimeo.com/moogaloop.swf?clip_id=1755923&server=vimeo.com& ;show_title=1&show_byline=0&show_portrait=0&color=c9ff23&ful lscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object><br /><a href="http://vimeo.com/1755923?pg=embed&sec=1755923">Tweetsie Railfan Weekend</a> from <a href="http://vimeo.com/billblom?pg=embed&sec=1755923">Bill Blomgren</a> on <a href="http://vimeo.com?pg=embed&sec=1755923 <http://vimeo.com/?pg=embed&sec=1755923> ">Vimeo</a>. <p></p> <object width="400" height="225"> <param name="allowfullscreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=1709581&server=vimeo.com&a mp;show_title=1&show_byline=1&show_portrait=0&color=c9ff23&f ullscreen=1" /> <embed src="http://vimeo.com/moogaloop.swf?clip_id=1709581&server=vimeo.com& ;show_title=1&show_byline=1&show_portrait=0&color=c9ff23&ful lscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object><br /><a href="http://vimeo.com/1709581?pg=embed&sec=1709581">East Broad Top running June 2008</a> from <a href="http://vimeo.com/billblom?pg=embed&sec=1709581">Bill Blomgren</a> on <a href="http://vimeo.com?pg=embed&sec=1709581 <http://vimeo.com/?pg=embed&sec=1709581> ">Vimeo</a>. <p></p> <p><font size="4" color="#FF0000">Videos - new September 7, 2008</font></p> <object width="400" height="225"> <param name="allowfullscreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=1672508&server=vimeo.com&a mp;show_title=1&show_byline=0&show_portrait=0&color=00ADEF&f ullscreen=1" /> <embed src="http://vimeo.com/moogaloop.swf?clip_id=1672508&server=vimeo.com& ;show_title=1&show_byline=0&show_portrait=0&color=00ADEF&ful lscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object><br /><a href="http://vimeo.com/1672508?pg=embed&sec=1672508">EBT Crew prepares 15 for work</a> from <a href="http://vimeo.com/billblom?pg=embed&sec=1672508">Bill Blomgren</a> on <a href="http://vimeo.com?pg=embed&sec=1672508 <http://vimeo.com/?pg=embed&sec=1672508> ">Vimeo</a>. <p></p> <p></p> <object width="400" height="225"> <param name="allowfullscreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=1675341&server=vimeo.com&a mp;show_title=1&show_byline=0&show_portrait=0&color=00ADEF&f ullscreen=1" /> <embed src="http://vimeo.com/moogaloop.swf?clip_id=1675341&server=vimeo.com& ;show_title=1&show_byline=0&show_portrait=0&color=00ADEF&ful lscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object><br /><a href="http://vimeo.com/1675341?pg=embed&sec=1675341">East Broad Top shop wheel lathe, brought to life</a> from <a href="http://vimeo.com/billblom?pg=embed&sec=1675341">Bill Blomgren</a> on <a href="http://vimeo.com?pg=embed&sec=1675341 <http://vimeo.com/?pg=embed&sec=1675341> ">Vimeo</a>. <p></p> <p></p> <object width="400" height="225"> <param name="allowfullscreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=1668564&server=vimeo.com&a mp;show_title=1&show_byline=0&show_portrait=0&color=00ADEF&f ullscreen=1" /> <embed src="http://vimeo.com/moogaloop.swf?clip_id=1668564&server=vimeo.com& ;show_title=1&show_byline=0&show_portrait=0&color=00ADEF&ful lscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object><br /><a href="http://vimeo.com/1668564?pg=embed&sec=1668564">Westbound Amtrak in Parkesburg, PA</a> from <a href="http://vimeo.com/billblom?pg=embed&sec=1668564">Bill Blomgren</a> on <a href="http://vimeo.com?pg=embed&sec=1668564 <http://vimeo.com/?pg=embed&sec=1668564> ">Vimeo</a>. <p></p> <p></p> <object width="400" height="225"> <param name="allowfullscreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=1667972&server=vimeo.com&a mp;show_title=1&show_byline=0&show_portrait=0&color=00ADEF&f ullscreen=1" /> <embed src="http://vimeo.com/moogaloop.swf?clip_id=1667972&server=vimeo.com& ;show_title=1&show_byline=0&show_portrait=0&color=00ADEF&ful lscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object><br /><a href="http://vimeo.com/1667972?pg=embed&sec=1667972">Strasburg Railroad - A meet in a cornfield...</a> from <a href="http://vimeo.com/billblom?pg=embed&sec=1667972">Bill Blomgren</a> on <a href="http://vimeo.com?pg=embed&sec=1667972 <http://vimeo.com/?pg=embed&sec=1667972> ">Vimeo</a>. <p></p> <p></p> <object width="400" height="225"> <param name="allowfullscreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=1633014&server=vimeo.com&a mp;show_title=1&show_byline=0&show_portrait=0&color=00ADEF&f ullscreen=1" /> <embed src="http://vimeo.com/moogaloop.swf?clip_id=1633014&server=vimeo.com& ;show_title=1&show_byline=0&show_portrait=0&color=00ADEF&ful lscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object><br /><a href="http://vimeo.com/1633014?pg=embed&sec=1633014">Two hours of Septa, Amtrak, and NS in Newark Delaware</a> from <a href="http://vimeo.com/billblom?pg=embed&sec=1633014">Bill Blomgren</a> on <a href="http://vimeo.com?pg=embed&sec=1633014 <http://vimeo.com/?pg=embed&sec=1633014> ">Vimeo</a>. <p></p> <p></p> <p> </p> <p> </p> <p> More new stuff (July 5, 2008)</p> <p> Music for use with a Latta Plantation production, recorded here in Charlotte</p> <p> Music from <a href="http://www.pdmusic.org <http://www.pdmusic.org/> ">www.pdmusic.org</a> created by <font face="Verdana">Benjamin Robert Tubb </font> <font face="Times New Roman, Times, Serif"> <a href="mailto:%3Cb...@pd...">br...@pd...</a> </font></p> <p> Year </p> <p> <a href="1800a-rose-tree.wma <http://yorkshire-digital.com/1800a-rose-tree.wma> ">1800 - A rose tree</a> <a href="1800-highland-mary.wma <http://yorkshire-digital.com/1800-highland-mary.wma> ">Highland Mary</a> <a href="1800-pretty-maids-all-in-a-row.wma <http://yorkshire-digital.com/1800-pretty-maids-all-in-a-row.wma> ">Pretty Maids all in a Row</a></p> <p> <a href="1800-my-poor-dog-tray.wma <http://yorkshire-digital.com/1800-my-poor-dog-tray.wma> ">My Poor Dog Tray</a> <a href="1800-the-federal-constitution-&-liberty-forever.wma <http://yorkshire-digital.com/1800-the-federal-constitution-&-liberty-foreve r.wma> ">The Federal Constitution and Liberty Forever</a></p> <p> <a href="1801-election-the-peoples-right.wma <http://yorkshire-digital.com/1801-election-the-peoples-right.wma> ">1801 - Election-The People's Right</a></p> <p> <a href="1803-life-let-us-cherish.wma <http://yorkshire-digital.com/1803-life-let-us-cherish.wma> ">1803 - Life Let Us Cherish</a> another version <a href="1803-life-let-us-cherish-2.wma <http://yorkshire-digital.com/1803-life-let-us-cherish-2.wma> ">Life Let Us Cherish</a></p> <p> <a href="1807-sweet-is-the-vale.wma <http://yorkshire-digital.com/1807-sweet-is-the-vale.wma> ">1807 - Sweet is the Vale</a></p> <p> <a href="1808-believe-me-if-all-those-endearing-young-charms.wma <http://yorkshire-digital.com/1808-believe-me-if-all-those-endearing-young-c harms.wma> ">1808 - Believe Me if all Those Endearing Young Charms</a></p> <p> <a href="1808-jesse-the-flowr-o-dumblane.wma <http://yorkshire-digital.com/1808-jesse-the-flowr-o-dumblane.wma> ">1808 - Jesse the Flow'r 'O Dumblane</a></p> <p> <a href="1811-march-march-e-trick-and-teviot-dale.wma <http://yorkshire-digital.com/1811-march-march-e-trick-and-teviot-dale.wma> ">1811 - March March Etrick and Teviot Dale</a> and <a href="1811-march-march-e-trick-andt-eviot-dale-2.wma <http://yorkshire-digital.com/1811-march-march-e-trick-andt-eviot-dale-2.wma > ">again a second version</a></p> <p> <a href="1813-the-last-rose-of-summer.wma <http://yorkshire-digital.com/1813-the-last-rose-of-summer.wma> ">1813 - The Last Rose of Summer</a></p> <p> 1815 - <a href="1815-thou-dear-native-land.wma <http://yorkshire-digital.com/1815-thou-dear-native-land.wma> ">Thou Dear Native Land</a> <a href="1815-merrily-merrily-rounds-the-bark.wma <http://yorkshire-digital.com/1815-merrily-merrily-rounds-the-bark.wma> ">Merrily Merrily Rounds the Bark</a></p> <p> 1818 - <a href="1818-will-you-come-to-the-bower.wma <http://yorkshire-digital.com/1818-will-you-come-to-the-bower.wma> ">Will you come to the Bower</a></p> <hr> <p> Some new stuff! <New! 05/01/2008></p> <p> A tiny video set for 256k video stream.. <a title="Video of Flagg 75! enjoy!" href="http://www.yorkshire-digital.com/flagg-nctm.wmv">Flagg Coal at the NC Transportation Museum</a> </p> <p> 320 x 240 in size. The original is high def.</p> <p> If it doesn't stream, right click and save locally.</p> <p> <New! 05/02/2008!></p> <p> And one that probably won't stream unless everything at Road Runner is perfect...</p> <p> A slightly higher data rate version of a shorter version of the Flagg footage - also 320x240 in size.</p> <p> Right click and save locally if it won't stream.... <a title="Probably won't stream... 500k link" href="http://www.yorkshire-digital.com/small-flag-coal-75.wmv">Flagg Coal 75</a></p> <p> </p><hr> <p> </p> <p> <font size="5" color="#0000FF">M-3 at the East Broad Top</font></p> <p> </p> <p> </p> <p> <img border="0" src="P2006-03-25-coalminers-050-small-retouched2.jpg <http://yorkshire-digital.com/P2006-03-25-coalminers-050-small-retouched2.jp g> " width="800" height="515"></p> <p> <img border="0" src="_0001-1meg-tiny.jpg <http://yorkshire-digital.com/_0001-1meg-tiny.jpg> " width="500" height="340"><img border="0" src="p2006-08-18-ebt-m3-%20028.jpg <http://yorkshire-digital.com/p2006-08-18-ebt-m3-%20028.jpg> " width="422" height="350"></p> <p> </p> <p> <a href="http://www.yorkshire-digital.com/midchoo.wma">Click here for part of the sound track for the M-3 DVD!</a> "Leaving on the Midnight Choo-Choo to Alabam" by Irving Berlin</p> <p> <a href="HTTP://www.yorkshire-digital.com/maple-organ-leaf.wma">Click here for the sound of the Maple Leaf Rag</a></p> <p> <a href="HTTP://www.yorkshire-digital.com/entertainer.wma">Click here for the sound of The Entertainer</a></p> <p> <font size="5">M-3 has returned to the EBT.</font></p> <p> <font face="Arial Rounded MT Bold"> <a href="http://www.yorkshire-digital.com/m-3-test-small.wmv">Video of arrival (small, may stream)</a></font></p> <p> <font face="Arial Rounded MT Bold"><a href="m-3-credits-long.wmv <http://yorkshire-digital.com/m-3-credits-long.wmv> ">Credits video</a> (may require right click to copy locally for playback)</font></p><p> <a href="http://www.yorkshire-digital.com/m-3-test-small.wmv">M-3 at the East Broad Top</a> Restoration, and Dave Johnson's shots in B&W</p> <p> <a href="more-m-3.htm <http://yorkshire-digital.com/more-m-3.htm> ">More M-3 shots from the people rebuilding the car</a></p> <p> <a href="/m3-3.htm <http://yorkshire-digital.com/m3-3.htm> ">A third page of M-3 rebuilding images</a> </p> <p> <a href="m3-4.htm <http://yorkshire-digital.com/m3-4.htm> ">Fourth page of M-3 rebuilding shots</a> </p> <p> <a href="m3-5.htm <http://yorkshire-digital.com/m3-5.htm> ">Fifth page of M-3 rebuilding shots </a> <font color="#0000FF">New! 5/9/2006</font></p> <p> <a href="m3-motor-work.htm <http://yorkshire-digital.com/m3-motor-work.htm> ">Anonymous source motor work description </a> </p> <p> And thanks to Rick Shoup for the scans!</p><hr> <p> Samples</p> <p> <a href="ebt-opening-2006.htm <http://yorkshire-digital.com/ebt-opening-2006.htm> ">2006 East Broad Top Opening Weekend</a> </p> <p> <a target="http://www.yorkshiredigital.com/East-Broad-Top/index.htm" href="http://www.yorkshire-digital.com/EBTRR.htm">East Broad Top RR Photography</a> <a href="http://www.yorkshire-digital.com/febt_work_at_the_rockhill_furnac.htm" >Friends of the East Broad Top Restoration Work</a></p> <p> <a href="ebt-2005-spectacular.htm <http://yorkshire-digital.com/ebt-2005-spectacular.htm> ">A few more EBT shots from the 2005 Spectacular</a> </p> <p> <a href="http://www.yorkshire-digital.com/fall-spectacular.htm">Friends of the East Broad Top at the Fall Spectacular</a></p><p><a href="PA-Rails.htm <http://yorkshire-digital.com/PA-Rails.htm> ">Rail Photography in Pennsylvania</a> <a href="Charlotte-trolley/index.htm <http://yorkshire-digital.com/Charlotte-trolley/index.htm> ">Charlotte Trolley</a></p><p> <a href="greyhound.htm <http://yorkshire-digital.com/greyhound.htm> ">Dog shots - starring greyhounds</a> <a href="carolina-rails.htm <http://yorkshire-digital.com/carolina-rails.htm> ">A few shots from around the Carolinas</a> </p> <p> <font color="#0000FF"><a href="spenser-1-webpage/2006-07-15-spenser/index.html <http://yorkshire-digital.com/spenser-1-webpage/2006-07-15-spenser/index.htm l> ">Spenser Shops - Page 1 </a> </font></p> <p> <font color="#0000FF"> <a href="spenser-1-webpage/Spenser%20group%202/index.html <http://yorkshire-digital.com/spenser-1-webpage/Spenser%20group%202/index.ht ml> ">Spenser Shops - Page 2 </a> </font></p><hr> <p>Video: <a href="leaving-tunnel.mpg <http://yorkshire-digital.com/leaving-tunnel.mpg> ">Rachel at the Doe River Gorge</a> This will not stream. Right click and save locally.</p> <p> </p> <hr><p>I finally got around to providing a few links. All but one of the links in the music boxes should stream now. <font face="Sprint" color="#800000"> New! 12/14/2006</font></p> <p><a href="http://www.yorkshire-digital.com/audio-band-organ/index.htm">Audio Recording - Band Organ</a> <a href="http://www.yorkshire-digital.com/audio-musicbox">Audio Recording - Music Box</a></p><hr><p> <a href="http://www.yorkshire-digital.com/Official%20Secret.WMV">Aussie Politician</a> &n bsp; <a href="http://www.yorkshire-digital.com/techtv.wmv">Tech TV oops!</a> & nbsp;   ; </p><p> <a href="http://www.yorkshire-digital.com/blimp.jpg">bit of humor</a> & nbsp;   ; <a href="http://www.fireflyfarm.com/">Interested in Horses? </a></p> <hr> </body></html> |
From: Ahmed A. <asa...@ya...> - 2015-10-18 17:36:04
|
Hi Adam, >> date of the new release. I intended to start the discussion tomorrow, but you were quicker :) I guess roughly in 2-4 weeks, please follow the topic in the dev-list. >> Nashorn Nashorn support is at its initial stage. Hope we don't encounter a showstopper that prevents its usage. As the development efforts are limited, we focus on only one stream. However, I don't think there is a comparability issue, since users aren't meant to access the 'JavaScript' packages. Other packages shouldn't be affected. Nahsorn requires Java 8, and by conversion, we wait at least 1 year after Java 7 EOL (which was April 2015), before we mandate Java 8. Again, I hope we finish the migration by then. The final version for Nashorn is not decided, since it wasn't discussed. 3.x was used to prevent potential conflict with existing 2.x in maven snapshot repository. As always, participation is more than welcome. Thanks,Ahmed From: adam afeltowicz <aaf...@gm...> To: htm...@li... Sent: Sunday, October 18, 2015 1:28 PM Subject: [Htmlunit-user] Plans for next release Hello, can anyone provide information about planned date of the new release? And one more question: does works of Nashorn JS engine means that HtmlUnit is planned to be released in two separate streams 2.X and 3.X, and if so will they be compatible? Thanks in advance for reply. BR,Adam |
From: adam a. <aaf...@gm...> - 2015-10-18 11:28:27
|
Hello, can anyone provide information about planned date of the new release? And one more question: does works of Nashorn JS engine means that HtmlUnit is planned to be released in two separate streams 2.X and 3.X, and if so will they be compatible? Thanks in advance for reply. BR, Adam |
From: Lucas V. C. <use...@gm...> - 2015-10-17 19:14:13
|
Ok, next time I'll do it there. Sorry for the spam. Thanks El 17/10/2015 9:11 p. m., "Ahmed Ashour" <asa...@ya...> escribió: > Hi, > > A reminder in the bug report is also sufficient. > > initial investigation feedback is posted there. > > Thanks, > Ahmed > ------------------------------ > *From:* Lucas Ventura Carro <use...@gm...> > *To:* htm...@li... > *Sent:* Saturday, October 17, 2015 5:22 PM > *Subject:* [Htmlunit-user] [Bug#1721] Dynamic style labels > > Hello, > A few weeks ago I created the bug #1721 ( > http://sourceforge.net/p/htmlunit/bugs/1721/). But I see more activity in > mailing list than in the sourceforge bug tracker, so I'll ask here. > > Some labels with dynamic styles were visible in 2.15 version, but in newer > versions (2.16+) they are not visible. Major browsers how the correct style > and the labels are visible. > I pushed a JUnit test at github: > https://github.com/lucasvc/htmlunit-dynamic-style > Is expected this change of behaviour? > > Thanks! > -- > Lucas > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Ahmed A. <asa...@ya...> - 2015-10-17 19:11:06
|
Hi, A reminder in the bug report is also sufficient. initial investigation feedback is posted there. Thanks,Ahmed From: Lucas Ventura Carro <use...@gm...> To: htm...@li... Sent: Saturday, October 17, 2015 5:22 PM Subject: [Htmlunit-user] [Bug#1721] Dynamic style labels Hello,A few weeks ago I created the bug #1721 (http://sourceforge.net/p/htmlunit/bugs/1721/). But I see more activity in mailing list than in the sourceforge bug tracker, so I'll ask here. Some labels with dynamic styles were visible in 2.15 version, but in newer versions (2.16+) they are not visible. Major browsers how the correct style and the labels are visible.I pushed a JUnit test at github: https://github.com/lucasvc/htmlunit-dynamic-styleIs expected this change of behaviour? Thanks! -- Lucas |
From: Lucas V. C. <use...@gm...> - 2015-10-17 15:23:08
|
Hello, A few weeks ago I created the bug #1721 ( http://sourceforge.net/p/htmlunit/bugs/1721/). But I see more activity in mailing list than in the sourceforge bug tracker, so I'll ask here. Some labels with dynamic styles were visible in 2.15 version, but in newer versions (2.16+) they are not visible. Major browsers how the correct style and the labels are visible. I pushed a JUnit test at github: https://github.com/lucasvc/htmlunit-dynamic-style Is expected this change of behaviour? Thanks! -- Lucas |
From: Ahmed A. <asa...@ya...> - 2015-10-10 12:59:15
|
Hi, Using proxy, you can change the website as seen by HtmlUnit. Please carefully read the page. Ahmed > Am 10.10.2015 um 09:33 schrieb in...@af...: > > Hi Ahmed, > Unfortunately the web page i try to get, is not maintained by me. It is an external site and i can't modify its code. Isn't there a way you (..or me) can do something? > Roberto. > > > Il 2015-10-09 20:56 Ahmed Ashour ha scritto: >> Hi Roberto, >> When throwing JavaScript is enabled, there is an error >> "ReferenceError: "setFooter" is not defined" >> Please provide minimal case as hinted in >> http://htmlunit.sourceforge.net/submittingJSBugs.html [1] >> Ahmed >> ------------------------- >> FROM: Roberto Bottoni - AfterBit <r.b...@af...> >> TO: htm...@li... >> SENT: Friday, October 9, 2015 6:17 PM >> SUBJECT: [Htmlunit-user] HtmlUnit cannot process page >> Hi Ahmed, >> I use HTMLUnit 2.19, Java 1.7 to get a web page : >> http://www.oocl.com/eng/Pages/default.aspx [2] >> But it seems that the page is not processed >> This is my code : >> public class HtmlUnitTest { >> static final WebClient browser; >> static { >> browser = new WebClient(BrowserVersion.FIREFOX_38); >> 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) { >> try { >> HtmlPage page = (HtmlPage) >> browser.getPage("http://www.oocl.com/eng/Pages/default.aspx [2]"); >> browser.waitForBackgroundJavaScript(10000); >> System.out.println("XML Source : \n" + page.asXml() + "\n"); >> } catch (Exception e) { >> System.out.println("EXCEPTION --------------- " + e.toString()); >> } >> } >> } >> Maybe a Javascript Engine problem? >> Thanks! >> Roberto. >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user [3] >> Links: >> ------ >> [1] http://htmlunit.sourceforge.net/submittingJSBugs.html >> [2] http://www.oocl.com/eng/Pages/default.aspx >> [3] https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: <in...@af...> - 2015-10-10 07:33:49
|
Hi Ahmed, Unfortunately the web page i try to get, is not maintained by me. It is an external site and i can't modify its code. Isn't there a way you (..or me) can do something? Roberto. Il 2015-10-09 20:56 Ahmed Ashour ha scritto: > Hi Roberto, > > When throwing JavaScript is enabled, there is an error > "ReferenceError: "setFooter" is not defined" > > Please provide minimal case as hinted in > http://htmlunit.sourceforge.net/submittingJSBugs.html [1] > > Ahmed > > ------------------------- > FROM: Roberto Bottoni - AfterBit <r.b...@af...> > TO: htm...@li... > SENT: Friday, October 9, 2015 6:17 PM > SUBJECT: [Htmlunit-user] HtmlUnit cannot process page > > Hi Ahmed, > > I use HTMLUnit 2.19, Java 1.7 to get a web page : > http://www.oocl.com/eng/Pages/default.aspx [2] > But it seems that the page is not processed > This is my code : > > public class HtmlUnitTest { > > static final WebClient browser; > > static { > > browser = new WebClient(BrowserVersion.FIREFOX_38); > 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) { > try { > HtmlPage page = (HtmlPage) > browser.getPage("http://www.oocl.com/eng/Pages/default.aspx [2]"); > browser.waitForBackgroundJavaScript(10000); > System.out.println("XML Source : \n" + page.asXml() + "\n"); > } catch (Exception e) { > System.out.println("EXCEPTION --------------- " + e.toString()); > } > } > > } > > Maybe a Javascript Engine problem? > Thanks! > Roberto. > > ------------------------------------------------------------------------------ > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user [3] > > > > Links: > ------ > [1] http://htmlunit.sourceforge.net/submittingJSBugs.html > [2] http://www.oocl.com/eng/Pages/default.aspx > [3] 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-10-09 18:56:21
|
Hi Roberto, When throwing JavaScript is enabled, there is an error "ReferenceError: "setFooter" is not defined" Please provide minimal case as hinted in http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Friday, October 9, 2015 6:17 PM Subject: [Htmlunit-user] HtmlUnit cannot process page Hi Ahmed, I use HTMLUnit 2.19, Java 1.7 to get a web page : http://www.oocl.com/eng/Pages/default.aspx But it seems that the page is not processed This is my code : public class HtmlUnitTest { static final WebClient browser; static { browser = new WebClient(BrowserVersion.FIREFOX_38); 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) { try { HtmlPage page = (HtmlPage) browser.getPage("http://www.oocl.com/eng/Pages/default.aspx"); browser.waitForBackgroundJavaScript(10000); System.out.println("XML Source : \n" + page.asXml() + "\n"); } catch (Exception e) { System.out.println("EXCEPTION --------------- " + e.toString()); } } } Maybe a Javascript Engine problem? Thanks! Roberto. ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Roberto B. - A. <r.b...@af...> - 2015-10-09 16:34:06
|
Hi Ahmed, I use HTMLUnit 2.19, Java 1.7 to get a web page : http://www.oocl.com/eng/Pages/default.aspx But it seems that the page is not processed This is my code : public class HtmlUnitTest { static final WebClient browser; static { browser = new WebClient(BrowserVersion.FIREFOX_38); 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) { try { HtmlPage page = (HtmlPage) browser.getPage("http://www.oocl.com/eng/Pages/default.aspx"); browser.waitForBackgroundJavaScript(10000); System.out.println("XML Source : \n" + page.asXml() + "\n"); } catch (Exception e) { System.out.println("EXCEPTION --------------- " + e.toString()); } } } Maybe a Javascript Engine problem? Thanks! Roberto. |
From: Ahmed A. <asa...@ya...> - 2015-10-07 06:41:19
|
Hello, Please try to use latest HtmlUnit, hopefully directly to eliminate third-party library issues. Also, provide your complete case for others to reproduce it. Ahmed From: Никола Димитров <n.p...@gm...> To: htm...@li... Sent: Tuesday, October 6, 2015 11:52 PM Subject: [Htmlunit-user] HtmlElement and its methods Hello ! I am using Jython and running version 2.8 of htmlunit. I am facing the following problem: When trying to execute the method getOneHtmlElementByAttribute('a', 'class', 'btn'), for example, I get the error that 4 args are need, but I pass only 3. Any suggestions ? Thank you ! |
From: Никола Д. <n.p...@gm...> - 2015-10-06 21:52:07
|
Hello ! I am using Jython and running version 2.8 of htmlunit. I am facing the following problem: When trying to execute the method getOneHtmlElementByAttribute('a', 'class', 'btn'), for example, I get the error that 4 args are need, but I pass only 3. Any suggestions ? Thank you ! |
From: Ahmed A. <asa...@ya...> - 2015-09-30 13:20:05
|
Hi, You need to get a reference to WebClient first: { WebClient webClient = (WebClient) get(driver, "webClient"); HtmlPage htmlPage = (HtmlPage) webClient.getTopLevelWindows().get(0).getEnclosedPage(); } @SuppressWarnings("unchecked") private static <T> T get(final Object o, final String fieldName) throws Exception { final Field field = o.getClass().getDeclaredField(fieldName); field.setAccessible(true); return (T) field.get(o); } Ahmed From: "htm...@li..." <htm...@li...> To: htm...@li... Sent: Wednesday, September 30, 2015 2:07 PM Subject: Auto-discard notification ----- Forwarded Message ----- The attached message has been automatically discarded. maybe a stupid question, but how to combine your both suggestions? htmlPage.save(File); And lSeleniumDriver.get(parsedArgs.getWebUrl()); which is intercepted by your suggested code (and working well) WebDriver driver = new HtmlUnitDriver(BrowserVersion.CHROME) { protected WebClient newWebClient(BrowserVersion version) { WebClient webClient = super.newWebClient(version); new WebConnectionWrapper(webClient) { public WebResponse getResponse(WebRequest request) throws IOException { long time = System.currentTimeMillis(); WebResponse response = super.getResponse(request); String url = request.getUrl().toExternalForm(); String content = response.getContentAsString(); long duration = time - System.currentTimeMillis(); return response; } }; return webClient; } }; I do not see the forest for the trees. On 30.09.2015 09:12, Ahmed Ashour wrote: Hi, You can also use htmlPgae.save(File); Ahmed From: "htm...@li..." <htm...@li...> To: htm...@li... Sent: Wednesday, September 30, 2015 8:00 AM Subject: Auto-discard notification ----- Forwarded Message ----- The attached message has been automatically discarded. Hello Ahmed, thanks for the details. The point is, I do not know the images and for my requirement it is not interesting how many images will be downloaded. I need just all images to download (to measure the size and the amount of requests and the download time) The images are either referenced by HTML, by JS or by CSS. So I also cannot say from which source they show up. In your example I need to name all images, so I have to know them all before downloading. Have I got the point? Is there a way to tell, just download the page as a classical browser would do (with all files, a classical browser would download)? best wishes |
From: Ahmed A. <asa...@ya...> - 2015-09-30 07:15:16
|
Hi, You can also use htmlPgae.save(File); Ahmed From: "htm...@li..." <htm...@li...> To: htm...@li... Sent: Wednesday, September 30, 2015 8:00 AM Subject: Auto-discard notification ----- Forwarded Message ----- The attached message has been automatically discarded. Hello Ahmed, thanks for the details. The point is, I do not know the images and for my requirement it is not interesting how many images will be downloaded. I need just all images to download (to measure the size and the amount of requests and the download time) The images are either referenced by HTML, by JS or by CSS. So I also cannot say from which source they show up. In your example I need to name all images, so I have to know them all before downloading. Have I got the point? Is there a way to tell, just download the page as a classical browser would do (with all files, a classical browser would download)? best wishes |
From: Ahmed A. <asa...@ya...> - 2015-09-29 20:42:07
|
Hi, { HtmlUnitWebElement webElement = (HtmlUnitWebElement) driver.findElement(By.id("abcd")); HtmlImage htmlImage = get(webElement, "element"); htmlImage.saveAs(file); // or ImageReader reader = htmlImage.getImageReader(); } @SuppressWarnings("unchecked") private static <T> T get(final Object o, final String fieldName) throws Exception { final Field field = o.getClass().getDeclaredField(fieldName); field.setAccessible(true); return (T) field.get(o); } Thanks,Ahmed From: "htm...@li..." <htm...@li...> To: htm...@li... Sent: Tuesday, September 29, 2015 7:57 PM Subject: Auto-discard notification ----- Forwarded Message ----- The attached message has been automatically discarded.Hello Ahmed, I have subscribed to the list before posting?!? Thank you for your suggestion, works nearly perfect. My issue now is I am getting the full downloaded page including all file types, except images. How can I tell one of both (HtmlUnit or Selenium) to download the images as well? |
From: Ahmed A. <asa...@ya...> - 2015-09-29 15:09:19
|
Hi, Please subscribe to the list before posting. Have about: WebDriver driver = new HtmlUnitDriver(BrowserVersion.CHROME) { protected WebClient newWebClient(BrowserVersion version) { WebClient webClient = super.newWebClient(version); new WebConnectionWrapper(webClient) { public WebResponse getResponse(WebRequest request) throws IOException { long time = System.currentTimeMillis(); WebResponse response = super.getResponse(request); String url = request.getUrl().toExternalForm(); String content = response.getContentAsString(); long duration = time - System.currentTimeMillis(); return response; } }; return webClient; } }; Please also look into http://htmlunit.sourceforge.net/faq.html#HowToModifyRequestOrResponse Hope that helps,Ahmed From: "htm...@li..." <htm...@li...> To: htm...@li... Sent: Tuesday, September 29, 2015 4:40 PM Subject: Auto-discard notification ----- Forwarded Message ----- The attached message has been automatically discarded.Hello together, I am using selenium with the HtmlUnit (driver). So I am not fully sure if this will be the right mailinglist. But please let me elaborate first my issue. I need a possibility to measure following details from a webpage: - delivery speed of a full page by a given URL, from first access to the last file delivered on a fully dynamic JavaScript-Page (it maybe something between 3-100 http-requests) - the amount of requests which are fired by the given page URL - the total size in bytes of the fully loaded web page. So in Selenium I did not find any entrypoint, how to access this details. Debugging through the content I quickly get down to HtmlUnit classes, so I assume this can may be handled by HtmlUnit? Can someone help the blind out of the dark? best wishes, hkais |
From: Ronald B. <rb...@rb...> - 2015-09-27 14:10:34
|
Hi, as far as i can see you got only warnings not errors: WARNING: Obsolete content type encountered: 'application/x-javascript'. This informs you that the web site uses a no longer valid content type. HtmlUnit still processes these files correct like the browsers are doing. You can simply ignore this WARNING: CSS error: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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>.) Which version of HtmlUnit and CSS Parser do you use? RBRi On Sun, 27 Sep 2015 14:07:11 +0800 Tom(Desean) Ng wrote: > >Hi, > >I believe I have finally subscribed with the right email address here. > >I was using the code to 1) get access to the website, 2) type some input in the left menu and then 3) click submit , in order to land on the second page and download that page's cookies. >Below is the code that I used. But I got a list of errors. What is the cause ? How can i overcome this? Thanks > >DeSean > >> >> >> try (final WebClient webClient = new WebClient(BrowserVersion.CHROME)) { >> >> final HtmlPage page = webClient.getPage("http://www.aastocks.com/en/stock/detailquote.aspx?&symbol=1 <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 notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:34 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:34 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 warning >> WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 warning >> WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 warning >> WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3' <http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3%27> [202:19] Error in expression; ':' >found after identifier "progid". >> Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3' <http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3%27> [202:19] Error in expression; ':' >found after identifier "progid". >> Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3' <http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3%27> [202:19] Error in expression; ':' >found after identifier "progid". >> Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error >> WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 warning >> WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 warning >> WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 warning >> WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' <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 warning >> WARNING: CSS warning: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 warning >> WARNING: CSS warning: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' <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 warning >> WARNING: CSS warning: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' <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 notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:39 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:39 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:39 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:41 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:41 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:41 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies >> WARNING: 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 <http://doubleclick.net/>". Domain of origin: >"pagead2.googlesyndication.com <http://pagead2.googlesyndication.com/>" >> Sep 27, 2015 1:34:41 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:41 PM com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument close >> WARNING: close() called when document is not open. >> Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument close >> WARNING: close() called when document is not open. >> Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument close >> WARNING: close() called when document is not open. >> Sep 27, 2015 1:34:43 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:44 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. > > > > >> On Sep 27, 2015, at 1:43 PM, Ahmed Ashour <asa...@ya...> wrote: >> >> Hi, >> >> tho...@gm... <https://lists.sourceforge.net/lists/options/htmlunit-user/thomastskng--at--gmail.com> 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 <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 <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 notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:34 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:34 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'application/x-javascript'. >> Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify >> WARNING: Obsolete content type encountered: 'text/javascript'. >> Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 warning >> WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 warning >> WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 warning >> WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3' <http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3%27> [202:19] Error in expression; ':' >found after identifier "progid". >> Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3' <http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3%27> [202:19] Error in expression; ':' >found after identifier "progid". >> Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3' <http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3%27> [202:19] Error in expression; ':' >found after identifier "progid". >> Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error >> WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error >> WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 warning >> WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Master_en.css' <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.gargoyles > >============================================================ > --- MESSAGE PREVIEW TRUNCATED --- >============================================================ > >Due to its length this message preview has been truncated. >To view this message in its entirety double-click the message to open it in the Read window. > |
From: Tom(Desean) N. <tho...@go...> - 2015-09-27 06:07:27
|
Hi, I believe I have finally subscribed with the right email address here. I was using the code to 1) get access to the website, 2) type some input in the left menu and then 3) click submit , in order to land on the second page and download that page’s cookies. Below is the code that I used. But I got a list of errors. What is the cause ? How can i overcome this? Thanks DeSean > > > try (final WebClient webClient = new WebClient(BrowserVersion.CHROME)) { > > final HtmlPage page = webClient.getPage("http://www.aastocks.com/en/stock/detailquote.aspx?&symbol=1 <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 notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:34 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:34 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 warning > WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 warning > WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 warning > WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3' <http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3%27> [202:19] Error in expression; ':' found after identifier "progid". > Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3' <http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3%27> [202:19] Error in expression; ':' found after identifier "progid". > Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3' <http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3%27> [202:19] Error in expression; ':' found after identifier "progid". > Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error > WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 warning > WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 warning > WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 warning > WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' <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 warning > WARNING: CSS warning: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 warning > WARNING: CSS warning: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' <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 warning > WARNING: CSS warning: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' <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 notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:39 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:39 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:39 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:41 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:41 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:41 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies > WARNING: 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 <http://doubleclick.net/>". Domain of origin: "pagead2.googlesyndication.com <http://pagead2.googlesyndication.com/>" > Sep 27, 2015 1:34:41 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:41 PM com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument close > WARNING: close() called when document is not open. > Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument close > WARNING: close() called when document is not open. > Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument close > WARNING: close() called when document is not open. > Sep 27, 2015 1:34:43 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:44 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > On Sep 27, 2015, at 1:43 PM, Ahmed Ashour <asa...@ya...> wrote: > > Hi, > > tho...@gm... <https://lists.sourceforge.net/lists/options/htmlunit-user/thomastskng--at--gmail.com> 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 <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 <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 notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:32 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:33 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:34 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:34 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 warning > WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 warning > WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 warning > WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Stock/BasicQuote_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3' <http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3%27> [202:19] Error in expression; ':' found after identifier "progid". > Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3' <http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3%27> [202:19] Error in expression; ':' found after identifier "progid". > Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3' <http://www.aastocks.com/en/Style/TopNatvigation/ddlevelsmenu-base_en.css?v=1.3%27> [202:19] Error in expression; ':' found after identifier "progid". > Sep 27, 2015 1:34:35 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error > WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/style/default/jquery-ui-1.8.14.custom.css' <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 warning > WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 warning > WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 warning > WARNING: CSS warning: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' <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 warning > WARNING: CSS warning: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/Master_en.css' <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 warning > WARNING: CSS warning: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' <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 error > WARNING: CSS error: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' <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 warning > WARNING: CSS warning: 'http://www.aastocks.com/en/Style/ContentLeftMenu_en.css' <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 notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:38 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:39 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:39 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:39 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'application/x-javascript'. > Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:40 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:41 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:41 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:41 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies > WARNING: 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 <http://doubleclick.net/>". Domain of origin: "pagead2.googlesyndication.com <http://pagead2.googlesyndication.com/>" > Sep 27, 2015 1:34:41 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:41 PM com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument close > WARNING: close() called when document is not open. > Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument close > WARNING: close() called when document is not open. > Sep 27, 2015 1:34:42 PM com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument close > WARNING: close() called when document is not open. > Sep 27, 2015 1:34:43 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > Sep 27, 2015 1:34:44 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify > WARNING: Obsolete content type encountered: 'text/javascript'. > > <Screen Shot 2015-09-27 at 1.29.50 PM.png> > > >> On Sep 27, 2015, at 4:04 AM, Ahmed Ashour <asa...@ya... <mailto: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... <mailto:tho...@go...>> >> To: Ahmed Ashour <asa...@ya... <mailto:asa...@ya...>> >> Cc: "htm...@li... <mailto:htm...@li...>" <htm...@li... <mailto:htm...@li...>>; "tho...@go... <mailto:tho...@go...>" <tho...@go... <mailto: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... <mailto: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 <https://ci.canoo.com/teamcity/viewLog.html?buildTypeId=HtmlUnit_FastBuild&buildId=lastSuccessful&tab=artifacts>, 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 <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... <mailto:htm...@li...>" <htm...@li... <mailto: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 <http://htmlunit.sourceforge.net/gettingStarted.html>)to try and access the following website >>> Then 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? Thanks >>> public 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 <http://www.aastocks.com/en/stock/DetailQuote.aspx?&symbol=1>"); >>> final HtmlDivision div = page.getHtmlElementById("LeftMenu_Button"); >>> } >>> } >>> >>> >>> >>> <Mail Attachment.eml> >> >> >> > > > > <Screen Shot 2015-09-27 at 1.29.50 PM.png> |