Skip to content

Fix double-slash issue with root chromedriver Selenium proxy target

Fix double-slash issue with root chromedriver Selenium proxy target (slashes not collapsing)

We check for slash to get around this odd behavior in url-join. I created https://github.com/jfromaniello/url-join/issues/42 to see whether this is expected or a bug

  • urlJoin('/', '/', '/session') -> '//session' <---- unexpected (expected '/session')
  • urlJoin('/', '/wd/hub', '/session') -> '/wd/hub/session'
  • urlJoin('/', '/wd/hub/', '/session') -> '/wd/hub/session'
Edited by 🤖 GitLab Bot 🤖

Merge request reports