When you have two inputs, where one contains the name of the other (eg. Name and Name with special treatment...
Capybara provides execute_script and evaluate_script to execute JavaScript code in a Selenium-controlled browser. This however is not...
When using Chrome for Selenium tests, the chromedriver binary will be used to control Chrome. To debug problems that stem...
Element finding is a central feature of Capybara. Since #find is normally used to get elements from the current page...
When you update your ChromeDriver to version 75 or beyond, you might get w3c errors in your tests.
Until Capybara 2, node finders that accept a text option were able to find nodes based on rendered text, even...
Download buttons can be difficult to test, especially with Selenium. Depending on browser, user settings and response headers, one of...
Suggested Workflow Set the ruby version in .ruby-version to 2.3.5, then perform these steps one by one, fixing errors...
When your code does not behave as expected, you can use a debugger statement ("breakpoint") at any point in your...
Accessing pseudo elements via JavaScript or jQuery is often painful/impossible. However, accessing their styles is fairly simple. Using getComputedStyle
When you are using lambdas in RSpec to assert certain changes of a call, you know this syntax: expect { playlist.destroy...
A JavaScript error in an E2E test with Selenium will not cause your test to fail. This may cause you...
RSpec let's you chain a matcher with .or. The expectation will then pass if at least one matcher matches...
This cucumber step is useful for testing an image (looking at the src of the image). Then(/^I should see...
If you already selected an element and want to get its parent, you can call find(:xpath, '..') on it.
An end-to-end test (E2E test) is a script that remote-controls a web browser with tools like Selenium...
Capybara clears cookies before each scenario, but not other client-side data stores. If your app is using localStorage or...
Webpack is the future. We're using it in our latest Rails applications. For tests, we want to compile assets...
Middleman is a static page generator that brings many of the goodies that Rails developers are used to.
When filling out forms in Selenium tests, Chrome shows the (usual) bubble, asking to store those credentials. While the bubble...
There seems to be a nasty bug in Chrome 56 when testing with Selenium and Capybara: Slashes are not written...
If the application under test makes sound, you probably want to disable this during integration testing. You can use the...
TL;DR Debugging problems with javascript errors in cucumber tests is sometimes easier in the browser. Run the test, stop...
There is no CSS selector for matching elements that contains a given string ¹. Luckily, Capybara offers the :text option to...