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

🤖 Added extensions support #101

Merged
merged 6 commits into from
Dec 18, 2024
Merged

🤖 Added extensions support #101

merged 6 commits into from
Dec 18, 2024

Conversation

kunwar-reworkd
Copy link
Contributor

@kunwar-reworkd kunwar-reworkd commented Dec 18, 2024

Important

Add browser extension support to playwright_harness() for Chromium and update version to 0.57.0.

  • Behavior:
    • Added extensions parameter to playwright_harness() in harness.py to support loading browser extensions for Chromium.
    • Constructs command-line arguments to load specified extensions.
    • Manages temporary user data directory for extension handling.
  • Misc:
    • Imports shutil and tempfile in harness.py for temporary directory management.
    • Updated version to 0.57.0 in core/pyproject.toml and sdk/pyproject.toml.

This description was created by Ellipsis for 0bc2416. It will automatically update as commits are pushed.

Comment on lines 2 to 4
import shutil
import tempfile

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove, i dont think you are using these

@@ -39,6 +42,7 @@ async def playwright_harness(
browser_type: Optional[BrowserType] = None,
enable_clipboard: bool = False,
launch_args: Sequence[str] = (),
extensions: Sequence[str] = (),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to add this to the HarnessOptions type

@kunwar-reworkd kunwar-reworkd merged commit 4d0feb7 into main Dec 18, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants