SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.51k stars 8.15k forks source link

[🚀 Feature]: Allow user to provide a different base URL for the grid UI #11647

Closed StellarNear closed 1 year ago

StellarNear commented 1 year ago

Feature and motivation

For the moment the base URL of a grid is locked to be /ui/ at root level. For my usage i had to manually change the path in the file : selenium/grid-ui/package.json at line 38 "homepage": "/ui" to "homepage": "/selenium/ui"

Because for my usage the base URL host multiple services (so i have my URL like this www.myUrl.com/selenium/ui)

Currently i found no other way to provide the grid a custom base without having to recompile everything after a manual change.

Usage example

The grid could simply read an environment variable such as GRID_BASE_URL and if this variable exist use it instead of the /ui written in the code

yashcho commented 1 year ago

This has already been released.

May I know in which version, because release notes of 4.9 doesn't contain this detail?

Have you checked the most recent post? https://www.selenium.dev/blog/2023/selenium-4-9-0-released/

Nope, thanks for sharing :). I just visited changelog for release in GitHub :)

github-actions[bot] commented 10 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.