Overview

Namespaces

  • Peridot
    • WebDriverManager
      • Binary
        • Decompression
        • Request
      • Console
      • Event
      • OS
      • Process
      • Test
  • PHP

Classes

  • AbstractBinary
  • BinaryResolver
  • ChromeDriver
  • CompressedBinary
  • IEDriver
  • SeleniumStandalone

Interfaces

  • BinaryInterface
  • BinaryResolverInterface
  • DriverInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class AbstractBinary

AbstractBinary is a base class for all binaries and drivers.

Peridot\WebDriverManager\Binary\AbstractBinary implements Peridot\WebDriverManager\Binary\BinaryInterface

Direct known subclasses

Peridot\WebDriverManager\Binary\CompressedBinary, Peridot\WebDriverManager\Binary\SeleniumStandalone

Indirect known subclasses

Peridot\WebDriverManager\Binary\ChromeDriver, Peridot\WebDriverManager\Binary\IEDriver
Abstract
Namespace: Peridot\WebDriverManager\Binary
Package: Peridot\WebDriverManager\Binary
Located at Binary/AbstractBinary.php
Methods summary
public
# __construct( Peridot\WebDriverManager\Binary\BinaryResolverInterface $resolver )

Parameters

$resolver
public boolean
# fetch( )

Fetch the contents of the url and store the contents.

Fetch the contents of the url and store the contents.

Returns

boolean

Implementation of

Peridot\WebDriverManager\Binary\BinaryInterface::fetch()
public boolean
# save( string $directory )

Write the contents of the fetched url.

Write the contents of the fetched url.

Parameters

$directory

Returns

boolean

Implementation of

Peridot\WebDriverManager\Binary\BinaryInterface::save()
public boolean
# fetchAndSave( string $directory )

Fetch and save the binary.

Fetch and save the binary.

Parameters

$directory

Returns

boolean

Implementation of

Peridot\WebDriverManager\Binary\BinaryInterface::fetchAndSave()
public string
# getContents( )

Return the fetched content of a binary.

Return the fetched content of a binary.

Returns

string

Implementation of

Peridot\WebDriverManager\Binary\BinaryInterface::getContents()
public boolean
# exists( mixed $directory )

Check if the binary exists in the specified directory.

Check if the binary exists in the specified directory.

Parameters

$directory

Returns

boolean

Implementation of

Peridot\WebDriverManager\Binary\BinaryInterface::exists()
public boolean
# isOutOfDate( mixed $directory )

Check if old versions of the binary exist.

Check if old versions of the binary exist.

Parameters

$directory

Returns

boolean

Implementation of

Peridot\WebDriverManager\Binary\BinaryInterface::isOutOfDate()
public boolean
# isSupported( )

Is the binary supported by the target system?

Is the binary supported by the target system?

Returns

boolean

Implementation of

Peridot\WebDriverManager\Binary\BinaryInterface::isSupported()
protected string
# getDestination( mixed $directory )

Get the destination file for the binary.

Get the destination file for the binary.

Parameters

$directory

Returns

string
protected
# removeOldVersions( mixed $directory )

Remove old versions of the binary.

Remove old versions of the binary.

Parameters

$directory
abstract protected string
# getOldFilePattern( string $directory )

Return a pattern to identify old versions of a binary.

Return a pattern to identify old versions of a binary.

Parameters

$directory

Returns

string
Methods inherited from Peridot\WebDriverManager\Binary\BinaryInterface
getFileName(), getName(), getUrl()
Properties summary
protected string $contents
#
protected Peridot\WebDriverManager\Binary\BinaryResolverInterface $resolver
#
WebDriver Manager API documentation generated by ApiGen