Skip to content

Commit 269ae8c

Browse files
authored
add "use HeadlessChromium\Dom\Selector\XPathSelector;" (#573)
makes it easier to follow sample code, i had to look it up in the source code myself.
1 parent e0b4586 commit 269ae8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,8 @@ selectors, you can pass an instance of the required `Selector`.
799799
Wait for element by XPath selector:
800800

801801
```php
802+
use HeadlessChromium\Dom\Selector\XPathSelector;
803+
802804
$page = $browser->createPage();
803805
$page->navigate('http://example.com')->waitForNavigation();
804806

0 commit comments

Comments
 (0)