Does anyone have a proper example on how to configure BrowserMobProxy with WebDriverIO? This is so I can capture network traffic. I previously had it working with WebDriverJS, which is essentially a deprecated version of WebDriverIO.
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- Keeping track of variable instances
You can use the below code to do that. Make sure your
browsermob proxy
andselenium server
is running. Then copy paste below code in atest.js
file and put it inwebdriverio
installed folder. Fromcmd
go to that folder and runnode test.js
.stuff.har
should be generated wheretest.js
is located.