Closed tintin1926 closed 11 months ago
you can find it in readme.md,example
use HeadlessChromium\Communication\Connection;
use HeadlessChromium\Communication\Message;
// Chrome devtools URI
$webSocketUri = 'ws://127.0.0.1:9222/devtools/browser/xxx';
// create a connection
$connection = new Connection($webSocketUri);
$connection->connect();
// send method "Target.activateTarget"
$responseReader = $connection->sendMessage(new Message('Target.activateTarget', ['targetId' => 'xxx']));
// wait up to 1000ms for a response
$response = $responseReader->waitForResponse(1000);
I want to use this package to connect a remote server (selenium/standalone-chrome) running on docker