{"record":{"id":"19f9485f2d942b1b","repo":"teamcapybara/capybara","slug":"expected-actual-title-inspect-not-to-verb","errorCode":null,"errorMessage":"expected #{@actual_title.inspect} not to #{verb} #{@expected_title.inspect}","messagePattern":"expected #(.+?) not to #(.+?) #(.+?)","errorType":"exception","errorClass":"Capybara::ExpectationNotMet","httpStatus":null,"severity":"error","filePath":"lib/capybara/node/document_matchers.rb","lineNumber":34,"sourceCode":"      # @raise [Capybara::ExpectationNotMet] if the assertion hasn't succeeded during wait time\n      # @return [true]\n      #\n      def assert_title(title, **options)\n        _verify_title(title, options) do |query|\n          raise Capybara::ExpectationNotMet, query.failure_message unless query.resolves_for?(self)\n        end\n      end\n\n      ##\n      # Asserts that the page doesn't have the given title.\n      #\n      # @macro title_query_params\n      # @raise [Capybara::ExpectationNotMet] if the assertion hasn't succeeded during wait time\n      # @return [true]\n      #\n      def assert_no_title(title, **options)\n        _verify_title(title, options) do |query|\n          raise Capybara::ExpectationNotMet, query.negative_failure_message if query.resolves_for?(self)\n        end\n      end\n\n      ##\n      # Checks if the page has the given title.\n      #\n      # @macro title_query_params\n      # @return [Boolean]\n      #\n      def has_title?(title, **options)\n        make_predicate(options) { assert_title(title, **options) }\n      end\n\n      ##\n      # Checks if the page doesn't have the given title.\n      #\n      # @macro title_query_params\n      # @return [Boolean]","sourceCodeStart":16,"sourceCodeEnd":52,"githubUrl":"https://github.com/teamcapybara/capybara/blob/15b5fdb76e972e9623d5af2123ed3755594f9732/lib/capybara/node/document_matchers.rb#L16-L52","documentation":"Error \"expected #{@actual_title.inspect} not to #{verb} #{@expected_title.inspect}\" thrown in teamcapybara/capybara.","triggerScenarios":"Thrown at lib/capybara/node/document_matchers.rb:34 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"15b5fdb76e972e9623d5af2123ed3755594f9732","analyzedAt":"2026-08-21T16:53:45.588Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}