Code Monkey home page Code Monkey logo

Comments (2)

NickAb avatar NickAb commented on May 25, 2024

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 from InnerServer 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.

  1. We can pass sessionId to InnerServer and make it return it in responses
  2. We can parse response from InnerServer on the Driver and add sessionId here, without modifying InnerServer
  3. Rework InnerServer to use simply JSON PRC so that InnerServer does not have any logic on how to handle responses for Selenium clients, so that this logic is contained in Driver only.

from winium.mobile.

NickAb avatar NickAb commented on May 25, 2024

Fixed in #103

from winium.mobile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.