feat: add SessionConfiguration with proxy, extensions, and profile support#274
Merged
sundargthb merged 1 commit intoaws:mainfrom Feb 24, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #274 +/- ##
=======================================
Coverage ? 91.20%
=======================================
Files ? 35
Lines ? 3580
Branches ? 535
=======================================
Hits ? 3265
Misses ? 170
Partials ? 145
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
013d298 to
600028a
Compare
600028a to
7b4af50
Compare
7b4af50 to
199f592
Compare
199f592 to
0a58be9
Compare
0a58be9 to
6f408a3
Compare
6f408a3 to
d61f381
Compare
d61f381 to
7dc2149
Compare
7dc2149 to
dfd9896
Compare
dfd9896 to
ac1277d
Compare
ac1277d to
a59b187
Compare
a59b187 to
a94eac9
Compare
…pport Replace ad-hoc TypedDicts in browser_client.py with composable dataclasses in config.py following the established BrowserConfiguration pattern: - ProxyCredentials, ExternalProxy, ProxyConfiguration for proxy routing - ExtensionS3Location, BrowserExtension for loading browser extensions - SessionConfiguration composite that produces kwargs for start() - Add extensions and profile_configuration params to start() and browser_session() Usage: client.start(**session_config.to_dict())
a94eac9 to
1ba72f8
Compare
|
LGTM |
sundargthb
approved these changes
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
config.py, following the establishedBrowserConfigurationpatternProxyCredentials,ExternalProxy,ProxyConfigurationfor proxy routingExtensionS3Location,BrowserExtensionfor loading browser extensionsProfileConfigurationfor persisting browser state across sessionsSessionConfigurationcomposite that bundles viewport, proxy, extensions, and profile intostart()kwargsextensionsandprofile_configurationparameters tostart()andbrowser_session()Usage:
client.start(**session_config.to_dict())Test plan
python3 tests_integ/tools/test_browser_proxy.py):ProxyConfigurationdataclassSessionConfigurationwith proxy, viewport, extensions, profile individually and combinedbrowser_session()context manager driven bySessionConfigurationstop()idempotency, context manager cleanup on exception,get_session()after stop