Use get_attribute.
The documentation is quite inaccurate.