TestcontainerEx.SeleniumContainer (testcontainer_ex v0.8.0)

Copy Markdown View Source

Work in progress. Not stable for use yet.

Summary

Functions

Sets the check image regex (or string) used to validate the container image name before starting.

Sets the container name.

Enables or disables container reuse.

Types

t()

@type t() :: %TestcontainerEx.SeleniumContainer{
  check_image: term(),
  image: term(),
  name: term(),
  port1: term(),
  port2: term(),
  reuse: term(),
  wait_timeout: term()
}

Functions

default_image()

new()

with_check_image(config, check_image)

@spec with_check_image(t(), String.t() | Regex.t()) :: t()

Sets the check image regex (or string) used to validate the container image name before starting.

with_image(c, image)

with_name(config, name)

@spec with_name(t(), String.t()) :: t()

Sets the container name.

with_port1(c, p)

with_port2(c, p)

with_reuse(config, reuse)

@spec with_reuse(t(), boolean()) :: t()

Enables or disables container reuse.

with_wait_timeout(c, t)