Git Product home page Git Product logo

Comments (6)

tehhowch avatar tehhowch commented on July 22, 2024 3

Any plans to support capturing web sockets in the future?

No current plans.

If not, what is the reason?

Time. You are welcome to contribute the functionality and its test cases if you desire to see it in wdio-intercept-service. What free time I have to contribute to this project goes to PR reviews, fixing implementation bugs, and fixing/improving its test suite.

from wdio-intercept-service.

rahul-xenon avatar rahul-xenon commented on July 22, 2024

@christian-bromann Can you help here?

from wdio-intercept-service.

tehhowch avatar tehhowch commented on July 22, 2024

The iframe has a separate window context; you will need to activate that frame and install the interceptor in it.

from wdio-intercept-service.

rahul-xenon avatar rahul-xenon commented on July 22, 2024

@tehhowch Thanks for replying, I tried switching to frames and then setting up the interceptor via browser.setupInterceptor(); but this didn't work out.

from wdio-intercept-service.

tehhowch avatar tehhowch commented on July 22, 2024

@rahul-xenon how exactly does the iframe make requests? If it doesn't use the current value of the window's fetch or XMLHttpRequest, then it isn't going to be using the version that this library has intercepted. This library also does not intercept e.g. websockets or postMessage.

from wdio-intercept-service.

NutriMarc avatar NutriMarc commented on July 22, 2024

@rahul-xenon how exactly does the iframe make requests? If it doesn't use the current value of the window's fetch or XMLHttpRequest, then it isn't going to be using the version that this library has intercepted. This library also does not intercept e.g. websockets or postMessage.

Any plans to support capturing web sockets in the future? If not, what is the reason?

from wdio-intercept-service.

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.