Skip to content

Commit c2564bb

Browse files
authored
Merge pull request php-webdriver#1066 from uuf6429/patch-1
Use phpdoc correctly to document exception throwing
2 parents 25a5655 + f469841 commit c2564bb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/WebDriverSearchContext.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Facebook\WebDriver;
44

5+
use Facebook\WebDriver\Exception\NoSuchElementException;
6+
57
/**
68
* The interface for WebDriver and WebDriverElement which is able to search for WebDriverElement inside.
79
*/
@@ -10,7 +12,8 @@ interface WebDriverSearchContext
1012
/**
1113
* Find the first WebDriverElement within this element using the given mechanism.
1214
*
13-
* @return WebDriverElement NoSuchElementException is thrown in HttpCommandExecutor if no element is found.
15+
* @throws NoSuchElementException If no element is found
16+
* @return WebDriverElement
1417
* @see WebDriverBy
1518
*/
1619
public function findElement(WebDriverBy $locator);

0 commit comments

Comments
 (0)