Closed tkurnosova closed 9 years ago
Essence of the problem
Driver returns session id only for commands executed by Driver (e.g. NewSession, GetOrientation), not inner server (e.g.
FindElement
,IsElementEnabled
) due to the fact that InnerServer has no concept of a session in it and Driver simply proxies responses fromInnerServer
for such commands.
This problem appeared when trying to use custom WebDriver service in .NET. Selenium bindings for .NET does not seem to expect sessionId
in all responses.
Need to check bindings, it seems that sessionId is saved on NewSession and can be omitted in other commands if sessionId key is not present. But it would be better to support correct responses.
Fixed in #103
Драйвер возвращает ответ на любой запрос кроме создания сессии с null значением поля SessionId. Из-за чего биндинги не могут его распарсить. Ниже приведены списки команд и ответы от ChromeDriver
Т.о. нужно добавить значение SessionId в ответ на любой запрос к драйверу