Git Product home page Git Product logo

Comments (4)

tehhowch avatar tehhowch commented on July 22, 2024

"gets called"

Please share the details of how these other APIs are called.
If their URLs aren't loaded via XMLHttpRequest or fetch, this service is not able to capture the associated network requests.

from wdio-intercept-service.

snehalavhare avatar snehalavhare commented on July 22, 2024

@tehhowch The other api's are called via fetch only from front end (JS). Can you please give some more details about what you are referring by fetch and XMLHttpRequest here?

from wdio-intercept-service.

snehalavhare avatar snehalavhare commented on July 22, 2024

@tehhowch, can we capture api's having internal company domain (like a**p.com) for which no proxy are required and this domain is not publicly available?

Seems like we are able to capture the beacon api which has public domain. However getPNR and fulfilPNR apis' have internal company domain. We suspect that it might be due to internal company domain we are not able to able capture these api's.

Can you please confirm?

from wdio-intercept-service.

tehhowch avatar tehhowch commented on July 22, 2024

This service does not impose any limitations on domains that it can intercept against. If client-side JS is not able to inspect the properties of the fetch / xmlhttprequest data then I would not expect this service to be able to log the body of the request or response, but other than that...

If you suspect an issue with the interceptor, please configure a test scenario that can be used to reproduce it. This repo's test environment spins up an Express server, so you should be able to add a static page that performs analogously to your proprietary site and customize the server response too.
Failing that, please provide explicit details of the fetch invocation, including all parameters provided to the fetch instance, so that a test case can be created.

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.