From cd19f51108c141b000b9ee826fe6878a5fc9bcce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20St=C3=B6hr?= Date: Mon, 2 Dec 2024 13:59:29 +0100 Subject: [PATCH] fixup! feat: allow selenium server with internal webserver --- src/PantherTestCaseTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PantherTestCaseTrait.php b/src/PantherTestCaseTrait.php index 007789f3..f22d4093 100644 --- a/src/PantherTestCaseTrait.php +++ b/src/PantherTestCaseTrait.php @@ -186,7 +186,7 @@ protected static function createPantherClient(array $options = [], array $kernel if (PantherTestCase::FIREFOX === $browser) { self::$pantherClients[0] = self::$pantherClient = PantherClient::createFirefoxClient(null, $browserArguments, $managerOptions, self::$baseUri); } elseif (PantherTestCase::SELENIUM === $browser) { - self::$pantherClients[0] = self::$pantherClient = Client::createSeleniumClient($managerOptions['host'], $managerOptions['capabilities'], self::$baseUri, $options); + self::$pantherClients[0] = self::$pantherClient = PantherClient::createSeleniumClient($managerOptions['host'], $managerOptions['capabilities'] ?? null, self::$baseUri, $options); } else { try { self::$pantherClients[0] = self::$pantherClient = PantherClient::createChromeClient(null, $browserArguments, $managerOptions, self::$baseUri);