Selenium Check Element Has Class (Python)

June 13, 2019
if 'active' in el.get_attribute('class').split():
    print('element is active')
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.