Htmlunitdriver Does Not Load Javascript When Navigating A Page From An Url
Here is my problem, I'm trying to load my website page for testing it but when i look at the html I get from the HtmlUnitDriver, elements displayed with javascript are not present.
Solution 1:
HTML <noscript>
Tag
The <noscript>
defines an content for users that have disabled scripts in their browser or have a browser that doesn't support script. The <noscript>
element can be used in both <head>
and <body>
. When used inside the <head>
element, <noscript>
must contain only <link>
, <style>
, or <meta>
elements. The content inside the <noscript>
element will be displayed if scripts are not supported, or are disabled in the user's browser.
When I tried your code block:
WebDriver driver = new HtmlUnitDriver();
driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
driver.setJavascriptEnabled(true);
driver.get("https://stackoverflow.com/questions/7926246/why-doesnt-htmlunitdriver-execute-javascript");
System.out.println(driver.getPageSource());
I got an error at the line:
driver.setJavascriptEnabled(true);
As:
The method setJavascriptEnabled(boolean) is undefinedfor the typeWebDriver
There are two solutions:
Either cast the driver instance and invoke
setJavascriptEnabled(true)
as follows:((HtmlUnitDriver) driver).setJavascriptEnabled(true);
Or pass the argument true which enables javascript support as follows:
WebDriver driver = new HtmlUnitDriver(true); driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); driver.get("https://stackoverflow.com/questions/7926246/why-doesnt-htmlunitdriver-execute-javascript"); System.out.println(driver.getPageSource()); driver.quit();
In both the cases the output is identical as follows:
<?xml version="1.0" encoding="UTF-8"?><htmlitemscope=""itemtype="http://schema.org/QAPage"class="html__responsive"><head><title> java - Why doesn't HtmlUnitDriver execute JavaScript? - Stack Overflow </title><linkhref="https://cdn.sstatic.net/Sites/stackoverflow/img/favicon.ico?v=4f32ecc8f43d"/><linkhref="https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon.png?v=c78bd457575a"/><linktype="application/opendescription+xml"title="Stack Overflow"href="/open.xml"/><metaname="viewport"content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0"/><metaproperty="og:type"content="website"/><metaproperty="og:url"content="https://stackoverflow.com/questions/7926246/why-doesnt-htmlunitdriver-execute-javascript"/><metaproperty="og:site_name"content="Stack Overflow"/><metaproperty="og:image"itemprop="image primaryImageOfPage"content="https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon@2.png?v=73d79a89bded"/><metaname="twitter:card"content="summary"/><metaname="twitter:domain"content="stackoverflow.com"/><metaname="twitter:title"property="og:title"itemprop="title name"content="Why doesn't HtmlUnitDriver execute JavaScript?"/><metaname="twitter:description"property="og:description"itemprop="description"content="I got the following problem: I am running a JUnit testCase with Selenium 2.9 using HtmlUnitDriver with Browserversion Firefox_3_6. JavaScript is enabled. Now when it should call and execute the fol..."/><scriptsrc="https://rules.quantcount.com/rules-p-c1rF4kxgLUzNc.js"async=""></script><scriptasync=""src="https://secure.quantserve.com/quant.js"></script><scriptasync=""src="https://sb.scorecardre.com/beacon.js"></script><scriptasync=""src="https://www.google-analytics.com/analytics.js"></script><scriptsrc="https://pagead2.googlesyndication.com/pagead/osd.js"></script><scriptsrc="https://cdn.ampproject.org/rtv/011811091519050/amp4ads-host-v0.js"></script><scriptsrc="https://securepubads.g.doubleclick.net/gpt/pubads_impl_rendering_278.js?21062890"></script><scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script><scriptsrc="https://cdn.sstatic.net/Js/stub.en.js?v=86fc07b77cb3"></script><linktype="text/css"href="https://cdn.sstatic.net/Shared/stacks.css?v=5023e4724ed5"/><linktype="text/css"href="https://cdn.sstatic.net/Sites/stackoverflow/primary-unified.css?v=9424d9dcf4a3"/><linktype="application/atom+xml"title="Feed for question 'Why doesn't HtmlUnitDriver execute JavaScript?'"href="/feeds/question/7926246"/><metaname="twitter:app:country"content="US"/><metaname="twitter:app:name:iphone"content="Stack Exchange iOS"/><metaname="twitter:app:id:iphone"content="871299723"/><metaname="twitter:app:url:iphone"content="se-zaphod://stackoverflow.com/questions/7926246/why-doesnt-htmlunitdriver-execute-javascript"/><metaname="twitter:app:name:ipad"content="Stack Exchange iOS"/><metaname="twitter:app:id:ipad"content="871299723"/><metaname="twitter:app:url:ipad"content="se-zaphod://stackoverflow.com/questions/7926246/why-doesnt-htmlunitdriver-execute-javascript"/><metaname="twitter:app:name:googleplay"content="Stack Exchange Android"/><metaname="twitter:app:url:googleplay"content="http://stackoverflow.com/questions/7926246/why-doesnt-htmlunitdriver-execute-javascript"/><metaname="twitter:app:id:googleplay"content="com.stackexchange.marvin"/><script>//<![CDATA[StackExchange.ready(function () { StackExchange.using("snippets", function () { StackExchange.snippets.initSnippetRenderer(); }); StackExchange.using("postValidation", function () { StackExchange.postValidation.initOnBlurAndSubmit($('#post-form'), 2, 'answer'); }); StackExchange.question.init({showAnswerHelp:true,totalCommentCount:2,shownCommentCount:2,highlightColor:'#F4A83D',backgroundColor:'#FFF',questionId:7926246}); styleCode(); StackExchange.realtime.subscribeToQuestion('1', '7926246'); StackExchange.using("gps", function () { StackExchange.gps.trackOutboundClicks('#content', '.post-text'); }); }); //]]></script><script>//<![CDATA[StackExchange.ready(function () { var d = 100; $.ajax({url:"https://cdn.sstatic.net/WinterBash/js/wb4qa.js?v=5",cache:true,dataType:"script"}).done(functiontryInit() { if (window.WinterBash) { WinterBash.core.init('winterbash2018.stackexchange.com', 'https://cdn.sstatic.net/WinterBash/', '3', false); } else { if (d <= 800) setTimeout(tryInit, d); d *= 2; } }); }); //]]></script><script>//<![CDATA[StackExchange.init({"locale":"en","serverTime":1544623167,"routeName":"Questions/Show","stackAuthUrl":"https://stackauth.com","networkMetaHostname":"meta.stackexchange.com","site":{"name":"Stack Overflow","description":"Q&A for professional and enthusiast programmers","isNoticesTabEnabled":true,"enableNewTagCreationWarning":true,"insertSpaceAfterNameTabCompletion":false,"id":1,"childUrl":"https://meta.stackoverflow.com","enableSocialMediaInSharePopup":true,"protocol":"https"},"user":{"fkey":"29da02f0855a8cc9776a70151ea3e3d68966e60e54f9aa3b2491a5234ecba3cc","tid":"608f762a-97db-360f-08db-c52d8278395c","rep":0,"isAnonymous":true,"isAnonymousNetworkWide":true,"ab":{"inline_signup_hero":{"v":"d","g":1}}},"events":{"postType":{"question":1},"postEditionSection":{"title":1,"body":2,"s":3}},"story":{"minCompleteBodyLength":75,"likedTagsMaxLength":300,"dislikedTagsMaxLength":300},"jobPreferences":{"maxNumDeveloperRoles":2,"maxNumIndustries":4},"svgIconPath":"https://cdn.sstatic.net/Img/svg-icons","svgIconHash":"38192da1e2db"}, {"site":{"allowImageUploads":true,"enableUserHovercards":true,"styleCode":true,"enableImgurHttps":true,"forceHttpsImages":true,"stacksValidation":true},"userMessaging":{},"comments":{},"userProfile":{"openGraphAPIKey":"58740831ad23540e00c58987"},"s":{},"accounts":{"currentPasswordRequiredForChangingStackIdPassword":true},"flags":{"allowRetractingFlags":true},"snippets":{"snippetsEnabled":true,"renderDomain":"stacksnippets.net"},"paths":{},"markdown":{"asteriskIntraWordEmphasis":true},"monitoring":{"clientTimingsAbsoluteTimeout":30000,"clientTimingsDebounceTimeout":1000},"mentions":{"maxNumUsersInDropdown":50},"slack":{"sidebarAdDismissCookie":"slack-sidebar-ad"}}); StackExchange.using.setCacheBreakers({"js/prettify-full.en.js":"537577215963","js/moderator.en.js":"c48addfbc3c8","js/full-anon.en.js":"4dc78e89befa","js/full.en.js":"7b0d3adc4723","js/wmd.en.js":"942921cd6aa6","js/mobile.en.js":"0530e6d963ab","js/help.en.js":"ea9b6d3ca995","js/editor.en.js":"f5ffd857ba9d","js/editornew.en.js":"dbec77975b56","js/inline--editing.en.js":"97b4a0d9f86f","js/revisions.en.js":"8f22ba768cac","js/review.en.js":"94323c3bdabd","js/suggestions.en.js":"b278f9a0b23b","js/post-validation.en.js":"70b289599a70","js/explore-qlist.en.js":"222b04ca33bc","js/events.en.js":"dd2d0d0578a0","js/keyboard-shortcuts.en.js":"390ab347f2c4","js/external-editor.en.js":"cca27370f403","js/adops.en.js":"22a9bd59b1e9","js/begin-edit-event.en.js":"7415f5dee62d","js/external-editor.en.js":"cca27370f403","js/snippet-javascript.en.js":"ebc751779f44","js/snippet-javascript-codemirror.en.js":"fa05a6e17d62"}); StackExchange.using("gps", function() { StackExchange.gps.init(true); }); //]]></script><linkhref="https://cdn.sstatic.net/clc/styles/clc.min.css?v=1db48f495ba1"type="text/css"/><linkhref="https://adservice.google.co.in/adsid/integrator.js?domain=stackoverflow.com"/><scripttype="text/javascript"src="https://adservice.google.co.in/adsid/integrator.js?domain=stackoverflow.com"></script><linkhref="https://adservice.google.com/adsid/integrator.js?domain=stackoverflow.com"/><scripttype="text/javascript"src="https://adservice.google.com/adsid/integrator.js?domain=stackoverflow.com"></script><scriptsrc="https://securepubads.g.doubleclick.net/gpt/pubads_impl_278.js?21062890"async=""></script><linkhref="https://tpc.googlesyndication.com/safeframe/1-0-31/html/container.html"/><scriptasync=""src="https://cdn.sstatic.net/Js/full-anon.en.js?v=4dc78e89befa"></script><scriptasync=""src="https://cdn.sstatic.net/Js/snippet-javascript.en.js?v=ebc751779f44"></script><scriptasync=""src="https://cdn.sstatic.net/Js/post-validation.en.js?v=70b289599a70"></script><scriptasync=""src="https://cdn.sstatic.net/Js/prettify-full.en.js?v=537577215963"></script><scriptasync=""src="https://cdn.sstatic.net/Js/external-editor.en.js?v=cca27370f403"></script><linktype="text/css"href="https://cdn.sstatic.net/WinterBash/css/wb4qa.css?v=2"/></head><bodyclass="question-page unified-theme"><noscriptid="noscript-css"><style>body,.top-bar{margin-top:1.9em}</style></noscript><divid="notify-container"></div><divid="custom-header"></div><headerclass="top-bar js-top-bar top-bar__network _fixed"><divclass="-container"><divclass="-main"><ahref="#"class="left-sidebar-toggle p0 ai-center jc-center js-left-sidebar-toggle"><spanclass="ps-relative"></span></a><ahref="https://stackoverflow.com"class="-logo js-gps-track"data-gps-track="top_nav.click({is_current:false, location:2, destination:8})"><spanclass="-img _glyph"> Stack Overflow </span></a></div><formid=""action="/"method="get"class="bar js-bar "autocomplete="off"role=""><divclass="ps-relative"><inputname="q"type="text"placeholder="Search…"value=""autocomplete="off"maxlength="240"class="f-input js--field "/><buttontype="submit"aria-label="Search..."class="s-btn s-btn__primary btn-topbar-primary js--submit"><svgaria-hidden="true"class="svg-icon iconSearch"width="18"height="18"viewbox="0 0 18 18"><pathd="M12.86 11.32L18 16.5 16.5 18l-5.18-5.14v-.35a7 7 0 1 1 1.19-1.19h.35zM7 12A5 5 0 1 0 7 2a5 5 0 0 0 0 10z"/></svg></button></div></form><olclass="-secondary js-secondary-topbar-links drop-icons-responsively the-js-is-handling-responsiveness"><liclass="-item bar-trigger js-bar-trigger"><ahref="#"class="-link"><svgaria-hidden="true"class="svg-icon iconSearch"width="18"height="18"viewbox="0 0 18 18"><pathd="M12.86 11.32L18 16.5 16.5 18l-5.18-5.14v-.35a7 7 0 1 1 1.19-1.19h.35zM7 12A5 5 0 1 0 7 2a5 5 0 0 0 0 10z"/></svg></a></li><liclass="-item"><ahref="https://stackexchange.com/users/?tab=inbox"class="-link js-inbox-button"title="Recent inbox messages"><svgaria-hidden="true"class="svg-icon iconInbox"width="20"height="18"viewbox="0 0 20 18"><pathd="M15.19 1H4.63c-.85 0-1.6.54-1.85 1.35L0 10.79V15c0 1.1.9 2 2 2h16a2 2 0 0 0 2-2v-4.21l-2.87-8.44A2 2 0 0 0 15.19 1zm-.28 10l-2 2h-6l-2-2H1.96L4.4 3.68A1 1 0 0 1 5.35 3h9.12a1 1 0 0 1 .95.68L17.86 11h-2.95z"/></svg><spanclass="indicator-badge js-unread-count _important"style="display: none;"></span></a></li><liclass="-item"><ahref="https://stackexchange.com/users/?tab=reputation"class="-link js-achievements-button"title="Recent achievements: reputation, badges, and privileges earned"data-unread-class="_highlighted-positive"><svgaria-hidden="true"class="svg-icon iconAchievements"width="18"height="18"viewbox="0 0 18 18"><pathd="M15 2V1H3v1H0v4c0 1.6 1.4 3 3 3v1c.4 1.5 3 2.6 5 3v2H5s-1 1.5-1 2h10c0-.4-1-2-1-2h-3v-2c2-.4 4.6-1.5 5-3V9c1.6-.2 3-1.4 3-3V2h-3zM3 7c-.5 0-1-.5-1-1V4h1v3zm8.4 2.5L9 8 6.6 9.4l1-2.7L5 5h3l1-2.7L10 5h2.8l-2.3 1.8 1 2.7h-.1zM16 6c0 .5-.5 1-1 1V4h1v2z"/></svg><spanclass="indicator-badge js-unread-count _positive"style="display: none;"></span></a></li><liclass="-item help-button-item"data-remove-order="1"><ahref="#"class="-link js-help-button"title="Help Center and other resources"><svgaria-hidden="true"class="svg-icon iconHelp"width="18"height="18"viewbox="0 0 18 18"><pathd="M9 1a8 8 0 1 0 0 16A8 8 0 0 0 9 1zm.81 12.13c-.02.71-.55 1.15-1.24 1.13-.66-.02-1.17-.49-1.15-1.2.02-.72.56-1.18 1.22-1.16.7.03 1.2.51 1.17 1.23zM11.77 8a5.8 5.8 0 0 1-1.02.91l-.53.37c-.26.2-.42.43-.5.69a4 4 0 0 0-.09.75c0 .05-.03.16-.18.16H7.88c-.16 0-.18-.1-.18-.15.03-.66.12-1.21.4-1.66a5.29 5.29 0 0 1 1.43-1.22c.16-.12.28-.25.38-.39a1.34 1.34 0 0 0 .02-1.71c-.24-.31-.51-.46-1.03-.46-.51 0-.8.26-1.02.6-.21.33-.18.73-.18 1.1H5.75c0-1.38.35-2.25 1.1-2.76.52-.35 1.17-.5 1.93-.5 1 0 1.79.18 2.49.71.64.5.98 1.18.98 2.12 0 .57-.2 1.05-.48 1.44z"/></svg></a></li><liclass="-item site-switcher-item"><ahref="https://stackexchange.com"class="-link js-site-switcher-button js-gps-track"data-gps-track="site_switcher.show"title="A list of all 174 Stack Exchange sites"><svgaria-hidden="true"class="svg-icon iconStackExchange"width="18"height="18"viewbox="0 0 18 18"><pathd="M1 13c0 1.1.9 2 2 2h8v3l3-3h1a2 2 0 0 0 2-2v-2H1v2zM15 1H3a2 2 0 0 0-2 2v2h16V3a2 2 0 0 0-2-2zM1 6h16v4H1V6z"/></svg></a></li><liclass="-ctas"><ahref="https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f7926246%2fwhy-doesnt-htmlunitdriver-execute-javascript"class="login-link s-btn btn-topbar-clear py8" > Log In </a><ahref="https://stackoverflow.com/users/signup?ssrc=head&returnurl=%2fusers%2fstory%2fcurrent"class="login-link s-btn s-btn__primary py8 btn-topbar-primary"data-ga="["sign up","Sign Up Navigation","Header",null,null]"> Sign Up </a></li><liclass="-dialog-container js-topbar-dialog-corral"><divclass="topbar-dialog siteSwitcher-dialog dno"><divclass="header"><h3><ahref="https://stackoverflow.com"> current community </a></h3></div><divclass="modal-content current-site-container"><ulclass="current-site"><liclass="grid"><divclass="fl1"><ahref="https://stackoverflow.com"class="current-site-link site-link js-gps-track grid gs8 gsx"data-id="1"data-gps-track="site_switcher.click({ item_type:3 })"><divclass="favicon favicon-stackoverflow site-icon grid--cell"title="Stack Overflow"></div><spanclass="grid--cell fl1"> Stack Overflow </span></a></div><divclass="related-links"><ahref="https://stackoverflow.com/help"class="js-gps-track"data-gps-track="site_switcher.click({ item_type:14 })"> help </a><ahref="https://chat.stackoverflow.com"class="js-gps-track"data-gps-track="site_switcher.click({ item_type:6 })"> chat </a></div></li><liclass="related-site grid"><divclass="L-shaped-icon-container"><spanclass="L-shaped-icon"></span></div><ahref="https://meta.stackoverflow.com"class="site-link js-gps-track grid gs8 gsx"data-id="552"data-gps-track="site.switch({ target_site:552, item_type:3 }),site_switcher.click({ item_type:4 })"><divclass="favicon favicon-stackoverflowmeta site-icon grid--cell"title="Meta Stack Overflow"></div><spanclass="grid--cell fl1"> Meta Stack Overflow </span></a></li></ul></div><divclass="header"id="your-communities-header"><h3> your communities </h3></div><divclass="modal-content"id="your-communities-section"><divclass="call-to-login"><ahref="https://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=%2fusers%2fstory%2fcurrent"class="login-link js-gps-track"data-gps-track="site_switcher.click({ item_type:10 })"> Sign up </a> or <ahref="https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f7926246%2fwhy-doesnt-htmlunitdriver-execute-javascript"class="login-link js-gps-track"data-gps-track="site_switcher.click({ item_type:11 })"> log in </a> to customize your list. </div></div><divclass="header"><h3><ahref="https://stackexchange.com/sites"> more stack exchange communities </a></h3><ahref="https://stackoverflow.blog"class="fr"> company blog </a></div><divclass="modal-content"><divclass="child-content"></div></div></div><divclass="topbar-dialog help-dialog js-help-dialog dno"><divclass="modal-content"><ul><li><ahref="/tour"class="js-gps-track"data-gps-track="help_popup.click({ item_type:1 })"> . . . getLoadingState </span><spanclass="pun"> (); </span><spanclass="pln"></span><spanclass="pun"> } </span></code></pre><p> I want to get to ABC.do </p><p> If I execute my test with the FirefoxDriver it works. </p><p> Is there a way to get this working with HtmlUnitDriver? My test works if I manually call driver.get(" <ahref="http://host/ABC.do" > http://host/ABC.do </a> ") but that cannot be the right way to do this. </p></div><divclass="post-list grid gs4 gsy fd-column"><divclass="grid ps-relative d-block"><ahref="/questions/ged/java"class="post- js-gps-track"title="show questions ged 'java'" > java </a><ahref="/questions/ged/javascript"class="post- js-gps-track"title="show questions ged 'javascript'" > javascript </a><ahref="/questions/ged/ajax"class="post- js-gps-track"title="show questions ged 'ajax'" > ajax </a><ahref="/questions/ged/selenium"class="post- js-gps-track"title="show questions ged 'selenium'" > selenium </a><ahref="/questions/ged/htmlunit-driver"class="post- js-gps-track"title="show questions ged 'htmlunit-driver'" > htmlunit-driver </a></div></div><divclass="mb0 "><divclass="mt16 pt4 grid gs8 gsy fw-wrap jc-end ai-start"><divclass="grid--cell mr16"style="flex: 1 1 100px;"><divclass="post-menu"><ahref="/q/7926246"title="short permalink to this question"class="short-link"id="link-post-7926246"> share </a><spanclass="lsep"> | </span><ahref="/posts/7926246/edit"class="suggest-edit-post"title=""> improve this question </a></div></div><divclass="post-signature grid--cell"><divclass="user-info user-hover"><divclass="user-action-time"><ahref="/posts/7926246/revisions"title="show all edits to this post"> edited <spantitle="2016-03-31 13:31:33Z"class="relativetime"> Mar 31 '16 at 13:31 </span></a></div><divclass="user-gravatar32"><ahref="/users/759866/benjamin"><divclass="gravatar-wrapper-32"><imgsrc="https://www.gravatar.com/avatar/cc21bd143a63dbea51c2caa5f1e8599b?s=32&d=identicon&r=PG"alt=""width="32"height="32"/></div></a></div><divclass="user-details"><ahref="/users/759866/benjamin"> Benjamin </a><divclass="-flair"><spanclass="reputation-score"title="reputation score 15,789"dir="ltr"> 15.8k </span><spantitle="28 gold badges"><spanclass="badge1"></span><spanclass="badgecount"> 28 </span></span><spantitle="119 silver badges"><spanclass="badge2"></span><spanclass="badgecount"> 119 </span></span><spantitle="230 bronze badges"><spanclass="badge3"></span><spanclass="badgecount"> 230 </span></span></div></div></div></div><divclass="post-signature owner grid--cell"><divclass="user-info "><divclass="user-action-time"> . . . </script><noscript><div id="noscript-warning">Stack Overflow works best with JavaScript enabled <img src="https://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif" alt="" class="dno"></div></noscript><script>//<![CDATA[ (function(i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function() { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * newDate(); a = s.createElement(o), m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m); })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga'); StackExchange.ready(function () { StackExchange.ga.init({ sendTitles: true, tracker: window.ga, trackingCodes: [ 'UA-108242619-1' ] }); StackExchange.ga.setDimension('dimension2', '|java|javascript|ajax|selenium|htmlunit-driver|'); StackExchange.ga.setDimension('dimension3', 'Questions/Show'); StackExchange.ga.trackPageView(); }); /**/var _qevents = _qevents || [], _comscore = _comscore || []; (function() { var ssl = 'https:' == document.location.protocol, s = document.getElementsByTagName('script')[0], qc = document.createElement('script'); qc.async = true; qc.src = (ssl ? 'https://secure' : 'http://edge') + '.quantserve.com/quant.js'; s.parentNode.insertBefore(qc, s); _qevents.push({ qacct: "p-c1rF4kxgLUzNc" }); /**/var sc = document.createElement('script'); sc.async = true; sc.src = (ssl ? 'https://sb' : 'http://b') + '.scorecardre.com/beacon.js'; s.parentNode.insertBefore(sc, s); _comscore.push({ c1: "2", c2: "17440561" }); })(); //]]></script></body></html>
Post a Comment for "Htmlunitdriver Does Not Load Javascript When Navigating A Page From An Url"