You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.
I've encountered a problem that rises when Behatch is used with drivers other than Goutte.
Namely, when in e.g. RestContext there's a call:
$this->getSession()->getDriver()->getClient()
the problem here is that getDriver() returns an instance of a DriverInterface. But DriverInterface does not specify getClient() method. Actually, getClient() method is defined in BrowserKitDriver. Thus, Behatch doesn't mind working with Selenium2, Zombie etc., but it actually can't properly work with them, as they only extend CoreDriver, while it works ok with Goutte (which is instance of BrowserKit).
I guess you should either define that you expect $this->getSession()->getDriver() returns instance of BrowserKit, or add support for true DriverInterface.
The text was updated successfully, but these errors were encountered:
I've encountered a problem that rises when Behatch is used with drivers other than Goutte.
Namely, when in e.g. RestContext there's a call:
$this->getSession()->getDriver()->getClient()
the problem here is that getDriver() returns an instance of a DriverInterface. But DriverInterface does not specify getClient() method. Actually, getClient() method is defined in BrowserKitDriver. Thus, Behatch doesn't mind working with Selenium2, Zombie etc., but it actually can't properly work with them, as they only extend CoreDriver, while it works ok with Goutte (which is instance of BrowserKit).
I guess you should either define that you expect $this->getSession()->getDriver() returns instance of BrowserKit, or add support for true DriverInterface.
The text was updated successfully, but these errors were encountered: