Skip to content

Commit

Permalink
add "use HeadlessChromium\Dom\Selector\XPathSelector;"
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 Dec 12, 2023
1 parent 2b7cb13 commit d7fd838
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 d7fd838

Please sign in to comment.