Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Selenium2Driver.php

function Selenium2Driver::applyTimeouts

Applies timeouts to the current session

2 calls to Selenium2Driver::applyTimeouts()
Selenium2Driver::setTimeouts in vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php
Sets the timeouts to apply to the webdriver session
Selenium2Driver::start in vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php
Starts driver.

File

vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php, line 393

Class

Selenium2Driver
Selenium2 driver.

Namespace

Behat\Mink\Driver

Code

private function applyTimeouts() : void {
    try {
        foreach ($this->timeouts as $type => $param) {
            $this->getWebDriverSession()
                ->timeouts($type, $param);
        }
    } catch (UnknownError $e) {
        throw new DriverException('Error setting timeout: ' . $e->getMessage(), 0, $e);
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal