wdio-intercept-service is not capturing requests invoked in iframe
rahul-xenon opened this issue · 6 comments
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..?
@christian-bromann Can you help here?
The iframe has a separate window context; you will need to activate that frame and install the interceptor in it.
@tehhowch Thanks for replying, I tried switching to frames and then setting up the interceptor via browser.setupInterceptor(); but this didn't work out.
@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.
@rahul-xenon how exactly does the iframe make requests? If it doesn't use the current value of the window's
fetch
orXMLHttpRequest
, 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?
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.