-
Notifications
You must be signed in to change notification settings - Fork 62
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
Support for EventListener #54
Comments
Theoretically, this is possible. In lieu of aspects for cross cutting concerns, I'm not opposed to this. |
What I want this for is to be able to set expectations for alert/prompt/confirm dialog before they happen. Ideally knowing if executed WebDriver command resulted in alert/prompt/confirm dialog opening without extra API call would be great as well. |
This is now PSR-14. Interfaces require PHP 7.2+ |
Brainstorming:
As for the event object, at minimum:
Stumbling blocks:
So, I think we should be identifying the webdriver command before calling AbstractWebDriver::curl(). This is complicated by the commands that we declare via |
In Ruby's client for WebDriver protocol there is a way to place event listeners on various events on WebDriver side (see https://code.google.com/p/selenium/source/browse/rb/lib/selenium/webdriver/support/abstract_event_listener.rb, http://elementalselenium.com/tips/55-wrapper).
Is it possible to do the same in PHP WebDriver version?
The text was updated successfully, but these errors were encountered: