-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Invalid capabilities in firstMatch element 0: a proxy type named MANUAL is specified, but proxy type must be 'pac', 'noproxy', 'autodetect', 'system', or 'manual' #4574
Comments
For issues please provide a concise reproducible test case and describe what results you are seeing and what results you expect. See CONTRIBUTING.md |
Expected Behavior - internet explorer browser should opened and can open by proxy Actual Behavior - Unable to open internet explorer Steps to reproduce - Lunch hub and node with selenium standalone server 3.5.1 My code:
Error: 在 OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) |
This is a bug in the IE driver. The spec language changed to indicate the passed-in value should be lowercased, and the driver does not adhere to that statement in the spec. |
@jimevans Are you sure it's the driver issue? Would you clarify my reading of the specification. The spec lists proxy types in lowercase. IEDriverServer expects them to be in lowercase. But all language bindings send uppercase strings. There was a patch that suggested to treat them as case-insensitive: w3c/webdriver#870 , but I can't see it in the current editors draft of the specification, so it must be reverted. |
From Section 7.1 (Proxy), in the algorithm to "deserialize a proxy," step 3, substep 3:
|
Editors draft have different wording: |
You're right, of course, @barancev. I'm not in front of my laptop at the moment, and doing this on my phone, so I had an older draft of the spec queued up. Either way, it needs to be fixed in a component I maintain, so it's work for me either way. |
@shs96c said the bindings should be changed to send proxy type in lowercase. |
Java binding sends wrong payload too: https://gist.github.com/barancev/7ab7bbe91a59ab7bcbfb2c399d0202ab |
Sorry, Java appears to be all right, the parts of payload required by W3C spec contain lowercased proxy type. |
Yeah. This is messy. We want to retain backwards compatibility, so " The spec, however, says anything in the w3c new session payload must be spec compliant, which means that " |
Any update on this issue? I'm getting the same error, and here is my code:
|
91be330 fixes this in Ruby bindings. |
Fixed for .NET in eead3f1 |
Fixed for python in e9d3ff1 |
Fixes issue SeleniumHQ#4574 for .NET.
nodejs bindings have always sent lowercase proxy type. Closing this issue since node was the last language tagged. |
Meta -
OS: WINDOWS10
Selenium Version: 3.5.1
Browser: Internet Explorer 11
Browser Version: 11.1593.14393.0 64bit
c#
error :
Invalid capabilities in firstMatch element 0: a proxy type named MANUAL is specified, but proxy type must be 'pac', 'noproxy', 'autodetect', 'system', or 'manual'
The text was updated successfully, but these errors were encountered: