Closed bartonhammond closed 6 years ago
What's in your When I go to the "Home" page
step?
If you're able to upload (perhaps a simplified) reproducer project somewhere, I'd be happy to take a look.
Hi @jakzal
I created a fork of MinkExtension: https://github.com/bartonhammond/MinkExtension
I created sample project: https://github.com/bartonhammond/MinkExtensionProject
You'll need a CrossBrowserTesting (CBT) account: https://crossbrowsertesting.com/freetrial
I put instructions in Readme
Once the CBT account is setup and behat-cbt.yml
is updated, you can reproduce error w/ composer behat-cbt
Thanks for your help!
I did some quick debugging and it turns out that this error is rather misleading as webdriver failed to initialise the session properly. I created #112 to capture it and see if this could be improved.
Your problem is in no way related to the page object extension. AbstractWebDriver::curl()
gets an empty response from CBT. Probably because of misconfiguration. It's not handled properly, and this could be improved in webdriver.
Furthermore, CBT's example project just works for me, so the problem might be in a way webdriver is initialised by your extension.
If you're working on integrating with CBT, I suggest you try to do it with the mink extension alone first. Once you made it work, move to integrating with page objects. I'd also consider creating your own extension once you make it working (as opposed to forking mink).
One difference I noticed is that CBT's example project uses RemoteWebDriver
, while Mink's Selenium2Driver works with WebDriver
.
@jakzal Thanks for looking into this.
I did work with the CBT example project - it works for me too and I noticed the Remote
usage.
I forked MinkExtension as it supports multiple Drivers - I just create a CBT driver - see https://github.com/bartonhammond/MinkExtension/tree/master/src/Behat/MinkExtension/ServiceContainer/Driver I think it's the right way to add an additional service such as CBT.
I'll look to the MinkExtension project for help now. Thanks again!
I'm using MinkExtension and running locally is fine. But when I try to run w/ CrossBrowserTesting I fail. I'm working on extending MinkExtension w/ a CBT Factory patterned after BrowserStack Factory.
Anyway, here is my
behat-cbt.yml
Heres the output:
I'm not seeing any activity w/in CBT. I'm kind of lost to how to debug this. My experience has been when I see a similar message to this that the browser was never started. I don't see any browser starting.