Symfony2Extension icon indicating copy to clipboard operation
Symfony2Extension copied to clipboard

Use symfony/panther with Behat

Open robertfausk opened this issue 7 years ago • 5 comments

Is there a way to use symfony/panther with Behat? If no, what would be needed to add it?

robertfausk avatar Oct 23 '18 14:10 robertfausk

Behat does not care about the way steps are implemented, so there is nothing preventing to use panther inside your steps. However, I don't think there is a behat extension providing all the necessary glue code yet.

stof avatar Oct 23 '18 15:10 stof

So a solution would be to create and use a MinkPantherDriver similar to https://github.com/minkphp/MinkBrowserKitDriver (cause the API from symfony/panther is very similar to symfony/browser-kit)? Or do you see another approach?

robertfausk avatar Oct 24 '18 15:10 robertfausk

I'd like to see this support somewhere (maybe this extension). I've been meaning to work on it for a while.

ciaranmcnulty avatar Oct 24 '18 15:10 ciaranmcnulty

Possible mink driver https://github.com/Lctrs/mink-panther-driver

delyriand avatar Apr 04 '19 20:04 delyriand

There is a page in the docs which explains how to use ChromeDriver. This is not exactly symfony/panther, but you don't have the overhead of Selenium at least.

alexsegura avatar Jun 08 '19 14:06 alexsegura