Root context
DrevOps\BehatSteps\WebRawContext - Source
Root context carrying the plumbing every suite needs.
public function __construct(array $config = [])
Constructs a WebRawContext object
public function backendFor(string $capability): object
Returns the highest-priority backend providing the given capability
public function browserDriverFor(string $capability): object
Returns the adapter providing a browser capability for this session
public function browserDriverHas(string $capability): bool
Whether this session's browser driver provides a browser capability
public function getBackend(string $name): BackendInterface
Returns a backend of this scenario by the name its suite gave it
public function getBackendRegistry(): BackendRegistryInterface
Returns the backend registry
public function getBasicAuthenticator(): BasicAuthenticatorInterface
Returns the basic authenticator
public function getBrowserCapabilityResolver(): BrowserCapabilityResolver
Returns the browser capability resolver, creating it on first use
public function getHttpClientFactory(): HttpClientFactoryInterface
Returns the factory that builds the detached and bare browsers
public function getOption(string $group, string $key): mixed
Returns a trait option at whatever type it resolved to
public function getOptionArray(string $group, string $key): array
Returns a trait option declared as a map
public function getOptionBool(string $group, string $key): bool
Returns a trait option declared as a boolean
public function getOptionFloat(string $group, string $key): float
Returns a trait option declared as a float
public function getOptionInt(string $group, string $key): int
Returns a trait option declared as an integer
public function getOptionResolver(): TraitOptionResolverInterface
Returns the resolver of the options this context's traits declare
public function getOptionResolverFactory(): TraitOptionResolverFactoryInterface
Returns the resolver factory, creating a standalone one on first use
public function getOptionString(string $group, string $key): string
Returns a trait option declared as a string
public function getRandom(): RandomGeneratorInterface
Returns the backend's random generator
public function httpBareClient(array $options = []): AbstractBrowser
Returns a one-off browser that carries no scenario state
public function httpDetachedClient(array $options = []): AbstractBrowser
Returns a one-off browser that acts as the scenario's visitor
public function httpPageClient(): AbstractBrowser
Returns the browser the Mink session drives