From 269ae8ca9149e7ce9d4a9d5af9f842c8653d835a Mon Sep 17 00:00:00 2001 From: divinity76 Date: Sun, 17 Mar 2024 23:46:51 +0100 Subject: [PATCH] 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. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 5e08f93..1cacdd9 100644 --- a/README.md +++ b/README.md @@ -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();