This example demonstrates the EventFiringWenDriver support. The MyListener.py does only log before and after the Selenium API call. But MyListener.py could make new Selenium API calls or anything else which is possible from the Python.
To run the example, give command:
robot event_firing_webdriver.robot
From the generated log.html, in the keywords logging, look at logging. The lines starting "Before " and "After " are from the EventFiringWenDriver.
See Robot Framework test suite and EventFiringWebDriver class for further details.