Achieving blur in Capybara by Jason Swett, January 23, 2018 1 Reply To achieve blur in Capybara, just “click” on the body of the page: page.find("body").click
Tamlyn Rhodes June 8, 2020 at 3:27 pm 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. Reply ↓
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.