steward icon indicating copy to clipboard operation
steward copied to clipboard

Use EventFiringWebDriver to log WebDriver interactions and log getText() output

Open OndraM opened this issue 8 years ago • 0 comments
trafficstars

Currently, we use custom inherited RemoteWebDriver implementation to log calls of execute().

However, php-webdriver provides EventFiringWebDriver, which allows registering custom listeners. This is much cleaner way how to accomplish the logging, it will also provides us the ability to register listener to events of EventFiringWebElement, so we can eg. log text returned from getText() calls.

So the aim is:

  • Use EventFiringWebDriver and custom listener to provide current logging done by custom RemoteWebDriver
  • Nice to have: Similarly add logging of output of text received using getText() calls (could be separated to different issue).

OndraM avatar May 10 '17 00:05 OndraM