Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wdio-intercept-service is not capturing requests invoked in iframe #613

Open
rahul-xenon opened this issue Jul 19, 2023 · 6 comments
Open

Comments

@rahul-xenon
Copy link

I have a third party app installed in Microsoft Teams which gets launched in embedded view i.e. in iframe.
I am able to capture MS Teams specific requests but unable to capture the traffic initiated via iframe.
Is this a known limitation that intercept service doesn't capture iframe traffic..?

@rahul-xenon
Copy link
Author

@christian-bromann Can you help here?

@tehhowch
Copy link
Contributor

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

@rahul-xenon
Copy link
Author

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

@tehhowch
Copy link
Contributor

@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.

@NutriMarc
Copy link

@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?

@tehhowch
Copy link
Contributor

tehhowch commented Oct 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants