I'm using Capybara, the selenium-webdriver gem, and chromedriver in order to drive my javascript enabled tests.  The problem is that about 50% of our builds fail due to a Net::ReadTimeout error. At first this was manifesting as a 'could not f...
I'm very new to Capybara and have also never used Selenium before. I'm doing a ruby on rails project on MacOSX and for whatever reason, a browser window never opens when I run my test.  My stack is: Capybara, Selenium, Rspec, Ruby on Rails. M...
I implemented following behavior for a input field: If the user clicks on the field it will set the whole input-value as selection;  $('.my_div input').on('click', function(event){     this.setSelectionRange(0, this.value.length);   }...
Several variations of this question have been asked, and I've definitely learned from reading up on the topic, but most of the answers didn't seem to be directly applicable to this situation, or involved solutions using Rspec or Cucumber.  I&...
With RSpec and Capybara, I used to write the following code to test for features in pages that had some javascript going on:  feature "Some Feature" do     scenario "testing some scenario", js: true do         # code     end end   Now...
Following error occur when I am clicking on one item to open on web.Can anyone of us know solution?     Error:   test_inline_edit_an_item_app_built_via_app_builder(TaskFeature):   Capybara::Poltergeist::JavascriptError: One or more errors were raised...
I have a test that checks if, after the user chooses an option from the autocomplete suggestions, the path has changed. I'm testing with Capybara on Poltergeist. However, presumably because I'm triggering the page change trough JS, I have to...
Is possible to capture a screenshot of a specific element or portion of the rendered page using capybara-webkit?  This can be easily accomplished with Capybara + Poltergeist (phantomjs driver), since it offer a non standard save_screenshot(path, sele...
I am running tests that starts by logging in a user using the login form. It successfully opens Firefox, navigates to the login form and fills in the fields, but when it clicks the 'Login' button, it hangs indefinitely. When I quit Firefox I...
I'm trying to test a photo upload paperclip using Capybara. However I'm getting an error about file field when running cucumber test.  Unable to find file field :upload (Capybara::ElementNotFound)   Javascript  $("#uploadhere").click(...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.