{"record":{"id":"3fb2580cf02628f2","repo":"teamcapybara/capybara","slug":"modifier-keys-are-not-supported-while-dragging-in","errorCode":null,"errorMessage":"Modifier keys are not supported while dragging in this version of Chrome.","messagePattern":"Modifier keys are not supported while dragging in this version of Chrome\\.","errorType":"exception","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/capybara/selenium/nodes/chrome_node.rb","lineNumber":103,"sourceCode":"    end\n  end\n\nprotected\n\n  def catch_error?(error, errors = nil)\n    # Selenium::WebDriver::Error::UnknownError:\n    #    unknown error: unhandled inspector error: {\"code\":-32000,\"message\":\"Node with given id does not belong to the document\"}\n    super ||\n      (error.is_a?(Selenium::WebDriver::Error::UnknownError) &&\n       error.message.include?('Node with given id does not belong to the document'))\n  end\n\nprivate\n\n  def perform_legacy_drag(element, drop_modifiers)\n    return super if chromedriver_fixed_actions_key_state? || element.obscured?\n\n    raise ArgumentError, 'Modifier keys are not supported while dragging in this version of Chrome.' unless drop_modifiers.empty?\n\n    # W3C Chrome/chromedriver < 77 doesn't maintain mouse button state across actions API performs\n    # https://bugs.chromium.org/p/chromedriver/issues/detail?id=2981\n    browser_action.release.perform\n    browser_action.click_and_hold(native).move_to(element.native).release.perform\n  end\n\n  def browser_version(to_float: true)\n    caps = capabilities\n    ver = caps[:browser_version] || caps[:version]\n    ver = ver.to_f if to_float\n    ver\n  end\n\n  def chromedriver_fixed_actions_key_state?\n    Gem::Requirement.new('>= 76.0.3809.68').satisfied_by?(chromedriver_version)\n  end\n","sourceCodeStart":85,"sourceCodeEnd":121,"githubUrl":"https://github.com/teamcapybara/capybara/blob/15b5fdb76e972e9623d5af2123ed3755594f9732/lib/capybara/selenium/nodes/chrome_node.rb#L85-L121","documentation":"Error \"Modifier keys are not supported while dragging in this version of Chrome.\" thrown in teamcapybara/capybara.","triggerScenarios":"Thrown at lib/capybara/selenium/nodes/chrome_node.rb:103 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"}