{"record":{"id":"a449bbc16ed93aad","repo":"teamcapybara/capybara","slug":"the-style-changes-in-make-visible-did-not-make-th","errorCode":null,"errorMessage":"The style changes in :make_visible did not make the file input visible","messagePattern":"The style changes in :make_visible did not make the file input visible","errorType":"exception","errorClass":"Capybara::ExpectationNotMet","httpStatus":null,"severity":"error","filePath":"lib/capybara/node/actions.rb","lineNumber":343,"sourceCode":"        datalist_options = input.evaluate_script(DATALIST_OPTIONS_SCRIPT)\n        option = datalist_options.find { |opt| opt.values_at('value', 'label').include?(value) }\n        raise ::Capybara::ElementNotFound, %(Unable to find datalist option \"#{value}\") unless option\n\n        input.set(option['value'])\n      rescue ::Capybara::NotSupportedByDriverError\n        # Implement for drivers that don't support JS\n        datalist = find(:xpath, XPath.descendant(:datalist)[XPath.attr(:id) == input[:list]], visible: false)\n        option = datalist.find(:datalist_option, value, disabled: false)\n        input.set(option.value)\n      end\n\n      def while_visible(element, visible_css)\n        if visible_css == true\n          visible_css = { opacity: 1, display: 'block', visibility: 'visible', width: 'auto', height: 'auto' }\n        end\n        _update_style(element, visible_css)\n        unless element.visible?\n          raise ExpectationNotMet, 'The style changes in :make_visible did not make the file input visible'\n        end\n\n        begin\n          yield element\n        ensure\n          _reset_style(element)\n        end\n      end\n\n      def _update_style(element, style)\n        element.execute_script(UPDATE_STYLE_SCRIPT, style)\n      rescue Capybara::NotSupportedByDriverError\n        warn 'The :make_visible option is not supported by the current driver - ignoring'\n      end\n\n      def _reset_style(element)\n        element.execute_script(RESET_STYLE_SCRIPT)\n      rescue StandardError # rubocop:disable Lint/SuppressedException -- swallow extra errors","sourceCodeStart":325,"sourceCodeEnd":361,"githubUrl":"https://github.com/teamcapybara/capybara/blob/15b5fdb76e972e9623d5af2123ed3755594f9732/lib/capybara/node/actions.rb#L325-L361","documentation":"Error \"The style changes in :make_visible did not make the file input visible\" thrown in teamcapybara/capybara.","triggerScenarios":"Thrown at lib/capybara/node/actions.rb:343 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"}