testdriverai 7.3.21 → 7.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/sdk.js +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/sdk.js
CHANGED
|
@@ -1714,7 +1714,7 @@ class TestDriverSDK {
|
|
|
1714
1714
|
const shell = this.os === "windows" ? "pwsh" : "sh";
|
|
1715
1715
|
const portCheckCmd = this.os === "windows"
|
|
1716
1716
|
? `$tcp = New-Object System.Net.Sockets.TcpClient; $tcp.Connect('127.0.0.1', 9222); $tcp.Close(); echo 'open'`
|
|
1717
|
-
: `
|
|
1717
|
+
: `curl -s -o /dev/null --connect-timeout 2 http://localhost:9222 2>/dev/null && echo 'open' || echo 'closed'`;
|
|
1718
1718
|
const pageCheckCmd = this.os === "windows"
|
|
1719
1719
|
? `(Invoke-RestMethod -Uri 'http://localhost:9222/json' -TimeoutSec 2) | Where-Object { $_.type -eq 'page' } | Select-Object -First 1 | ConvertTo-Json`
|
|
1720
1720
|
: `curl -s http://localhost:9222/json 2>/dev/null | grep '"type": "page"'`;
|