I would like to use Selenium (with Firefox) to load a page and find those elements that have a particular event (dragleave) attached to them. I thought this would be easy but for some reason I don't find anything useful with Google.
I can easily loop through all relevant elements:
foo = driver.find_elements_by_css_selector("div")
I have tried get_attribute("dragleave") on members of foo in a for loop but it doesn't find anything. Any ideas?