Python Selenium – Simple manipulation with disabled elements and .is_enabled()

This one I researched when I had a page to test that had Previous/Next pagination buttons disabled if less than a certain number of rows were shown.

It went something like this:

if self.driver.find_element_by_id(TheMostAwesomeReport.nextButton).is_enabled():
    #Test pagination scenario
else:
    #pass or continue, or some other check here

This was for an input element that did have the disabled attribute:

disabled="disabled"

Definitely helpful.