Cucumber via Envjs says "a.ownerDocument is null"

By: Johnathon Wright on: March 10, 2011

I recently received the following errors when running capybara with envjs. Strangely, there was a kind of double stack trace. Here are the exeptions:

=== WARNIING: [Thu Mar 10 2011 09:54:41 GMT-0600 (CST)] {ENVJS} Exception while dispatching events: a.ownerDocument is null

a.ownerDocument is null (Johnson::Error)

=== WARNIING: [Thu Mar 10 2011 09:54:41 GMT-0600 (CST)] {ENVJS} Exception while dispatching events: a.ownerDocument is null oopse a.ownerDocument is null undefined

inline:129 [JavaScript]

===diff

--- a/features/support/env.rb +++ b/features/support/env.rb @@ -1,4 +1,4 @@ -ENV["RAILSENV"] ||= "cucumber" +ENV["RAILSENV"] ||= "test"

require File.expandpath(File.dirname(FILE_) + '/../../config/environment')

@@ -20,7 +20,6 @@ require 'capybara/session' Capybara.default_selector = :css

require 'capybara/envjs' -Capybara.javascript_driver = :envjs

Before do

User.test = Factory.create(:user)

and for reference:

=== diff config/environments/test.rb config/environments/cucumber.rb

< config.gem 'factory_girl' < config.gem 'rspec', :lib => false < config.gem 'rspec-rails', :lib => false

< config.gem 'capybara-envjs', :lib => 'capybara/envjs'

config.gem 'capybara-envjs', :lib => 'capybara/envjs' config.gem 'factory_girl' config.gem 'cucumber', :lib => false config.gem 'cucumber-rails', :lib => false, :version => '>=0.3.2' unless File.directory?(File.join(Rails.root, 'vendor/plugins/cucumber-rails'))

config.gem 'databasecleaner', :lib => false, :version => '>=0.5.0' unless File.directory?(File.join(Rails.root, 'vendor/plugins/databasecleaner'))

my complete features/support/env.rb file:

ENV["RAILS_ENV"] ||= "test"

require File.expandpath(File.dirname(FILE_) + '/../../config/environment')

puts "========================================" puts "RAILSENV is #{RAILSENV} " puts "========================================"

require File.expandpath(File.dirname(FILE_) + '/../../test/helpers/user.rb')

require 'cucumber/formatter/unicode' # Remove this line if you don't want Cucumber Unicode support require 'cucumber/rails/world' require 'cucumber/rails/active_record' require 'cucumber/web/tableish'

require 'capybara/rails' require 'capybara/cucumber' require 'capybara/session'

Capybara.default_selector = :css

require 'capybara/envjs'

Before do User.test = Factory.create(:user) Given 'I am logged in'

System.destroy_all System.load end

ActionController::Base.allowrescue = false Cucumber::Rails::World.usetransactional_fixtures = true

if defined?(ActiveRecord::Base) begin require 'databasecleaner' DatabaseCleaner.strategy = :truncation rescue LoadError => ignoreifdatabasecleanernotpresent end

end





Comments:

golden goose sneakers said: I wish to express some thanks to you just for rescuing me from this type of incident. After exploring through the the web and finding principles that were not productive, I thought my entire life was over. Existing devoid of the strategies to the problems you have solved through the report is a critical case, as well as those which may have in a wrong way damaged my career if I had not discovered your web blog. Your own knowledge and kindness in handling all areas was invaluable. I don't know what I would have done if I hadn't encountered such a subject like this. It's possible to at this time look forward to my future. Thanks a lot very much for the impressive and sensible guide. I will not think twice to endorse your site to anybody who desires guide about this problem. golden goose sneakers [url=http://www.goldengoosesneakers.us]golden goose sneakers[/url]

nike air max 270 said: I precisely had to appreciate you all over again. I do not know the things that I would have carried out in the absence of those aspects documented by you relating to this theme. Previously it was the fearsome dilemma in my circumstances, nevertheless seeing your specialised approach you managed it forced me to leap for fulfillment. Now i'm thankful for this help and thus hope you know what a powerful job you are always providing educating most people thru a site. Most likely you've never come across any of us. nike air max 270

supreme new york said: I wish to show my appreciation to this writer just for rescuing me from this type of dilemma. Right after browsing throughout the internet and obtaining ideas which are not pleasant, I believed my entire life was over. Being alive devoid of the solutions to the issues you have fixed by way of your report is a critical case, as well as ones which may have adversely damaged my career if I had not discovered the blog. Your personal understanding and kindness in controlling everything was invaluable. I'm not sure what I would've done if I had not come across such a stuff like this. I can now look ahead to my future. Thanks for your time very much for the skilled and result oriented help. I will not be reluctant to suggest your web site to any individual who needs and wants counselling about this topic. supreme new york

nike air max 2018 said: I would like to show my appreciation to you just for rescuing me from this incident. Right after scouting throughout the world-wide-web and seeing advice which were not beneficial, I figured my entire life was done. Existing minus the solutions to the issues you've resolved as a result of this guide is a serious case, as well as the ones that might have badly affected my entire career if I had not noticed your blog. Your personal training and kindness in maneuvering the whole lot was invaluable. I don't know what I would have done if I had not encountered such a solution like this. I can at this point look forward to my future. Thanks a lot very much for your specialized and results-oriented help. I will not be reluctant to recommend your web site to anybody who should get tips about this topic. nike air max 2018

off white nike said: A lot of thanks for all your hard work on this blog. My niece enjoys managing research and it's really simple to grasp why. A lot of people notice all concerning the lively mode you provide important things through the website and as well boost participation from the others on the idea and my child is undoubtedly discovering so much. Take pleasure in the remaining portion of the new year. You are performing a terrific job. off white nike

nike air max 97 said: I'm commenting to make you know of the exceptional discovery my princess obtained using your webblog. She figured out so many things, including what it is like to have a very effective giving heart to make other folks without difficulty thoroughly grasp a variety of multifaceted subject areas. You actually surpassed our desires. I appreciate you for imparting these effective, safe, explanatory and easy thoughts on that topic to Emily. nike air max 97

nike air force 1 said: Thank you a lot for providing individuals with an exceptionally breathtaking chance to read critical reviews from here. It is usually so terrific plus stuffed with a great time for me and my office mates to visit your web site on the least three times weekly to see the latest secrets you have got. And of course, I am also at all times fascinated with the powerful methods served by you. Some 2 facts in this article are certainly the finest we have all had. nike air force 1

nike air max said: I am only writing to make you be aware of what a outstanding experience my daughter had studying your webblog. She even learned lots of issues, not to mention how it is like to possess a very effective helping character to make the others completely master chosen impossible matters. You really surpassed readers' expected results. Thanks for providing the powerful, dependable, explanatory and also unique tips on that topic to Janet. nike air max

balenciaga sneakers said: I in addition to my pals happened to be looking through the excellent guidelines from your site then suddenly got an awful suspicion I never expressed respect to the web blog owner for those secrets. My people were definitely as a result excited to learn them and have in effect actually been taking advantage of these things. Thank you for really being considerably helpful and also for picking out this kind of ideal subject areas most people are really desperate to be informed on. My personal sincere regret for not saying thanks to earlier. balenciaga sneakers

off white shoes said: Can I just say what a reduction to search out someone who really is aware of what theyre speaking about on the internet. You undoubtedly know find out how to deliver an issue to light and make it important. Extra folks need to read this and understand this facet of the story. I cant imagine youre no more in style since you undoubtedly have the gift. off white shoes

lebron 15 said: Youre so cool! I dont suppose Ive read something like this before. So nice to search out any person with some authentic thoughts on this subject. realy thanks for starting this up. this website is something that's needed on the internet, somebody with a bit of originality. useful job for bringing something new to the internet! lebron 15

supreme outlet said: Youre so cool! I dont suppose Ive read anything like this before. So nice to find someone with some original ideas on this subject. realy thanks for starting this up. this web site is something that is needed on the web, someone with a little bit originality. useful job for bringing one thing new to the internet! supreme outlet

golden goose outlet said: This really answered my downside, thanks! golden goose outlet

supreme clothing said: Howdy! I just wish to give a huge thumbs up for the nice information you could have here on this post. I might be coming again to your blog for extra soon. supreme clothing

kyrie 6 said: Can I just say what a aid to seek out somebody who truly is aware of what theyre speaking about on the internet. You positively know methods to bring a difficulty to gentle and make it important. Extra people have to read this and perceive this aspect of the story. I cant imagine youre no more standard since you undoubtedly have the gift. kyrie 6

cheap jordans said: WONDERFUL Post.thanks for share..more wait .. ? cheap jordans

yeezy said: very nice put up, i certainly love this web site, carry on it yeezy

balenciaga shoes said: Aw, this was a really nice post. In idea I wish to put in writing like this additionally ?taking time and precise effort to make a very good article?however what can I say?I procrastinate alot and not at all seem to get one thing done. balenciaga shoes

curry 7 said: An attention-grabbing dialogue is worth comment. I think that you should write extra on this matter, it won't be a taboo subject however generally people are not enough to speak on such topics. To the next. Cheers curry 7

supreme hoodie said: Can I simply say what a relief to find somebody who actually knows what theyre speaking about on the internet. You definitely know how you can deliver a problem to mild and make it important. More people need to learn this and understand this facet of the story. I cant imagine youre not more widespread since you positively have the gift. supreme hoodie

balenciaga said: It is best to participate in a contest for among the best blogs on the web. I'll advocate this website! balenciaga

supreme clothing said: After examine just a few of the blog posts on your website now, and I really like your manner of blogging. I bookmarked it to my bookmark web site list and will be checking back soon. Pls take a look at my site as effectively and let me know what you think. supreme clothing

golden goose outlet said: You made some decent factors there. I regarded on the web for the problem and located most people will go along with along with your website. golden goose outlet

moncler outlet said: I happen to be writing to let you understand of the magnificent experience my friend's princess gained using your web page. She even learned some details, not to mention what it is like to possess an ideal teaching mood to have the rest effortlessly gain knowledge of a variety of problematic things. You really surpassed readers' expectations. Many thanks for coming up with those helpful, trustworthy, explanatory and unique tips about this topic to Evelyn. moncler outlet

yeezy boost 350 v2 said: I'm also commenting to let you understand of the nice experience my cousin's girl developed reading your web page. She figured out several things, not to mention how it is like to have an ideal giving nature to let others with ease know precisely chosen specialized matters. You actually exceeded my expectations. Thanks for giving these warm and friendly, dependable, educational and as well as fun tips on this topic to Emily. yeezy boost 350 v2

a bathing ape said: My wife and i felt absolutely cheerful Albert managed to do his researching via the ideas he gained through your site. It's not at all simplistic to simply possibly be giving freely key points which people today could have been trying to sell. And we also do understand we need you to thank for that. The entire illustrations you have made, the straightforward blog menu, the friendships you give support to instill - it's got mostly excellent, and it is assisting our son in addition to our family reckon that the matter is enjoyable, which is certainly extremely indispensable. Many thanks for the whole thing! a bathing ape

moncler jackets said: I wanted to post a quick comment in order to appreciate you for some of the fantastic hints you are placing here. My time consuming internet look up has at the end been compensated with incredibly good ideas to talk about with my colleagues. I 'd assert that we visitors actually are quite fortunate to live in a notable network with very many outstanding people with helpful strategies. I feel really grateful to have discovered your webpage and look forward to tons of more amazing minutes reading here. Thanks once again for all the details. moncler jackets

adidas yeezy said: Thanks a lot for giving everyone a very breathtaking chance to check tips from this blog. It is usually very ideal and as well , full of a great time for me and my office friends to search your web site at the very least 3 times a week to read the fresh guides you have. And definitely, I'm just at all times amazed concerning the excellent ideas you give. Selected 2 points in this posting are in fact the most efficient we have all ever had. adidas yeezy

curry 6 said: I and also my friends have been checking out the excellent strategies found on your site while unexpectedly I got a terrible feeling I had not expressed respect to the website owner for them. All of the women were definitely so passionate to read them and now have extremely been loving them. Many thanks for really being very accommodating and for considering these kinds of nice tips millions of individuals are really desirous to be aware of. Our honest regret for not saying thanks to earlier. curry 6

yeezy 350 said: I would like to voice my passion for your generosity supporting people who should have guidance on this important issue. Your personal dedication to passing the solution around appears to be especially powerful and have truly allowed individuals just like me to reach their pursuits. Your own interesting suggestions entails a whole lot to me and substantially more to my fellow workers. Warm regards; from everyone of us. yeezy 350

adidas yeezy boost 350 v2 said: I have to convey my gratitude for your kind-heartedness supporting folks that have the need for assistance with this idea. Your special dedication to getting the solution throughout came to be extremely effective and has usually empowered women just like me to realize their ambitions. Your personal important advice entails a whole lot to me and substantially more to my colleagues. Thanks a ton; from everyone of us. adidas yeezy boost 350 v2

jordan shoes said: I precisely desired to say thanks once more. I am not sure the things that I could possibly have created without these basics revealed by you about such subject matter. It has been the terrifying issue in my opinion, however , looking at this specialized form you treated the issue made me to jump over joy. Extremely grateful for the guidance as well as trust you know what an amazing job that you are accomplishing training the others through your web site. I know that you haven't met any of us. jordan shoes

golden goose outlet said: I'm also writing to let you know what a exceptional discovery my cousin's girl experienced checking your webblog. She noticed several things, including what it's like to possess an ideal giving heart to get many others just grasp a number of advanced matters. You undoubtedly surpassed my expectations. Thank you for offering the valuable, trustworthy, informative and as well as unique guidance on the topic to Evelyn. golden goose outlet

off white clothing said: I am also writing to make you be aware of of the magnificent experience my cousin's daughter experienced going through your site. She figured out some details, which include what it's like to have a wonderful giving nature to get the rest very easily learn chosen tortuous subject matter. You really did more than our expected results. Thank you for rendering the warm and helpful, trusted, edifying and as well as unique tips about the topic to Tanya. off white clothing

longchamp outlet said: I just wanted to write a simple message to be able to say thanks to you for these wonderful ideas you are sharing at this website. My time intensive internet investigation has finally been recognized with professional tips to talk about with my relatives. I would admit that we site visitors actually are truly endowed to live in a very good site with so many outstanding individuals with valuable ideas. I feel very happy to have seen the site and look forward to some more enjoyable moments reading here. Thanks once again for a lot of things. longchamp outlet

supreme clothing said: A lot of thanks for your own effort on this blog. Kim really likes going through investigation and it is simple to grasp why. Almost all notice all of the dynamic manner you deliver very helpful secrets by means of this web site and therefore boost contribution from some others about this subject matter then my daughter is in fact starting to learn a whole lot. Enjoy the rest of the year. You're the one carrying out a very good job. supreme clothing

bape hoodie said: I am also writing to let you understand of the wonderful encounter my cousin's child developed visiting your web page. She figured out a wide variety of details, including what it is like to have an amazing coaching mindset to let many others completely completely grasp specified grueling topics. You truly exceeded people's expected results. Thank you for coming up with those beneficial, healthy, informative and as well as fun tips about this topic to Janet. bape hoodie

jordan shoes said: I and also my buddies came going through the best helpful tips found on your web site while at once got an awful suspicion I had not thanked the website owner for those tips. All the women came absolutely thrilled to study them and have now surely been loving them. Appreciate your really being simply accommodating and also for utilizing some useful themes millions of individuals are really needing to know about. My honest regret for not expressing appreciation to sooner. jordan shoes

cheap jordans said: I would like to express my respect for your kindness giving support to those who should have help on the issue. Your very own commitment to passing the solution throughout turned out to be astonishingly interesting and have in every case empowered regular people just like me to get to their dreams. Your new valuable publication can mean so much a person like me and further more to my office colleagues. Regards; from everyone of us. cheap jordans

supreme new york said: I would like to express my respect for your kindness for women who really want assistance with this important question. Your real dedication to getting the solution all around has been incredibly informative and has without exception helped guys like me to get to their endeavors. This interesting help and advice means a whole lot to me and much more to my office workers. Regards; from each one of us. supreme new york

yeezy 700 said: Thanks a lot for giving everyone an extraordinarily superb opportunity to read from here. It really is very kind and as well , full of a good time for me personally and my office co-workers to search the blog at minimum thrice a week to read through the new guidance you have got. And of course, I am also always amazed for the effective principles you give. Selected 3 areas in this post are really the most impressive we've ever had. yeezy 700

supreme t shirt said: I wanted to write you this very small word just to give thanks over again about the pleasant advice you have shown on this page. It is quite shockingly open-handed of people like you to convey without restraint what a lot of people could have advertised as an e-book to help with making some cash for their own end, chiefly given that you might have done it in case you considered necessary. These principles additionally worked like the fantastic way to know that many people have the same dreams similar to my very own to know much more when considering this matter. I am certain there are thousands of more enjoyable times in the future for those who look over your blog. supreme t shirt

kawhi leonard shoes said: I must show my thanks to you for rescuing me from this particular instance. After surfing around through the the web and getting ideas that were not helpful, I assumed my life was gone. Being alive minus the approaches to the issues you have resolved by way of this short article is a critical case, and the ones which could have in a wrong way affected my entire career if I hadn't discovered the blog. Your own personal mastery and kindness in maneuvering a lot of stuff was tremendous. I'm not sure what I would have done if I had not encountered such a stuff like this. I'm able to at this point look ahead to my future. Thanks so much for your skilled and sensible guide. I won't think twice to endorse your web page to any individual who should receive guidance about this subject. kawhi leonard shoes

jordan shoes said: Thanks for all your hard work on this website. My aunt takes pleasure in carrying out investigations and it's really obvious why. I know all of the powerful method you make informative strategies by means of your web site and as well cause response from other ones on that content and our favorite girl has been understanding a lot of things. Have fun with the rest of the new year. You're the one conducting a remarkable job. jordan shoes

hermes belt said: I am just commenting to let you know of the incredible encounter my friend's child encountered studying your web site. She even learned a good number of issues, not to mention how it is like to have a very effective teaching mindset to let many people clearly know just exactly some problematic subject matter. You truly did more than people's expected results. Thank you for producing those insightful, dependable, informative and also easy thoughts on that topic to Emily. hermes belt

yeezy said: I wanted to draft you the very little note in order to give many thanks the moment again just for the breathtaking information you've shown in this case. This is quite open-handed with people like you to make freely what exactly many of us could possibly have supplied for an e book to help with making some cash for their own end, principally considering that you could possibly have done it if you desired. These concepts also worked to become good way to fully grasp that most people have the same desire just like my personal own to understand lots more concerning this problem. I am certain there are several more pleasant sessions up front for individuals who examine your site. yeezy

jordan 13 said: I precisely needed to say thanks once again. I'm not certain what I would have done in the absence of those suggestions documented by you over this area of interest. This has been a frightful concern in my circumstances, but viewing your expert approach you solved the issue forced me to weep for joy. I'm just grateful for the service and thus expect you comprehend what a great job you're putting in instructing some other people via a blog. Most probably you've never come across any of us. jordan 13

bape said: Thanks so much for giving everyone remarkably breathtaking chance to discover important secrets from this website. It really is very brilliant and also stuffed with fun for me personally and my office mates to search your blog really three times in 7 days to read through the newest things you will have. Of course, I'm so at all times satisfied with all the unique opinions you serve. Certain two ideas in this article are in fact the simplest I have had. bape
Back