You are here

public function ElementInterface::waitFor in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/Element/ElementInterface.php \Behat\Mink\Element\ElementInterface::waitFor()

Waits for an element(-s) to appear and returns it.

Parameters

int|float $timeout Maximal allowed waiting time in seconds.:

callable $callback Callback, which result is both used as waiting condition and returned.: Will receive reference to `this element` as first argument.

Return value

mixed

Throws

\InvalidArgumentException When invalid callback given.

1 method overrides ElementInterface::waitFor()
Element::waitFor in vendor/behat/mink/src/Element/Element.php
Waits for an element(-s) to appear and returns it.

File

vendor/behat/mink/src/Element/ElementInterface.php, line 68

Class

ElementInterface
Element interface.

Namespace

Behat\Mink\Element

Code

public function waitFor($timeout, $callback);