SeleniumHQ / SeleniumHQ/selenium

[🚀 Feature]: SM Chrome for Testing usage

Open
#17,556 1 comment 1 reaction 0 assignees View on GitHub
B-manager I-enhancement
Dominant language
Java
Stars
34.5k
Forks
8.7k
Avg merge
2d 1h
Merged PRs (30d)
92

Description

### Description

Current behavior is to use System installed Chrome by default.

I think a good case can be made for defaulting to using Chrome for Testing, but I can understand if that might not be the expected behavior from users. It would certainly be a breaking change not to make lightly.

At the very least we should make it easier for users to specify they want to use CfT. The only option we have right now requires users to set SE_FORCE_BROWSER_DOWNLOAD (which is a little misleading because it doesn't always download if it exists in cache). To complicate things users would also want to set SE_SKIP_DRIVER_IN_PATH so that they don't end up with system driver and CfT browser (this is what would happen on Github Actions Runner)

I see 2 options not mutually excusive
1. We can add SE_USE_DOWNLOADED_BROWSER which will set SE_FORCE_BROWSER_DOWNLOAD and SE_SKIP_DRIVER_IN_PATH
2. We create a method in Options classes for this. Either useDownloadedBrowser or even useChromeForTesting in chrome options.

### Have you considered any alternatives or workarounds?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.