I'm new to Capybara and testing on Rails in general, so please forgive me if this is a simple answer.  I've got this test  it "should be able to edit an assignment" do     visit dashboard_path     select(@project.client + " - &#...
I have a set of tests which lead to a Facebook page where the user logs in. Unfortunately, this page has some JavaScript errors which I can't influence, so my tests would never finish.  Is there any way to temporarily disable the check for JS err...
I allow users to share photos with other individuals.  When the user is viewing a photo and its description, they can click on "share" and a new page loads.  On this page the fill in an email address (and optional comments - not tested here)...
I'd like to suppress the initialization of TinyMCE inside my tests and can do this easily if the Javascript can detect that I'm running inside a Selenium-automated page.  So, is there some JS code that I can use to detect the Selenium driver?...
I have jump links for blind and keyboard users in my webpage which are moved out of the viewport to hide them visually; when they gain focus, they are moved into the viewport.  I want to test this behaviour using RSpec and Capybara, but it somehow do...
I am using rspec to test some pages and would like to use the click method. However the DOM doesn't have the link or button. it's just a span and magically it becomes a link with javascript.  <span class="footerLink feedbackLink"&g...
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 am working on screenshot automation. In particular, I am trying to achieve the following:   Prompt the user for the links to different pages on the website X Prompt the user for the class name Y I should be able to visit a website X login page, pro...
I am using Capybara, Cucumber and Poltergeist. I am testing a JavaScript function that is attached to a form submit button, which is intended to catch the submit event and prevent it (doing an AJAX request in the background). With and without AJAX, t...
I have a text field that is dynamically created via javascript with the long id:   user_user_skills_attributes_69878013874980_skill_title   where the 69878013874980 is a generated timestamp.    How do I fill in the field with this id in a capybara te...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.