added ability to capture content for webdriver_listener