Skip to content

Commit cf6c03a

Browse files
Merge branch '1.14' into 1.15
2 parents f382fac + 087047a commit cf6c03a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,10 @@ The next calls to the script will read the uri from that file in order to connec
194194
use \HeadlessChromium\BrowserFactory;
195195
use \HeadlessChromium\Exception\BrowserConnectionFailed;
196196

197+
$socketFile = '/tmp/chrome-php-demo-socket';
198+
197199
// path to the file to store websocket's uri
198-
$socket = \file_get_contents('/tmp/chrome-php-demo-socket');
200+
$socket = \file_get_contents($socketFile);
199201

200202
try {
201203
$browser = BrowserFactory::connectToBrowser($socket);
@@ -317,7 +319,6 @@ Sometimes the script you evaluate will click a link or submit a form, in this ca
317319
will want to wait for the new page to reload.
318320

319321
You can achieve this by using ``$page->evaluate('some js that will reload the page')->waitForPageReload()``.
320-
An example is available in [form-submit.php](./examples/form-submit.php)
321322

322323
#### Call a function
323324

0 commit comments

Comments
 (0)