mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 03:12:29 +00:00
Implement automatic discovery of grid node addresses to eliminate manual configuration when running network capture on Selenium Grid deployments. Changes: - Added GraphQL API discovery for Grid 4 (queries /graphql endpoint) - Added REST API discovery for Grid 3 (queries /grid/api/testsession) - Added getBaseGridUrl() to strip /wd/hub suffix before API queries - Integrated discovery into before hook, stores result in custom:nodeHostname - Updated documentation with automatic discovery examples Configuration priority: 1. Custom capability 'custom:nodeHostname' (manual override) 2. Automatic discovery via GRID_HOST_URL (zero config for Grid 4/3) 3. Environment variable GRID_NODE_HOSTNAME (fallback) 4. Default: localhost (local testing) Grid 4/3 APIs are at root level, not under /wd/hub path.