Skip to content
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

better error reporting needed #267

Closed
individual-it opened this issue May 19, 2017 · 4 comments
Closed

better error reporting needed #267

individual-it opened this issue May 19, 2017 · 4 comments

Comments

@individual-it
Copy link

I'm running tests with Mink on Saucelabs (Sauce Connect 4.4.6)
After updating mink-selenium2-driver from 1.3.1 to devmaster tests with firefox started to fail with
Expected to be on "http://localhost/owncloud-core/index.php/login" but found "" instead (SensioLabs\Behat\PageObjectExtension\PageObject\Exception\UnexpectedPageException)

It took me a while and some network sniffing to find out that the Error Message send from Sauce Connect actually is:
The requested combination of browser, version and OS is unsupported by the requested Selenium version and would lead to a test failure. Please set a different Selenium version, or set none to get the default, working Selenium version for this platform: firefox 47.0. on Windows 2008 with Selenium 2.31.0

I had to set the selenium version. No idea why it did work automatically before. But a better error reporting on the console or log file would be good

@aik099
Copy link
Member

aik099 commented May 19, 2017

Probably the test failure (the UnexpectedPageException) has previous exception set to the error you wanted to see. What was wrong here is part that showed the error back to user (not sure if it's a driver-specific code or mink shared code) wasn't showing nested/previous exceptions.

@stof
Copy link
Member

stof commented May 19, 2017

this UnexpectedPageException is not coming from Mink, but from SensioLabs\Behat\PageObjectExtension, which is something we don't control. You should report things there to make them display more details if they have them

@individual-it
Copy link
Author

Opened an issues in the GitHub repo of SensioLabs\Behat\PageObjectExtension. Closing this?

@aik099
Copy link
Member

aik099 commented Mar 15, 2024

Yes, closing.

@aik099 aik099 closed this as completed Mar 15, 2024
@aik099 aik099 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants