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'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 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...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.