-
Notifications
You must be signed in to change notification settings - Fork 48
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 #90
Comments
@individual-it is this message actually returned in a page body? |
no, I only found the message looking into the network transfer and if I remember correctly it was in a HTTP return message. If you need I can try to reproduce it and send you a full network log |
Would be great, thanks! Currently I'm not sure if we can do anything about it, especially if the error is only shown in sauselabs logs (like locally some errors are shown by selenium only in its console). We might not be able to retrieve the actual message. |
Without setting the selenium version is does not work. very first HTTP request
next request, actually trying to load the page:
as you can see there is a 404 reply from saucelabs. here is the full trace:
a request with selenium version set it does work
|
This is useful. What's the status code of the first To me it looks like starting the session fails but, mink doesn't raise an exception and carries on. |
its yes some part of the code gets the 404 but does not react on it. Do you think its a Mink problem? |
Perhaps it's a problem with https://github.com/instaclick/php-webdriver |
what to do? report there? |
imo the best thing to do would be to reproduce the issue with webdriver alone, and then report it to them or possibly fix it :) I only had a brief look, but looks like the session id is empty after calling session() on the webdriver, and I don't think such a situation should be allowed. I might be wrong though. |
@individual-it What tool did you use for network sniffing? |
@bartonhammond it must have been wireshark, because that's what I'm always using |
@individual-it I installed wireshark and tried it. I don't see any HTTP requests. I capture events only when running the command line "vendor/bin/behat". As soon as the test fails, which is quick, I stop the capture. I guess I don't know what to look for. I'm suspecting that I'm not even making the request. |
@bartonhammond the actuall request is not made via behat, but the webdriver if this helps |
I've checked and the throw WebDriverException::factory(
WebDriverException::CURL_EXEC,
'Webdriver http error: ' . $httpCode . ', payload :' . substr($rawResult, 0, 1000)
); @individual-it , now you should be getting a proper error, when Sauce Labs wasn't able to start the session due to the impossible os/browser combination given. |
@aik099 if you wait long enough, the problem solves itself... 😂 |
I'm running tests with Mink on Saucelabs (Sauce Connect 4.4.6)
At some point 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.
I did report this problem in MinkSelenium2Driver but was told the problem is in the PageObjectExtension, so I open this issue here
The text was updated successfully, but these errors were encountered: