Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
OndraM opened this issue May 10, 2017 · 0 comments

Comments

@OndraM
Copy link
Member

OndraM commented May 10, 2017

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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant