You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't find any information on how this proxy is setup, my hand rolled setup uses browsermob-proxy. What I'm trying to do is figure out a way to log out failed network requests to the console during test runs. So that example above would log out:
"Error downloading http://127.0.0.1:55271/v1/users/ - server replied: Unknown Error"
The text was updated successfully, but these errors were encountered:
You can configure a proxy by passing capabilities to the driver instance. For Firefox using GeckoDriver you'll need to check the documentation on how to construct the proxy configuration. There are several ways to set capabilities using pytest-selenium, and these are documented here. I hope this helps, though configuring proxies is not a direct responsibility for pytest-selenium, so I may redirect further questions to the Selenium and GeckoDriver projects.
I thought a proxy was already setup. How is it generating the HAR log without one?
I do not know anything about your environment or infrastructure, but I can tell you that pytest-selenium will not use a proxy or generate a HAR file on its own.
When I generate an HTML report I have a
HAR Log
which shows all the network traffic in the browser, that looks like:I can't find any information on how this proxy is setup, my hand rolled setup uses
browsermob-proxy
. What I'm trying to do is figure out a way to log out failed network requests to the console during test runs. So that example above would log out:The text was updated successfully, but these errors were encountered: