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 and multiremote project #54

Open
ericzered opened this issue Nov 21, 2019 · 3 comments
Open

wdio-intercept-service and multiremote project #54

ericzered opened this issue Nov 21, 2019 · 3 comments

Comments

@ericzered
Copy link

ericzered commented Nov 21, 2019

Hello,
I'm using wdio-intercept-service in my wdio project and it's working great, but I see that I can't use it in the case of Multiremote : https://webdriver.io/docs/multiremote.html
browser.setupInterceptor() is working (if all browsers launched are compatible), but browser['chrome'].setupInterceptor() is giving me an error:

**browser.chrome.setupInterceptor is not a function**

But browser['chrome'] is ok for all WebdriverIO.BrowserObject methods like .url()...
So how can I make wdio-intercept-service works in a multiremote project ? Thanks !

@ericzered ericzered changed the title How to initialize wdio-intercept-service ? wdio-intercept-service and multiremote project Nov 21, 2019
@chmanie
Copy link
Member

chmanie commented Dec 5, 2019

That looks interesting. I'll look into it!

@pmerwin
Copy link

pmerwin commented Jun 30, 2022

I have a use case for this as well :)

@pmerwin
Copy link

pmerwin commented Sep 28, 2022

As a workaround I found if you're using saucelabs you can intercept using their API in mutliremote:

if you are running through the saucelabs service: @wdio/sauce-service you should have the getPageLogs() method available

const reqs = await mBrowser.getPageLogs('sauce:network');

where mBrowser is either remote you want logs from ^

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