From 10e03884893ed716fcded8470d3d3a22f5672ebd Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Mon, 19 Apr 2021 13:22:17 +0200 Subject: [PATCH] Adding Port Haven't tested for Chrome. --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 1b776444..6fffe38a 100644 --- a/README.md +++ b/README.md @@ -388,6 +388,15 @@ $client = self::createPantherClient([ * `PANTHER_FIREFOX_ARGUMENTS`: to customize Firefox arguments. You need to set `PANTHER_NO_HEADLESS` to fully customize. * `PANTHER_FIREFOX_BINARY`: to use another `firefox` binary +### Changing the Port + +By default, chromedriver is listening on port 9515, and geckodriver on 4444. To change this value, pass another port to the `$options` array: + +```php +$client = Client::createChromeClient(null, null, ['port' => 1234]); +$client = Client::createFirefoxClient(null, null, ['port' => 1234]); +``` + ### Accessing To Hidden Text According to the spec, WebDriver implementations return only the **displayed** text by default.