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 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...
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);   }...
I have some Angular/Rails app where Rails part is just JSON API, all front works is doing by AngularJS. I've made model/controller test already using RSpec, and now I want to make some integration tests. Earlier I use request test (with Capybara,...
I'm trying to test some JS functionality with rspec and capybara-webkit.   I need to sign in with google on the client side.  <script src="https://apis.google.com/js/client.js"></script>  function auth() {        var config =...
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...
I have an input form for a Sales_Opportunity, and I use Javascript to add an option to the bottom of a select dropdown to "Add new company" (Sales_Opportunity belongs_to a Company, and a User can either select an existing company or add a new...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.