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'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...
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'm working on an application that uses uservoice.  The uservoice snippet    var uv = document.createElement('script');   uv.type = 'text/javascript';   uv.async = true;   uv.src = ...; // external call to uservoice to fetch js...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.