Skip to content

Commit

Permalink
Add phpdoc to describe Client::waitFor() locator argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Cram committed Oct 2, 2019
1 parent 59b0581 commit 196fdac
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,14 @@ public function getCookieJar()
}

/**
* @throws NoSuchElementException
* @throws TimeOutException
* @param string $locator The path to an element to be waited for. Can be a CSS selector or Xpath expression.
* @param int $timeoutInSecond
* @param int $intervalInMillisecond
*
* @return Crawler
*
* @throws NoSuchElementException
* @throws TimeOutException
*/
public function waitFor(string $locator, int $timeoutInSecond = 30, int $intervalInMillisecond = 250)
{
Expand Down

0 comments on commit 196fdac

Please sign in to comment.