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'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...
I have written a small JavaScript which can be applied to textareas and which makes it possible to maximise them using Esc key (or clicking on a label on the upper right of the textarea).  I'm no big JavaScript guru, and if anyone's intereste...
I'm trying to write a test for my delete link.  My delete link triggers an alert confirmation first (same way delete link does when created with scaffold) so it relies upon JavaScript.  Below is my code to try and run this test using JavaScript....
When running tests in a Rails (5) app, let's say controller rspecs for example,  you need to have all external frontend dependencies available - anything that's included from application.js or application.css is needed to run these tests, oth...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.