From d7fd8386b3bd08a5b9dd6a300adf9ed6e17f7e41 Mon Sep 17 00:00:00 2001 From: divinity76 Date: Tue, 12 Dec 2023 16:27:23 +0100 Subject: [PATCH] add "use HeadlessChromium\Dom\Selector\XPathSelector;" 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();