Skip to content

Commit

Permalink
add "use HeadlessChromium\Dom\Selector\XPathSelector;" (#573)
Browse files Browse the repository at this point in the history
makes it easier to follow sample code, i had to look it up in the source code myself.
  • Loading branch information
divinity76 authored Mar 17, 2024
1 parent e0b4586 commit 269ae8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,8 @@ selectors, you can pass an instance of the required `Selector`.
Wait for element by XPath selector:

```php
use HeadlessChromium\Dom\Selector\XPathSelector;

$page = $browser->createPage();
$page->navigate('http://example.com')->waitForNavigation();

Expand Down

0 comments on commit 269ae8c

Please sign in to comment.