Home > Cannot Find > Typeerror Cannot Find Function Addeventlistener In Object Object Htmldocument

Typeerror Cannot Find Function Addeventlistener In Object Object Htmldocument

Contents

It was my fault. Replacing it with FirefoxDriver or ChromeDriver isn't going to help in this case. –Kappei Oct 14 '13 at 14:50 add a comment| Your Answer draft saved draft discarded Sign up Play Framework member wsargent commented Mar 31, 2016 @rowanl can you provide a sample github test project so we can reproduce this? Sign up for free to join this conversation No, thanks Skip to content Ignore Learn more Please note that GitHub no longer supports old versions of Firefox. http://bovbjerg.net/cannot-find/typeerror-cannot-find-function-addeventlistener-in-object.php

You signed out in another tab or window. Hot Network Questions Polyglot Anagrams Cops' Thread When does TNG take place in relation to DS9? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed OBDII across the world? https://sourceforge.net/p/htmlunit/bugs/1615/

Selenium "cannot Find Function Addeventlistener"

Is there an actual army in 1984? Why does top 50% need a -50% translate offset? Not the answer you're looking for? Is that is the case that HtmlUnit works for particular browser?

  1. Now HtmlUnit is able to get the content of the page.
  2. Teenage daughter refusing to go to school Possible repercussions from assault between coworkers outside the office Start a coup online without the government intervening How does Gandalf end up on the
  3. Or if you like I will open another.

final WebClient webClient = new WebClient(); final HtmlPage page = webClient.getPage("http://www.latimes.com/topic/politics/government/barack-obama-PEPLT007408-topic.html"); final String pageAsText = page.asText(); System.out.println(pageAsText); It is giving me error: Exception in thread "main" ======= EXCEPTION START ======== EcmaError: Straight line equation MathSciNet review alert? If you agree to our use of cookies, please close this message and continue to use this site. Already have an account?

more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Htmlunitdriver Browserversion Find the "unwrapped size" of a list What is the point of update independent rendering in a game loop? Reload to refresh your session. https://github.com/playframework/playframework/issues/2607 Was it legal to rant against trick or treating via loudspeaker during halloween?

Any insight into how we can get Selenium / Fluentlenium work with the 2.0.2 version of jQuery would be greatly appreciated :) thanks! I try to get the simple standard example to work. To post to this group, send email to [email protected] This is as spec'ed, because jquery 2 is not meant to work with older IEs.

Htmlunitdriver Browserversion

If you agree to our use of cookies, please close this message and continue to use this site. In addition to the above code, I also overlooked this block of code in my class: @Before public void setUp() { webClient = new WebClient(); webClient.getOptions().setJavaScriptEnabled(true); java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit").setLevel(Level.OFF); } Obviously, this causes Selenium "cannot Find Function Addeventlistener" mkurz referenced this issue Mar 2, 2016 Merged Explicitly depend on htmlunit 2.20 to support jQuery 2.20 #5786 marcospereira closed this in #5786 Mar 3, 2016 Sign up for free Htmlunit Jquery Take a tour to get the most out of Samebug. Tired of useless tips?

What is the common, normally open, normally closed? navigate here In fact this is something that HtmlUnit shouldn't log as it is intentionally from jquery (within a try/catch) block. jroper added the defect label Apr 7, 2014 benmccann commented Jul 31, 2014 @jroper should we close this issue given the fix you posted? I then updated the main.scala.html file to use jquery-2.0.2.min.js instead of the bundled jquery-1.9.0.min.js.

final WebClient webClient = new WebClient(); final HtmlPage page = webClient.getPage("http://www.latimes.com/topic/politics/government/barack-obama-PEPLT007408-topic.html"); final String pageAsText = page.asText(); System.out.println(pageAsText); It is giving me error: Exception in thread "main" ======= EXCEPTION START ======== EcmaError: Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot find function addEventListener in object [object HTMLDocument]. (script in http://www.latimes.com/topic/politics-government/government/barack-obama-PEPLT007408-topic.html from (34, 9) to (44, 2)#42) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3935) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3919) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3944) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3960) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:4027) jBrowserDriver may be a good alternative (it uses WebKit). Check This Out Please click the link in the confirmation email to activate your subscription.

For my case, I'm using JSF but neither Chrome nor Firefox works for me. With the code I wrote I get this exception: org.openqa.selenium.WebDriverException: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function attachEvent in object [object HTMLDocument]. (http://localhost:8080/js/jquery.js#865) Build info: version: '2.32.0', revision: '6c40c187d01409a5dc3b7f8251859150c8af0bcb', time: '2013-04-09 10:39:28' System What episode of Star Trek is this creature on?

up vote 0 down vote This bug is discussed here: https://github.com/playframework/playframework/issues/2607 It is marked closed for current versions of both Play and HtmlUnit, but so far I haven't been able to

If you would like to refer to this comment somewhere else in this project, copy and paste the following link: RBRi - 2015-11-07 status: pending --> closed If you would share|improve this answer answered Feb 27 '15 at 5:28 spicemix 11 1 While this link may answer the question, it is better to include the essential parts of the answer Your sampel code works fine for me. Skip to content Ignore Learn more Please note that GitHub no longer supports old versions of Firefox.

See playframework/playframework#2607. 5e54b2f This was referenced May 29, 2015 Merged ユニットテストの修正とテスト用スクリプト、起動停止スクリプトの追加 windymelt/p2p2ch#7 Closed Test fails after upgrading to latest jQuery #5050 nafg commented Nov 15, 2015 FWIW I'm still Hope this help. Previous examples of large scale protests after Presidential elections in US? this contact form Play Framework member mkurz commented Mar 2, 2016 It looks like this has been fixed in htmlunit version 2.20 which supports jQuery 2.20 now.

What do I do? javascript jquery selenium playframework playframework-2.2 share|improve this question edited Dec 23 '15 at 8:30 Peanut 2,15821529 asked Feb 21 '14 at 21:46 ossys 2,71431925 Same problem.