{"id":15946498,"url":"https://github.com/mike10004/selenium-traffic-example","last_synced_at":"2025-07-07T08:11:12.770Z","repository":{"id":68507614,"uuid":"72785097","full_name":"mike10004/selenium-traffic-example","owner":"mike10004","description":"Example of capturing network traffic with Selenium and Browsermob-proxy","archived":false,"fork":false,"pushed_at":"2016-11-15T20:44:26.000Z","size":22,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-07T08:08:19.329Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mike10004.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-03T20:43:50.000Z","updated_at":"2020-08-22T22:47:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd9fb655-f7f9-4bbe-ab0a-a16ec51863d6","html_url":"https://github.com/mike10004/selenium-traffic-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mike10004/selenium-traffic-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike10004%2Fselenium-traffic-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike10004%2Fselenium-traffic-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike10004%2Fselenium-traffic-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike10004%2Fselenium-traffic-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mike10004","download_url":"https://codeload.github.com/mike10004/selenium-traffic-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike10004%2Fselenium-traffic-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264040938,"owners_count":23548070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-07T09:22:07.645Z","updated_at":"2025-07-07T08:11:12.737Z","avatar_url":"https://github.com/mike10004.png","language":"Java","readme":"Capturing network traffic with Selenium and Firefox or Chrome\n=============================================================\n\nThis project is an example of how to capture network traffic using Selenium \nWebDriver with Browsermob-proxy. Unit tests employing Firefox and Chrome \nwebdrivers capturing both HTTP and HTTPS traffic are included.\n\nThe primary reason this project is shared is that many Selenium traffic \ncapture examples and how-tos suggest the process is rather simple, but in \npractice, at least with the version of Firefox the author has, the following\nproblems were encountered:\n\n* merely configuring the `DesiredCapabilities` object for the Firefox \n  webdriver does not actually configure the driver to use the proxy\n* many examples of how to customize the Firefox profile for the webdriver\n  fail to include instructions for specifying that the same proxy be used for \n  HTTPS requests\n* empty HAR files are produced by browsermob-proxy if the webdriver proxy \n  is not configured correctly\n* by default, the Firefox driver does not accept the certificate provided by \n  Browsermob-proxy to MITM SSL traffic, and configuring the Firefox profile\n  for the webdriver to accept a custom self-signed certificate is nontrivial\n* Browsermob-proxy does not respect the system properties that define a proxy\n  for the JVM, so if you have an upstream proxy, the Browsermob proxy \n  must be configured explicitly from the system properties\n\nThis project is a working demonstration of network traffic capture that is \nsmall enough to comprehend but shows a fair number of ways you can customize \nit for your needs.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmike10004%2Fselenium-traffic-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmike10004%2Fselenium-traffic-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmike10004%2Fselenium-traffic-example/lists"}