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: Torak t. <sni...@gm...> - 2014-03-13 17:36:16
|
OK, right. im new at everything here. computer programming,java,htmlunit. so i have only a rough idea of how to to everything and i am not sure what to do. first, how do you perform the click() command at a certain position on the webpage? like htmlpage mypage = GetPage() mypage.setCursorPos(500,30) button Mybutton = GetPos() button.click() idk if thats right but if you can understand its the thing i want to do. i want to move the mouse to a certain position and then click it. i know hardly anythng about this so please correct me if im wrong. thanks. PS not sure if my msg got through last time. |
From: Raj R. <raj...@gm...> - 2014-03-13 15:03:16
|
Morning .... I have a button with onClick defined as such: onclick="window.navigate(returnPage)" When the button is clicked, I am getting a ScriptException as follows: *com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function navigate in object [object].* Running in INTERNET_EXPLORER_8 mode. Any clues how to fix this? Thanks Ra |
From: Ahmed A. <asa...@ya...> - 2014-03-13 14:40:48
|
Hi Vasu, Raj reply is much better, mine is more complex. You need to change the assumptions (and code) when the website changes. Ahmed ________________________________ From: Vasudevan Comandur <vco...@gm...> To: Ahmed Ashour <asa...@ya...>; "htm...@li..." <htm...@li...> Sent: Thursday, March 13, 2014 4:10 PM Subject: Re: [Htmlunit-user] How to get the Label Text associated with a HTMLInput field where type=text Hi Ahmed, Thanks for your reply. Can I assume that the Label node will be the preceding node always in the DOM?. Will there not be any other HTML tag coming between INPUT & LABEL tag? Regards Vasu On Thu, Mar 13, 2014 at 6:09 PM, Ahmed Ashour <asa...@ya...> wrote: Hi Vasu, > > >You can use page.getFirstByXPath() with "preceding-sibling" > > >An example can be found in http://stackoverflow.com/questions/9879425/combining-xpath-axes-preceding-sibling-following-sibling > > > >Ahmed > >________________________________ > From: Vasudevan Comandur <vco...@gm...> >To: "htm...@li..." <htm...@li...> >Sent: Thursday, March 13, 2014 3:28 PM >Subject: [Htmlunit-user] How to get the Label Text associated with a HTMLInput field where type=text > > > >Hi, > > I would like to know how to get the Label Text associated with a HTMLInput > field where type=text in HTMLUnit > > I am copying below a snippet from an HTML page > > <label>Password:</label> > <input type="text" id="otpMobilePassword" name="otpMobilePassword"> > <br/> > >Regards > Vasu > >------------------------------------------------------------------------------ >Learn Graph Databases - Download FREE O'Reilly Book >"Graph Databases" is the definitive new guide to graph databases and their >applications. Written by three acclaimed leaders in the field, >this first edition is now available. Download your free book today! >http://p.sf.net/sfu/13534_NeoTech >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > >------------------------------------------------------------------------------ >Learn Graph Databases - Download FREE O'Reilly Book >"Graph Databases" is the definitive new guide to graph databases and their >applications. Written by three acclaimed leaders in the field, >this first edition is now available. Download your free book today! >http://p.sf.net/sfu/13534_NeoTech >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Vasudevan C. <vco...@gm...> - 2014-03-13 13:11:33
|
Hi Raj, Thanks for your reply. Regards Vasu On Thu, Mar 13, 2014 at 6:09 PM, Raj Rajeswaran <raj...@gm...>wrote: > currentPage.getElementById("otpMobilePassword").getPreviousSibling() ?? > > > On Thu, Mar 13, 2014 at 7:28 AM, Vasudevan Comandur <vco...@gm...>wrote: > >> Hi, >> >> I would like to know how to get the Label Text associated with a >> HTMLInput >> field where type=text in HTMLUnit >> >> I am copying below a snippet from an HTML page >> >> <label>Password:</label> >> <input type="text" id="otpMobilePassword" >> name="otpMobilePassword"> >> <br/> >> >> Regards >> Vasu >> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/13534_NeoTech >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >> > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Vasudevan C. <vco...@gm...> - 2014-03-13 13:10:58
|
Hi Ahmed, Thanks for your reply. Can I assume that the Label node will be the preceding node always in the DOM?. Will there not be any other HTML tag coming between INPUT & LABEL tag? Regards Vasu On Thu, Mar 13, 2014 at 6:09 PM, Ahmed Ashour <asa...@ya...> wrote: > Hi Vasu, > > You can use page.getFirstByXPath() with "preceding-sibling" > > An example can be found in > http://stackoverflow.com/questions/9879425/combining-xpath-axes-preceding-sibling-following-sibling > > Ahmed > ------------------------------ > *From:* Vasudevan Comandur <vco...@gm...> > *To:* "htm...@li..." < > htm...@li...> > *Sent:* Thursday, March 13, 2014 3:28 PM > *Subject:* [Htmlunit-user] How to get the Label Text associated with a > HTMLInput field where type=text > > Hi, > > I would like to know how to get the Label Text associated with a > HTMLInput > field where type=text in HTMLUnit > > I am copying below a snippet from an HTML page > > <label>Password:</label> > <input type="text" id="otpMobilePassword" name="otpMobilePassword"> > <br/> > > Regards > Vasu > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Raj R. <raj...@gm...> - 2014-03-13 12:39:53
|
currentPage.getElementById("otpMobilePassword").getPreviousSibling() ?? On Thu, Mar 13, 2014 at 7:28 AM, Vasudevan Comandur <vco...@gm...>wrote: > Hi, > > I would like to know how to get the Label Text associated with a > HTMLInput > field where type=text in HTMLUnit > > I am copying below a snippet from an HTML page > > <label>Password:</label> > <input type="text" id="otpMobilePassword" name="otpMobilePassword"> > <br/> > > Regards > Vasu > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Ahmed A. <asa...@ya...> - 2014-03-13 12:39:24
|
Hi Vasu, You can use page.getFirstByXPath() with "preceding-sibling" An example can be found in http://stackoverflow.com/questions/9879425/combining-xpath-axes-preceding-sibling-following-sibling Ahmed ________________________________ From: Vasudevan Comandur <vco...@gm...> To: "htm...@li..." <htm...@li...> Sent: Thursday, March 13, 2014 3:28 PM Subject: [Htmlunit-user] How to get the Label Text associated with a HTMLInput field where type=text Hi, I would like to know how to get the Label Text associated with a HTMLInput field where type=text in HTMLUnit I am copying below a snippet from an HTML page <label>Password:</label> <input type="text" id="otpMobilePassword" name="otpMobilePassword"> <br/> Regards Vasu ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Vasudevan C. <vco...@gm...> - 2014-03-13 12:28:53
|
Hi, I would like to know how to get the Label Text associated with a HTMLInput field where type=text in HTMLUnit I am copying below a snippet from an HTML page <label>Password:</label> <input type="text" id="otpMobilePassword" name="otpMobilePassword"> <br/> Regards Vasu |
From: reinhard s. <rei...@ao...> - 2014-03-06 13:18:31
|
Hi Ahmed, thanks for the fast reply and fix. I will try later and also to isolate the other problem, if I can recognize it. At the moment I have no idea about it. Best regards Reinhard On 06.03.2014 02:28, Ahmed Ashour wrote: > Hi Reinhard, > > That particular error is now fixed in SVN. > > However, there is another one. > > I personally owe xing.com something ;) but currently it would take > some time before look into. > > Please try to isolate a minimal case (without external .js) as hinted > in http://htmlunit.sourceforge.net/submittingJSBugs.html > > Ahmed > ------------------------------------------------------------------------ > *From:* reinhard schwab <rei...@ao...> > *To:* htm...@li... > *Sent:* Thursday, March 6, 2014 2:38 AM > *Subject:* [Htmlunit-user] StackOverflowError > > Hi, > > I am using htmlunit 2.14 and get a StackOverflowError > > Exception in thread "main" java.lang.StackOverflowError > at > net.sourceforge.htmlunit.corejs.javascript.BaseFunction.findInstanceIdInfo(BaseFunction.java:96) > at > net.sourceforge.htmlunit.corejs.javascript.IdScriptableObject.put(IdScriptableObject.java:330) > at > com.gargoylesoftware.htmlunit.javascript.FunctionWrapper.put(FunctionWrapper.java:62) > at > net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:526) > at > net.sourceforge.htmlunit.corejs.javascript.IdScriptableObject.put(IdScriptableObject.java:357) > at > com.gargoylesoftware.htmlunit.javascript.FunctionWrapper.put(FunctionWrapper.java:62) > at > net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:526) > at > net.sourceforge.htmlunit.corejs.javascript.IdScriptableObject.put(IdScriptableObject.java:357) > > This is reproduceable with this code snippet. > > WebClient webClient = new WebClient(); > webClient.getOptions().setJavaScriptEnabled(true); > HtmlPage page = (HtmlPage) webClient.getPage("https://www.xing.com/"); > > Best regards > Reinhard > > > ------------------------------------------------------------------------------ > Subversion Kills Productivity. Get off Subversion & Make the Move to > Perforce. > With Perforce, you get hassle-free workflows. Merge that actually works. > Faster operations. Version large binaries. Built-in WAN optimization > and the > freedom to use Git, Perforce or both. Make the move to Perforce. > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > <mailto:Htm...@li...> > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > ------------------------------------------------------------------------------ > Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. > With Perforce, you get hassle-free workflows. Merge that actually works. > Faster operations. Version large binaries. Built-in WAN optimization and the > freedom to use Git, Perforce or both. Make the move to Perforce. > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > > > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Sreenath <sre...@gm...> - 2014-03-06 09:33:52
|
Hello Ahamad, it works fine with normal browser when we set to User agent to iphone usgent, not mobile device. Thats the reason i have tried to get advice from discussion forum. Please advice. Thanks Sreenadh On Thu, Mar 6, 2014 at 2:25 PM, Ahmed Ashour <asa...@ya...> wrote: > Hi Sreenath, > > Previously, it was hinted to use one of the supported browsers, but you > are using iPhone user-agent. > > You need to isolate minimal case (not with public website) that works with > IE/FF/Chrome, otherwise you are on your own. > > Ahmed > ------------------------------ > *From:* Sreenath <sre...@gm...> > *To:* "htm...@li..." < > htm...@li...> > *Sent:* Thursday, March 6, 2014 11:42 AM > > *Subject:* Re: [Htmlunit-user] HtmlUnit support on Handlebars.template > > Hello Ronald Brill, > > > Let provide minimal test case here, same works fine in real browser. > > import java.io.IOException; > import java.net.MalformedURLException; > import java.net.URL; > import com.gargoylesoftware.htmlunit.BrowserVersion; > import com.gargoylesoftware.htmlunit.BrowserVersionFeatures; > import com.gargoylesoftware.htmlunit.CookieManager; > import com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException; > import com.gargoylesoftware.htmlunit.IncorrectnessListener; > import com.gargoylesoftware.htmlunit.NicelyResynchronizingAjaxController; > import com.gargoylesoftware.htmlunit.SilentCssErrorHandler; > import com.gargoylesoftware.htmlunit.WebClient; > import com.gargoylesoftware.htmlunit.WebRequest; > import com.gargoylesoftware.htmlunit.html.HtmlPage; > > public class TestProgramJSIssue { > public static void main(String args[]) throws > FailingHttpStatusCodeException, IOException, InterruptedException > { > String url = " > http://www.victoriassecret.com/victorias-secret-sport/all-tops/funnel-neck-pullover-vs-sport?ProductID=147289&CatalogueType=OLS > "; > CookieManager cm = new CookieManager(); > cm.setCookiesEnabled(true); > cm.clearCookies(); > String UA = "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; > en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 > Safari/6533.18.5"; > BrowserVersion bv = BrowserVersion.FIREFOX_17;; > bv.setUserAgent(UA); > bv.setOnLine(true); > WebClient webClient = new WebClient(bv); > cm.clearCookies(); > cm.setCookiesEnabled(true); > webClient.setCookieManager(cm); > webClient.setAjaxController(new NicelyResynchronizingAjaxController()); > webClient.setJavaScriptTimeout(15000); > webClient.getOptions().setJavaScriptEnabled(true); > webClient.getOptions().setThrowExceptionOnScriptError(false); > webClient.waitForBackgroundJavaScript(15000); > webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); > webClient.getOptions().setRedirectEnabled(true); > webClient.getOptions().setUseInsecureSSL(true); > webClient.getOptions().setCssEnabled(true); > //webClient.setRefreshHandler(new WaitingRefreshHandler(3000)); > final IncorrectnessListener il = new MyIncorrectnessListener(); // it > just quiets errors down > webClient.setIncorrectnessListener(il); > final SilentCssErrorHandler eh = new SilentCssErrorHandler(); > webClient.setCssErrorHandler(eh); > webClient.getOptions().setPopupBlockerEnabled(true); > webClient.getCache().clear(); > webClient.getCookieManager().clearCookies(); > WebRequest request = new WebRequest(new URL(url)); > HtmlPage page = webClient.getPage(request); > Thread.sleep(8000); > > } > > } > > Getting following error in console with HtmlUnit. > > > com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call > method "template" of undefined ( > http://dm.victoriassecret.com/resources/build/6794ee2b8a33fa2f29b16a44d6fd83a2e2027dc2/mobile/script/product.js#2 > ) > > Please advice. > > > > On Thu, Mar 6, 2014 at 12:46 AM, Ronald Brill <rb...@rb...> wrote: > > Hi Sreenadh, > > short answer: Yes. > > Longer one; i guess you have to try and if you find situations, where > HtmlUnit acts different than the real browser report an error. > And please keep in mind that the time for getting an error fixed mainly > depends on the details of your error report (see: > http://htmlunit.sourceforge.net/submittingJSBugs.html). > If you can show the error with a really simple test case (no js lib only > some plain js statements), there is a good chance to get a fix. > > RBRi > > > On Wed, 5 Mar 2014 23:39:29 +0530 Sreenath wrote: > > > >Does HtmlUnit support Handlebars.template js library? > > > >Came across failures on page loading on handlebars initialization. > > > >Please advice. > > > >Thanks > >Sreenadh > > > > > > ------------------------------------------------------------------------------ > Subversion Kills Productivity. Get off Subversion & Make the Move to > Perforce. > With Perforce, you get hassle-free workflows. Merge that actually works. > Faster operations. Version large binaries. Built-in WAN optimization and > the > freedom to use Git, Perforce or both. Make the move to Perforce. > > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > -- > If you judge people, you have no time to love them. > > > > ------------------------------------------------------------------------------ > Subversion Kills Productivity. Get off Subversion & Make the Move to > Perforce. > With Perforce, you get hassle-free workflows. Merge that actually works. > Faster operations. Version large binaries. Built-in WAN optimization and > the > freedom to use Git, Perforce or both. Make the move to Perforce. > > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > ------------------------------------------------------------------------------ > Subversion Kills Productivity. Get off Subversion & Make the Move to > Perforce. > With Perforce, you get hassle-free workflows. Merge that actually works. > Faster operations. Version large binaries. Built-in WAN optimization and > the > freedom to use Git, Perforce or both. Make the move to Perforce. > > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > -- If you judge people, you have no time to love them. |
From: Ahmed A. <asa...@ya...> - 2014-03-06 08:55:47
|
Hi Sreenath, Previously, it was hinted to use one of the supported browsers, but you are using iPhone user-agent. You need to isolate minimal case (not with public website) that works with IE/FF/Chrome, otherwise you are on your own. Ahmed ________________________________ From: Sreenath <sre...@gm...> To: "htm...@li..." <htm...@li...> Sent: Thursday, March 6, 2014 11:42 AM Subject: Re: [Htmlunit-user] HtmlUnit support on Handlebars.template Hello Ronald Brill, Let provide minimal test case here, same works fine in real browser. import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import com.gargoylesoftware.htmlunit.BrowserVersion; import com.gargoylesoftware.htmlunit.BrowserVersionFeatures; import com.gargoylesoftware.htmlunit.CookieManager; import com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException; import com.gargoylesoftware.htmlunit.IncorrectnessListener; import com.gargoylesoftware.htmlunit.NicelyResynchronizingAjaxController; import com.gargoylesoftware.htmlunit.SilentCssErrorHandler; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.WebRequest; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class TestProgramJSIssue { public static void main(String args[]) throws FailingHttpStatusCodeException, IOException, InterruptedException { String url = "http://www.victoriassecret.com/victorias-secret-sport/all-tops/funnel-neck-pullover-vs-sport?ProductID=147289&CatalogueType=OLS"; CookieManager cm = new CookieManager(); cm.setCookiesEnabled(true); cm.clearCookies(); String UA = "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5"; BrowserVersion bv = BrowserVersion.FIREFOX_17;; bv.setUserAgent(UA); bv.setOnLine(true); WebClient webClient = new WebClient(bv); cm.clearCookies(); cm.setCookiesEnabled(true); webClient.setCookieManager(cm); webClient.setAjaxController(new NicelyResynchronizingAjaxController()); webClient.setJavaScriptTimeout(15000); webClient.getOptions().setJavaScriptEnabled(true); webClient.getOptions().setThrowExceptionOnScriptError(false); webClient.waitForBackgroundJavaScript(15000); webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); webClient.getOptions().setRedirectEnabled(true); webClient.getOptions().setUseInsecureSSL(true); webClient.getOptions().setCssEnabled(true); //webClient.setRefreshHandler(new WaitingRefreshHandler(3000)); final IncorrectnessListener il = new MyIncorrectnessListener(); // it just quiets errors down webClient.setIncorrectnessListener(il); final SilentCssErrorHandler eh = new SilentCssErrorHandler(); webClient.setCssErrorHandler(eh); webClient.getOptions().setPopupBlockerEnabled(true); webClient.getCache().clear(); webClient.getCookieManager().clearCookies(); WebRequest request = new WebRequest(new URL(url)); HtmlPage page = webClient.getPage(request); Thread.sleep(8000); } } Getting following error in console with HtmlUnit. com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "template" of undefined (http://dm.victoriassecret.com/resources/build/6794ee2b8a33fa2f29b16a44d6fd83a2e2027dc2/mobile/script/product.js#2) Please advice. On Thu, Mar 6, 2014 at 12:46 AM, Ronald Brill <rb...@rb...> wrote: Hi Sreenadh, > >short answer: Yes. > >Longer one; i guess you have to try and if you find situations, where HtmlUnit acts different than the real browser report an error. >And please keep in mind that the time for getting an error fixed mainly depends on the details of your error report (see: http://htmlunit.sourceforge.net/submittingJSBugs.html). >If you can show the error with a really simple test case (no js lib only some plain js statements), there is a good chance to get a fix. > > RBRi > > > >On Wed, 5 Mar 2014 23:39:29 +0530 Sreenath wrote: >> >>Does HtmlUnit support Handlebars.template js library? >> >>Came across failures on page loading on handlebars initialization. >> >>Please advice. >> >>Thanks >>Sreenadh >> > > >------------------------------------------------------------------------------ >Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. >With Perforce, you get hassle-free workflows. Merge that actually works. >Faster operations. Version large binaries. Built-in WAN optimization and the >freedom to use Git, Perforce or both. Make the move to Perforce. >http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > -- If you judge people, you have no time to love them. ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Sreenath <sre...@gm...> - 2014-03-06 08:42:09
|
Hello Ronald Brill, Let provide minimal test case here, same works fine in real browser. import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import com.gargoylesoftware.htmlunit.BrowserVersion; import com.gargoylesoftware.htmlunit.BrowserVersionFeatures; import com.gargoylesoftware.htmlunit.CookieManager; import com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException; import com.gargoylesoftware.htmlunit.IncorrectnessListener; import com.gargoylesoftware.htmlunit.NicelyResynchronizingAjaxController; import com.gargoylesoftware.htmlunit.SilentCssErrorHandler; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.WebRequest; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class TestProgramJSIssue { public static void main(String args[]) throws FailingHttpStatusCodeException, IOException, InterruptedException { String url = " http://www.victoriassecret.com/victorias-secret-sport/all-tops/funnel-neck-pullover-vs-sport?ProductID=147289&CatalogueType=OLS "; CookieManager cm = new CookieManager(); cm.setCookiesEnabled(true); cm.clearCookies(); String UA = "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5"; BrowserVersion bv = BrowserVersion.FIREFOX_17;; bv.setUserAgent(UA); bv.setOnLine(true); WebClient webClient = new WebClient(bv); cm.clearCookies(); cm.setCookiesEnabled(true); webClient.setCookieManager(cm); webClient.setAjaxController(new NicelyResynchronizingAjaxController()); webClient.setJavaScriptTimeout(15000); webClient.getOptions().setJavaScriptEnabled(true); webClient.getOptions().setThrowExceptionOnScriptError(false); webClient.waitForBackgroundJavaScript(15000); webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); webClient.getOptions().setRedirectEnabled(true); webClient.getOptions().setUseInsecureSSL(true); webClient.getOptions().setCssEnabled(true); //webClient.setRefreshHandler(new WaitingRefreshHandler(3000)); final IncorrectnessListener il = new MyIncorrectnessListener(); // it just quiets errors down webClient.setIncorrectnessListener(il); final SilentCssErrorHandler eh = new SilentCssErrorHandler(); webClient.setCssErrorHandler(eh); webClient.getOptions().setPopupBlockerEnabled(true); webClient.getCache().clear(); webClient.getCookieManager().clearCookies(); WebRequest request = new WebRequest(new URL(url)); HtmlPage page = webClient.getPage(request); Thread.sleep(8000); } } Getting following error in console with HtmlUnit. com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "template" of undefined ( http://dm.victoriassecret.com/resources/build/6794ee2b8a33fa2f29b16a44d6fd83a2e2027dc2/mobile/script/product.js#2 ) Please advice. On Thu, Mar 6, 2014 at 12:46 AM, Ronald Brill <rb...@rb...> wrote: > Hi Sreenadh, > > short answer: Yes. > > Longer one; i guess you have to try and if you find situations, where > HtmlUnit acts different than the real browser report an error. > And please keep in mind that the time for getting an error fixed mainly > depends on the details of your error report (see: > http://htmlunit.sourceforge.net/submittingJSBugs.html). > If you can show the error with a really simple test case (no js lib only > some plain js statements), there is a good chance to get a fix. > > RBRi > > > On Wed, 5 Mar 2014 23:39:29 +0530 Sreenath wrote: > > > >Does HtmlUnit support Handlebars.template js library? > > > >Came across failures on page loading on handlebars initialization. > > > >Please advice. > > > >Thanks > >Sreenadh > > > > > > ------------------------------------------------------------------------------ > Subversion Kills Productivity. Get off Subversion & Make the Move to > Perforce. > With Perforce, you get hassle-free workflows. Merge that actually works. > Faster operations. Version large binaries. Built-in WAN optimization and > the > freedom to use Git, Perforce or both. Make the move to Perforce. > > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > -- If you judge people, you have no time to love them. |
From: Ahmed A. <asa...@ya...> - 2014-03-06 01:28:14
|
Hi Reinhard, That particular error is now fixed in SVN. However, there is another one. I personally owe xing.com something ;) but currently it would take some time before look into. Please try to isolate a minimal case (without external .js) as hinted in http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed ________________________________ From: reinhard schwab <rei...@ao...> To: htm...@li... Sent: Thursday, March 6, 2014 2:38 AM Subject: [Htmlunit-user] StackOverflowError Hi, I am using htmlunit 2.14 and get a StackOverflowError Exception in thread "main" java.lang.StackOverflowError at net.sourceforge.htmlunit.corejs.javascript.BaseFunction.findInstanceIdInfo(BaseFunction.java:96) at net.sourceforge.htmlunit.corejs.javascript.IdScriptableObject.put(IdScriptableObject.java:330) at com.gargoylesoftware.htmlunit.javascript.FunctionWrapper.put(FunctionWrapper.java:62) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:526) at net.sourceforge.htmlunit.corejs.javascript.IdScriptableObject.put(IdScriptableObject.java:357) at com.gargoylesoftware.htmlunit.javascript.FunctionWrapper.put(FunctionWrapper.java:62) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:526) at net.sourceforge.htmlunit.corejs.javascript.IdScriptableObject.put(IdScriptableObject.java:357) This is reproduceable with this code snippet. WebClient webClient = new WebClient(); webClient.getOptions().setJavaScriptEnabled(true); HtmlPage page = (HtmlPage) webClient.getPage("https://www.xing.com/"); Best regards Reinhard ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: reinhard s. <rei...@ao...> - 2014-03-05 23:19:45
|
Hi, I am using htmlunit 2.14 and get a StackOverflowError Exception in thread "main" java.lang.StackOverflowError at net.sourceforge.htmlunit.corejs.javascript.BaseFunction.findInstanceIdInfo(BaseFunction.java:96) at net.sourceforge.htmlunit.corejs.javascript.IdScriptableObject.put(IdScriptableObject.java:330) at com.gargoylesoftware.htmlunit.javascript.FunctionWrapper.put(FunctionWrapper.java:62) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:526) at net.sourceforge.htmlunit.corejs.javascript.IdScriptableObject.put(IdScriptableObject.java:357) at com.gargoylesoftware.htmlunit.javascript.FunctionWrapper.put(FunctionWrapper.java:62) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:526) at net.sourceforge.htmlunit.corejs.javascript.IdScriptableObject.put(IdScriptableObject.java:357) This is reproduceable with this code snippet. WebClient webClient = new WebClient(); webClient.getOptions().setJavaScriptEnabled(true); HtmlPage page = (HtmlPage) webClient.getPage("https://www.xing.com/"); Best regards Reinhard |
From: Ronald B. <rb...@rb...> - 2014-03-05 19:17:05
|
Hi Sreenadh, short answer: Yes. Longer one; i guess you have to try and if you find situations, where HtmlUnit acts different than the real browser report an error. And please keep in mind that the time for getting an error fixed mainly depends on the details of your error report (see: http://htmlunit.sourceforge.net/submittingJSBugs.html). If you can show the error with a really simple test case (no js lib only some plain js statements), there is a good chance to get a fix. RBRi On Wed, 5 Mar 2014 23:39:29 +0530 Sreenath wrote: > >Does HtmlUnit support Handlebars.template js library? > >Came across failures on page loading on handlebars initialization. > >Please advice. > >Thanks >Sreenadh > |
From: Sreenath <sre...@gm...> - 2014-03-05 18:09:39
|
Does HtmlUnit support Handlebars.template js library? Came across failures on page loading on handlebars initialization. Please advice. Thanks Sreenadh -- If you judge people, you have no time to love them. |
From: Ahmed A. <asa...@ya...> - 2014-03-04 08:43:22
|
Hi Kumar, Please use latest HtmlUnit 2.14, and provide minimal case. Ahmed ----- Forwarded Message ----- Dear all, I am getting following exception while using htmlunit 2.11 included in jwebunit 3.1. I am also using Rhino 1.7R2. Can you please guide me how to fix this. Thanks a lot, Kumar ======= EXCEPTION START ======== Exception class=[net.sourceforge.htmlunit.corejs.javascript.WrappedException] com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) (http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:663) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:523) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:970) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:337) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:415) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:276) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:626) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:585) at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1169) at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1071) at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:330) at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3074) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2041) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:918) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:818) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:234) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:180) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:267) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:155) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:433) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:308) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:373) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.gotoPage(HtmlUnitTestingEngineImpl.java:253) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.beginAt(HtmlUnitTestingEngineImpl.java:212) at net.sourceforge.jwebunit.junit.WebTester.beginAt(WebTester.java:234) at com.kgaurav.BonusSignals.checkDailySignals(BonusSignals.java:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) (http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) |
From: Kumar G. <ga...@kg...> - 2014-03-03 14:52:29
|
Dear all, I am getting following exception while using htmlunit 2.11 included in jwebunit 3.1. I am also using Rhino 1.7R2. Can you please guide me how to fix this. Thanks a lot, Kumar ======= EXCEPTION START ======== Exception class=[net.sourceforge.htmlunit.corejs.javascript.WrappedException] com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:663) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:523) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:970) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:337) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:415) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:276) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:626) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:585) at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1169) at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1071) at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:330) at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3074) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2041) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:918) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:818) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:234) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:180) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:267) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:155) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:433) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:308) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:373) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.gotoPage(HtmlUnitTestingEngineImpl.java:253) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.beginAt(HtmlUnitTestingEngineImpl.java:212) at net.sourceforge.jwebunit.junit.WebTester.beginAt(WebTester.java:234) at com.kgaurav.BonusSignals.checkDailySignals(BonusSignals.java:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1824) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:717) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$400(JavaScriptEngine.java:89) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:659) ... 58 more Caused by: com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:663) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1073) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:399) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:712) ... 60 more Caused by: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1824) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:717) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$400(JavaScriptEngine.java:89) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:659) ... 67 more Caused by: com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:663) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1073) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:399) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:712) ... 69 more Caused by: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1824) at com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleSheet.insertRule(CSSStyleSheet.java:707) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:137) at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:452) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1473) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:815) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:109) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:415) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:274) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3132) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:120) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:539) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:651) ... 76 more Caused by: com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) at com.steadystate.css.dom.CSSStyleSheetImpl.insertRule(CSSStyleSheetImpl.java:212) at com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleSheet.insertRule(CSSStyleSheet.java:704) ... 91 more WrappedException: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1824) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:717) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$400(JavaScriptEngine.java:89) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:659) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:523) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:970) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:337) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:415) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:276) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:626) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:585) at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1169) at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1071) at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:330) at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3074) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2041) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:918) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:818) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:234) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:180) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:267) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:155) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:433) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:308) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:373) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.gotoPage(HtmlUnitTestingEngineImpl.java:253) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.beginAt(HtmlUnitTestingEngineImpl.java:212) at net.sourceforge.jwebunit.junit.WebTester.beginAt(WebTester.java:234) at com.kgaurav.BonusSignals.checkDailySignals(BonusSignals.java:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:663) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1073) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:399) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:712) ... 60 more Caused by: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1824) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:717) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$400(JavaScriptEngine.java:89) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:659) ... 67 more Caused by: com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:663) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1073) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:399) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:712) ... 69 more Caused by: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1824) at com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleSheet.insertRule(CSSStyleSheet.java:707) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:137) at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:452) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1473) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:815) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:109) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:415) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:274) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3132) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:120) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:539) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:651) ... 76 more Caused by: com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) at com.steadystate.css.dom.CSSStyleSheetImpl.insertRule(CSSStyleSheetImpl.java:212) at com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleSheet.insertRule(CSSStyleSheet.java:704) ... 91 more Inside wrapped exception: ======= EXCEPTION START ======== Exception class=[net.sourceforge.htmlunit.corejs.javascript.WrappedException] com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:663) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1073) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:399) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:712) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$400(JavaScriptEngine.java:89) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:659) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:523) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:970) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:337) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:415) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:276) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:626) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:585) at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1169) at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1071) at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:330) at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3074) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2041) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:918) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:818) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:234) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:180) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:267) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:155) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:433) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:308) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:373) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.gotoPage(HtmlUnitTestingEngineImpl.java:253) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.beginAt(HtmlUnitTestingEngineImpl.java:212) at net.sourceforge.jwebunit.junit.WebTester.beginAt(WebTester.java:234) at com.kgaurav.BonusSignals.checkDailySignals(BonusSignals.java:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1824) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:717) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$400(JavaScriptEngine.java:89) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:659) ... 67 more Caused by: com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:663) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1073) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:399) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:712) ... 69 more Caused by: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1824) at com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleSheet.insertRule(CSSStyleSheet.java:707) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:137) at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:452) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1473) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:815) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:109) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:415) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:274) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3132) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:120) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:539) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:651) ... 76 more Caused by: com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) at com.steadystate.css.dom.CSSStyleSheetImpl.insertRule(CSSStyleSheetImpl.java:212) at com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleSheet.insertRule(CSSStyleSheet.java:704) ... 91 more WrappedException: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1824) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:717) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$400(JavaScriptEngine.java:89) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:659) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1073) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:399) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:712) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$400(JavaScriptEngine.java:89) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:659) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:523) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:970) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:337) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:415) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:276) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:626) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:585) at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1169) at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1071) at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:330) at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3074) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2041) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:918) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:818) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:234) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:180) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:267) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:155) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:433) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:308) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:373) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.gotoPage(HtmlUnitTestingEngineImpl.java:253) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.beginAt(HtmlUnitTestingEngineImpl.java:212) at net.sourceforge.jwebunit.junit.WebTester.beginAt(WebTester.java:234) at com.kgaurav.BonusSignals.checkDailySignals(BonusSignals.java:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:663) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1073) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:399) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:712) ... 69 more Caused by: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1824) at com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleSheet.insertRule(CSSStyleSheet.java:707) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:137) at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:452) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1473) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:815) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:109) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:415) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:274) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3132) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:120) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:539) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:651) ... 76 more Caused by: com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) at com.steadystate.css.dom.CSSStyleSheetImpl.insertRule(CSSStyleSheetImpl.java:212) at com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleSheet.insertRule(CSSStyleSheet.java:704) ... 91 more Inside wrapped exception: ======= EXCEPTION START ======== Exception class=[net.sourceforge.htmlunit.corejs.javascript.WrappedException] com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:663) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1073) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:399) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:712) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$400(JavaScriptEngine.java:89) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:659) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1073) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:399) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:712) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$400(JavaScriptEngine.java:89) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:659) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:523) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:970) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:337) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:415) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:276) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:626) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:585) at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1169) at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1071) at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:330) at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3074) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2041) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:918) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:818) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:234) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:180) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:267) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:155) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:433) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:308) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:373) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.gotoPage(HtmlUnitTestingEngineImpl.java:253) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.beginAt(HtmlUnitTestingEngineImpl.java:212) at net.sourceforge.jwebunit.junit.WebTester.beginAt(WebTester.java:234) at com.kgaurav.BonusSignals.checkDailySignals(BonusSignals.java:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1824) at com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleSheet.insertRule(CSSStyleSheet.java:707) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:137) at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:452) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1473) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:815) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:109) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:415) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:274) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3132) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:120) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:539) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:651) ... 76 more Caused by: com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) at com.steadystate.css.dom.CSSStyleSheetImpl.insertRule(CSSStyleSheetImpl.java:212) at com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleSheet.insertRule(CSSStyleSheet.java:704) ... 91 more WrappedException: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) ( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js#218) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1824) at com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleSheet.insertRule(CSSStyleSheet.java:707) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:137) at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:452) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1473) at script( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js:218) at script( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js:214) at script( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js:221) at script( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js:235) at script( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js:241) at script( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js:55) at script( http://d3mvnvhjmkxpjz.cloudfront.net/js/5862/usersnap2-5862-en.js:12) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:815) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:109) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:415) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:274) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3132) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:120) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:539) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:651) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1073) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:399) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:712) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$400(JavaScriptEngine.java:89) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:659) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1073) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:399) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:712) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$400(JavaScriptEngine.java:89) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:659) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:559) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:525) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:548) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:523) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:970) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:337) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:415) at com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:276) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:626) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:585) at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1169) at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1071) at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:330) at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3074) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2041) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:918) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:818) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:234) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:180) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:267) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:155) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:433) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:308) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:373) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.gotoPage(HtmlUnitTestingEngineImpl.java:253) at net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.beginAt(HtmlUnitTestingEngineImpl.java:212) at net.sourceforge.jwebunit.junit.WebTester.beginAt(WebTester.java:234) at com.kgaurav.BonusSignals.checkDailySignals(BonusSignals.java:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) at com.steadystate.css.dom.CSSStyleSheetImpl.insertRule(CSSStyleSheetImpl.java:212) at com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleSheet.insertRule(CSSStyleSheet.java:704) ... 91 more Inside wrapped exception: com.steadystate.css.dom.DOMExceptionImpl: Syntax error (Error in media list. (Invalid token "(". Was expecting one of: <S>, <IDENT>.)) at com.steadystate.css.dom.CSSStyleSheetImpl.insertRule(CSSStyleSheetImpl.java:212) at com.gargoylesoftware... [truncated message content] |
From: Reeni M. <ree...@gm...> - 2014-03-03 09:15:12
|
naftalina <mastersyphodias <at> gmail.com> writes: > > > Hello, I'm trying to scarpe the facebook profile page. > > The problem is that the content is loaded trought ajax scripts as the user > scrolls down the main window. Is there a way to simulate these user actions > with HtmlUnit? > > I tryed the fireEvent("scroll") method on some key HtmlElements but I got no > results. > > thank you. > Hi Naftalina, Were you able to solve this issue? Could you please share some details on how can this be done. Thanks & Regards Reeni |
From: Jack Bi <814...@qq...> - 2014-02-26 15:45:46
|
My English is very poor,sorry! -- View this message in context: http://htmlunit.10904.n7.nabble.com/How-to-use-htmlUnit-execution-of-type-String-HTML-page-tp33241p33245.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |
From: Jack Bi <814...@qq...> - 2014-02-26 15:43:42
|
Hi Ahmed: The HTML code like this: <html> <head> </head> <body onLoad="setTimeout('delayer()', 5000)"> Prepare to be redirected! </body> </html> I need to execute javascript to redirect HTMLPage.Only function getPage() can execute javascript code in HTML? Thank you! Yours, Jack -- View this message in context: http://htmlunit.10904.n7.nabble.com/How-to-use-htmlUnit-execution-of-type-String-HTML-page-tp33241p33244.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |
From: Ahmed A. <asa...@ya...> - 2014-02-26 14:52:01
|
Hi Jack, String html = "hello"; URL url = new URL("http://localhost"); StringWebResponse stringWebResponse = new StringWebResponse(html, url); WebClient webClient = new WebClient(); webClient.getOptions().setJavaScriptEnabled(false); HtmlPage page = HTMLParser.parseHtml(stringWebResponse, webClient.getTopLevelWindows().get(0)); Ahmed ________________________________ From: Jack Bi <814...@qq...> To: htm...@li... Sent: Wednesday, February 26, 2014 5:38 PM Subject: [Htmlunit-user] How to use htmlUnit execution of type String HTML page Hi all: Because of htmlUnit is very slow, so I thought of using httpclient to obtain page code. But the HTML code that I got is not I wanted, page with JS code need to be executed. I would like to know how to use htmlUnit execute the code. This is my code: HttpPost httpPost = new HttpPost(urlString); List<NameValuePair> formparams = new ArrayList<NameValuePair>(); formparams.add(new BasicNameValuePair(inputName, "https://twitter.com")); formparams.add(new BasicNameValuePair(selectName,optionValue)); httpPost.setEntity(new UrlEncodedFormEntity(formparams,HTTP.UTF_8)); HttpResponse response = httpClient.execute(httpPost); entity = response.getEntity(); htmlString = EntityUtils.toString(entity,HTTP.UTF_8); URL url = new URL(urlString); StringWebResponse webResponse = new StringWebResponse(htmlString, url); HtmlPage page = HTMLParser.parseHtml(webResponse, webClient.getCurrentWindow()); Thread.sleep(20*1000); But it cannot work.How can I do? Thank you very much! Jack -- View this message in context: http://htmlunit.10904.n7.nabble.com/How-to-use-htmlUnit-execution-of-type-String-HTML-page-tp33241.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Jack Bi <814...@qq...> - 2014-02-26 14:38:06
|
Hi all: Because of htmlUnit is very slow, so I thought of using httpclient to obtain page code. But the HTML code that I got is not I wanted, page with JS code need to be executed. I would like to know how to use htmlUnit execute the code. This is my code: HttpPost httpPost = new HttpPost(urlString); List<NameValuePair> formparams = new ArrayList<NameValuePair>(); formparams.add(new BasicNameValuePair(inputName, "https://twitter.com")); formparams.add(new BasicNameValuePair(selectName,optionValue)); httpPost.setEntity(new UrlEncodedFormEntity(formparams,HTTP.UTF_8)); HttpResponse response = httpClient.execute(httpPost); entity = response.getEntity(); htmlString = EntityUtils.toString(entity,HTTP.UTF_8); URL url = new URL(urlString); StringWebResponse webResponse = new StringWebResponse(htmlString, url); HtmlPage page = HTMLParser.parseHtml(webResponse, webClient.getCurrentWindow()); Thread.sleep(20*1000); But it cannot work.How can I do? Thank you very much! Jack -- View this message in context: http://htmlunit.10904.n7.nabble.com/How-to-use-htmlUnit-execution-of-type-String-HTML-page-tp33241.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |
From: Jack Bi <814...@qq...> - 2014-02-26 09:07:08
|
Thank you very much, I learned a lot from you! Thank you! -- View this message in context: http://htmlunit.10904.n7.nabble.com/How-htmlUnit-handles-javascript-redirects-tp33235p33239.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |
From: asashour <asa...@ya...> - 2014-02-26 08:59:57
|
Hi Jack, - You must subscribe before posting the message (not only afterwars). - You shouldn't disable errors, as I get "com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot set property "innerHTML" of null to "5"" - Please try to isolate a minimal test case as hinted in http://htmlunit.sourceforge.net/submittingJSBugs.html Yours, Ahmed Jack Bi wrote > Hi all: > I run the following class: > private static String urlString = "https://www.k7k6.com/"; > public static void main(String[] args) throws InterruptedException, > FailingHttpStatusCodeException, MalformedURLException, IOException { > WebClient webClient = new WebClient(BrowserVersion.CHROME); > webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); > webClient.getOptions().setThrowExceptionOnScriptError(false); > webClient.getOptions().setCssEnabled(false); > webClient.getOptions().setRedirectEnabled(true); > webClient.getOptions().setJavaScriptEnabled(true); > HtmlPage page = null; > page = webClient.getPage(urlString); > HtmlForm form = page.getForms().get(0); > HtmlTextInput textInput1 = form.getInputByName("url"); > textInput1.setValueAttribute("https://twitter.com"); > HtmlSelect seriesSelect = form.getSelectByName("server"); > > List > <HtmlOption> > optionList = seriesSelect.getOptions(); > optionList.get(2).setSelected(true); > HtmlElement button = (HtmlElement) page.createElement("button"); > button.setAttribute("type", "submit"); > form.appendChild(button); > HtmlPage page2 = null; > try { > page2 = button.click(); > } catch (IOException e) { > e.printStackTrace(); > } > Thread.sleep(30*1000); > HtmlPage page3 = > ((HtmlPage)webClient.getCurrentWindow().getEnclosedPage()); > System.out.println(page3.asXml()); > if (page3.asText().contains("Warning")) { > form = page3.getForms().get(0); > button = form.getInputByValue("Continue anyway..."); > HtmlPage page4 = button.click(); > Thread.sleep(30*1000); > > System.out.println(((HtmlPage)webClient.getCurrentWindow().getEnclosedPage()).asXml()); > }else { > System.out.println("~~~~"); > System.out.println(page3.asXml()); > } > } > ===============HTML like this================== > <html> > > <head> > > > </head> > > <body onLoad="setTimeout('delayer()', 5000)"> > > Prepare to be redirected! > > <p> > This page is a time delay redirect, please update your bookmarks to our > new > location! > </p> > > </body> > > </html> > > ================================= > I can only get a jump in the middle of the page,how can i do, so that ir > will work? > I use htmlunit 2.14 snapshot. > Thanks, > Jack. -- View this message in context: http://htmlunit.10904.n7.nabble.com/How-htmlUnit-handles-javascript-redirects-tp33235p33238.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |