Testcontainers.Playwright/PlaywrightContainer.cs

testcontainers-dotnet · src/Testcontainers.Playwright/PlaywrightContainer.cs · csharp · MIT
scraping

A specialized Docker container implementation for Playwright that provides connection strings and network access for automated browser testing.

// Source: https://github.com/testcontainers/testcontainers-dotnet | License: MIT | Copyright 2019 - 2026 Andre Hofmeister and other authors
// Provided via justclaw.it.com; keep this notice with the code.
namespace Testcontainers.Playwright;

/// <inheritdoc cref="DockerContainer" />
[PublicAPI]
public sealed class PlaywrightContainer : DockerContainer
{
    private readonly PlaywrightConfiguration _configuration;

    /// <summary>
    /// Initializes a new instance of the <see cref="PlaywrightContainer" /> class.
    /// </summary>
    /// <param name="configuration">The container configuration.</param>
    public PlaywrightContainer(PlaywrightConfiguration configuration)
        : base(configuration)
    {
        _configuration = configuration;
    }

    /// <summary>
    /// Gets th

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key