Skip to content

Commit

Permalink
Due Behat/Mink#603 the waitFor method was waiting 1000 times longer
Browse files Browse the repository at this point in the history
(cherry picked from commit fb003f4)
  • Loading branch information
Alexander Obuhovich committed Sep 26, 2014
1 parent 5450baa commit 5456f64
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions library/QATools/QATools/PageObject/Element/WebElement.php
Expand Up @@ -44,21 +44,6 @@ public function __construct(array $selenium_selector, Session $session)
parent::__construct($this->seleniumSelectorToXpath($session), $session);
}

/**
* Waits for an element(-s) to appear and returns it.
*
* @param integer $timeout Maximal allowed waiting time in seconds.
* @param callable $callback Callback, which result is both used as waiting condition and returned.
* Will receive reference to `this element` as first argument.
*
* @return mixed
* @throws \InvalidArgumentException When invalid callback given.
*/
public function waitFor($timeout, $callback)
{
return parent::waitFor($timeout * 1000, $callback);
}

/**
* Creates Element instance based on existing NodeElement instance.
*
Expand Down

0 comments on commit 5456f64

Please sign in to comment.