Achieving Blur in Capybara

by Jason Swett,

Simulating blur in Capybara is actually really easy. Just “click” on the body of the page:



One thought on “Achieving Blur in Capybara

  1. Tamlyn Rhodes

    This frequently doesn’t work for me. I don’t know if it’s a React thing but it makes Capybara click on the most recently added DOM node.


Leave a Reply

Your email address will not be published. Required fields are marked *