class Capybara::Selenium::MarionetteNode
def disabled?
def disabled? # Not sure exactly what version of FF fixed the below issue, but it is definitely fixed in 61+ return super unless browser_version < 61.0 return true if super # workaround for selenium-webdriver/geckodriver reporting elements as enabled when they are nested in disabling elements if %w[option optgroup].include? tag_name find_xpath('parent::*[self::optgroup or self::select]')[0].disabled? else !find_xpath('parent::fieldset[@disabled] | ancestor::*[not(self::legend) or preceding-sibling::legend][parent::fieldset[@disabled]]').empty? end end