Docker: Remove Hub GraphQL dependency from video recorder by VietND96 · Pull Request #2813 · SeleniumHQ/docker-selenium (original) (raw)

User description

Thanks for contributing to the Docker-Selenium project!
A PR well described will help maintainers to quickly review and merge it

Before submitting your PR, please check our contributing guidelines, applied for this repository.
Avoid large PRs, help reviewers by making them as simple and short as possible.

Description

After the fix [java] Add "se" prefixed capabilities to session response (SeleniumHQ/selenium#14323) available from version 4.24+
All capabilities with prefix se: could be seen in Node /status session capabilities.
Video recorder to get file name via cap se:name, or se:videoName no need to extract from Hub GraphQL anymore.
Container video recorder also no need to pass ENV variable of Hub GraphQL anymore.

Motivation and Context

Types of changes

Checklist


PR Type

Enhancement


Description


Changes walkthrough 📝

Relevant files
Enhancement video.shRefactor video recorder to use Node session capabilities Video/video.sh Refactored to fetch session info from Node /status endpoint, not GraphQL Added logic to extract video recording info from session capabilities Removed all Hub GraphQL endpoint and ENV variable usage Integrated new script for video file name and recording flag extraction +12/-13 video_nodeQuery.shAdd script to parse video recording info from capabilities Video/video_nodeQuery.sh New script to extract video recording flag and file name from session capabilities Determines file name based on se:name or se:videoName capabilities Normalizes and formats the video file name Outputs recording flag and file name for use by other scripts +49/-0

Need help?