sajad torkamani

Error

Unable to find xpath "/html" (Capybara::ElementNotFound)

Possible fix:

If using turbo-rails, make sure that the action your form is submitting to is returning a response. For example, this error can be caused when you have an empty action like this:

class ArticlesController < ApplicationController
  def update
  end
end

and your form makes a PUT or PATCH request to /articles.

Leave a comment

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