Capybara Version: 3.3.0
Driver Information (and browser if relevant): selenium-webdriver 3.10.0 and Chrome Headless 67.0.3396.87
find('fieldset')[:disabled]
# => true
find('fieldset').disabled?
# => true
find('fieldset')[:disabled]
# => true
find('fieldset').disabled?
# => false
https://github.com/teamcapybara/capybara/issues/1925#issuecomment-336933569
https://www.w3.org/TR/html51/disabled-elements.html#disabled-elements
This is because the WebDriver spec only defines disabled for form controls, but when reading the HTML spec it doesn't make any sense not to define it for fieldset elements as well. Please try the disable_fieldset branch and let me know if it fixes your issue.
Solves the issue perfectly. Thanks mate! And thank you for the quick fix! :)
Could you make a patch release for this? This would be really awesome.
Will probably go out in a 3.3.1 release later today, waiting for tests to complete on this and another issue.
Released
Most helpful comment
Released