@@ -41,7 +41,7 @@ public function __construct(string $chromeBinary = null)
4141 * - ignoreCertificateErrors: set chrome to ignore ssl errors
4242 * - keepAlive: true to keep alive the chrome instance when the script terminates (default: false)
4343 * - noSandbox: enable no sandbox mode (default: false)
44- * - sendSyncDefaultTimeout: maximum time in ms to wait for synchronous messages to send (default 3000 ms)
44+ * - sendSyncDefaultTimeout: maximum time in ms to wait for synchronous messages to send (default 5000 ms)
4545 * - startupTimeout: maximum time in seconds to wait for chrome to start (default: 30 sec)
4646 * - userAgent: user agent to use for the browser
4747 * - userDataDir: chrome user data dir (default: a new empty dir is generated temporarily)
@@ -118,7 +118,7 @@ public function getChromeVersion()
118118 * @param array $options options when creating the connection to the browser:
119119 * - connectionDelay: amount of time in seconds to slows down connection for debugging purposes (default: none)
120120 * - debugLogger: resource string ("php://stdout"), resource or psr-3 logger instance (default: none)
121- * - sendSyncDefaultTimeout: maximum time in ms to wait for synchronous messages to send (default 3000 ms)
121+ * - sendSyncDefaultTimeout: maximum time in ms to wait for synchronous messages to send (default 5000 ms)
122122 *
123123 * @return Browser
124124 * @throws BrowserConnectionFailed
@@ -132,7 +132,7 @@ public static function connectToBrowser(string $uri, array $options = []): Brows
132132 }
133133
134134 // connect to browser
135- $ connection = new Connection ($ uri , $ logger , $ options ['sendSyncDefaultTimeout ' ] ?? 3000 );
135+ $ connection = new Connection ($ uri , $ logger , $ options ['sendSyncDefaultTimeout ' ] ?? 5000 );
136136
137137 // try to connect
138138 try {
0 commit comments