Giter Club home page Giter Club logo

Comments (6)

whimboo avatar whimboo commented on June 12, 2024 1

Thanks for the suggestion. An API like that we considered useful and already implemented it for WebDriver BiDi. It's called session.end. Given that our focus is on the BiDi protocol which will completely replace WebDriver classic eventually, I don't think that we will get such an API added for it.

from webdriver.

whimboo avatar whimboo commented on June 12, 2024 1

Note that there is a number of APIs that we are going to implement for BiDi only. And this is most likely one of these.

from webdriver.

ioquatix avatar ioquatix commented on June 12, 2024

I don't think we should let "eventually completely replace" get in the way of useful functionality today. That being said, I'm probably not going to be the one implementing it.

from webdriver.

ioquatix avatar ioquatix commented on June 12, 2024

Does session.end actually implement a session reset? I feel like session.end means the session may not be used again. But what I'm asking for is a state reset of the given session, so we don't need to create the session for subsequent tests.

from webdriver.

ioquatix avatar ioquatix commented on June 12, 2024

Sorry, but perhaps you can help with further clarification:

6.1.3.2. The session.new Command
The session.new command allows creating a new BiDi session.
NOTE: A session created this way will not be accessible via HTTP.

Regarding the NOTE, does that also apply that sessions created via HTTP are not accessible via the BiDi interface?

from webdriver.

whimboo avatar whimboo commented on June 12, 2024

Note that creating a new session with WebDriver BiDi is cheap. Note that it will not restart the browser as for WebDriver HTTP. So I don't see an issue here.

Regarding your last question, it is always possible to access a session as created via WebDriver HTTP from BiDi. But it's not possible the other way around.

from webdriver.

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.