Adding support for extension capabilites starting with "test:" in IE
This is basically to support the web-platform-tests WebDriver test suite.
Adding an extension capability with name starting with "test:" will allow
a user to create a session, but will have no effect on the session. It is
a no-op.
@@ -556,7 +556,8 @@ bool NewSessionCommandHandler::MatchCapabilities(const IECommandExecutor& execut
}
if (capability_name.find(":") != std::string::npos &&
- capability_name != IE_DRIVER_EXTENSIONS_CAPABILITY) {
+ (capability_name != IE_DRIVER_EXTENSIONS_CAPABILITY &&
+ capability_name.find("test:") == std::string::npos)) {
*error_message = capability_name + " is an unknown extension capability for IE";
return false;
}
