Difference between webdriver and eventfiringwebdriver | Selenium Training|Java|WebDriver|TestNG|Frameworks|Videos
15% Colorful Festival Offer Avail now

Selenium Training Forum

difference between webdriver and eventfiringwebdriver

R
raj palavarapu Post on 09/03/2019

can I know the difference between webdriver and eventfiringwebdriver

D

Instructor

Demo Reply on 12/03/2019

EventFiringWebDriver is a wrapper around an arbitrary WebDriver instance which supports registering of a WebDriverEventListener, e.g. for logging purposes.

Reference:https://stackoverflow.com/questions/38092480/what-is-eventfiringwebdriver-in-selenium

https://seleniumhq.github.io/selenium/docs/api/java/index.html

 

R
raj palavarapu Reply on 12/03/2019

I am unable to understand the difference,can you say by giving  examples

D

Instructor

Demo Reply on 13/03/2019

EventFiringWebDriver is also a concrete implementation of the WebDriver, but what it does is, it doesn’t implement the WebDriver directly, but binds itself to an existing object of any of the webdrivers listed above, and then when used, it triggers events. So using EventFiringWebDriver you can listen to events such as before text is changed, after text is changed, before url is loaded etc., and choose to do something with the EventFiringWebDriver.