diff --git a/README.md b/README.md index 32fe561..86adc7f 100644 --- a/README.md +++ b/README.md @@ -790,9 +790,9 @@ $page->navigate('http://example.com')->waitForNavigation(); $page->waitUntilContainsElement('div[data-name=\"el\"]'); ``` -If a string is passed to `Page::waitUntilContainsElement`, -an instance of CSSSelector is created by default in called internal `Page::waitForElement`. -To use other selectors, you can pass an instance of the required `Selector` instead of a string. +If a string is passed to `Page::waitUntilContainsElement`, an instance of +`CSSSelector` is created for you by `Page::waitForElement`. To use other +selectors, you can pass an instance of the required `Selector`. Wait for element by XPath selector: