Behat / MinkExtension

Mink extension (tight integration and configuration) for Behat
MIT License
636 stars 276 forks source link

Expected to be on "XXX" but found "" instead - trying to add CrossBrowserTesting Factory #325

Closed bartonhammond closed 6 years ago

bartonhammond commented 6 years ago

I am trying to add support for CrossBrowserTesting. (CBT)

When running my project I get this error:

    When I go to the "Home" page # FeatureContext::iGoToThePage()
      │ 
      │ 
      Expected to be on "https://www.google.com/" but found "" instead (SensioLabs\Behat\PageObjectExtension\PageObject\Exception\UnexpectedPageException)

I can't tell that there is any request making it to CBT. I don't see the Chrome browser starting up on my local machine.

I forked MinkExtension and added the Factory Driver: CrossBrowserTestingFactory.php and updated the MinkExtension.php appropriately.

Once I get this running I'll do a PR. But I do need help.

I have a small example project that demonstrates my problem: [Mink Extension Project] (https://github.com/bartonhammond/MinkExtensionProject). It contains

Just do following steps:

The behat-cbt requires user and key from CBT free trial . Edit the 'behat-cbt.yml` with the credentials.

bartonhammond commented 6 years ago

I now know of a project where CBT and ME work.