disableRetry example

// If using a real browser fallback to the \Behat\Mink\Element\Element     // implementation.     return parent::getText();
  }

  /** * {@inheritdoc} */
  public function waitFor($timeout$callback) {
    // Wraps waits in a function to catch curl exceptions to continue waiting.     WebDriverCurlService::disableRetry();
    $count = 0;
    $wrapper = function DElement $element) use ($callback, &$count) {
      $count++;
      try {
        return call_user_func($callback$element);
      }
      catch (Exception $e) {
        return NULL;
      }
    };
    $result = parent::waitFor($timeout$wrapper);
    
Home | Imprint | This part of the site doesn't use cookies.