Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suddenly TestCafe cant find chrome path #7979

Closed
ejerskov opened this issue Aug 29, 2023 · 1 comment
Closed

Suddenly TestCafe cant find chrome path #7979

ejerskov opened this issue Aug 29, 2023 · 1 comment
Labels
TYPE: bug The described behavior is considered as wrong (bug).

Comments

@ejerskov
Copy link

ejerskov commented Aug 29, 2023

What is your Scenario?

I've been running a TestCafe project on a Microsoft DevOps pipeline for a couple of years. Suddenly it fails saying it cant find the chrome path.

What is the Current behavior?

I get this error:

D:\a\1\s\node_modules\testcafe\lib\browser\provider\pool.js:94
##[error]Cmd.exe exited with code '1'.
            throw new runtime_1.GeneralError(types_1.RUNTIME_ERRORS.cannotFindBrowser, alias);
                  ^

GeneralError: Cannot find the browser. "chrome" is neither a known browser alias, nor a path to an executable file.
    at Object.getBrowserInfo (D:\a\1\s\node_modules\testcafe\lib\browser\provider\pool.js:94:19)
    at async Promise.all (index 0)
    at async TestCafeConfiguration._getBrowserInfo (D:\a\1\s\node_modules\testcafe\lib\configuration\testcafe-configuration.js:205:29)
    at async TestCafeConfiguration.asyncMergeOptions (D:\a\1\s\node_modules\testcafe\lib\configuration\testcafe-configuration.js:66:44)
    at async TestCafeConfiguration.init (D:\a\1\s\node_modules\testcafe\lib\configuration\testcafe-configuration.js:60:9)
    at async getConfiguration (D:\a\1\s\node_modules\testcafe\lib\index.js:32:9)
    at async createTestCafe (D:\a\1\s\node_modules\testcafe\lib\index.js:47:27) {
  code: 'E1005',
  data: [ 'chrome' ]

Chrome seems to be missing from the browser list on the devops agent - how can I fix this?

> testcafe --list-browsers

firefox
edge
ie

What is the Expected behavior?

Im expecting it to run as usual and use the correct path.

What is your public website URL? (or attach your complete example)

What is your TestCafe test code?

Your complete configuration file

No response

Your complete test report

No response

Screenshots

No response

Steps to Reproduce

TestCafe version

3.2.0

Node.js version

No response

Command-line arguments

Browser name(s) and version(s)

No response

Platform(s) and version(s)

No response

Other

No response

@ejerskov ejerskov added the TYPE: bug The described behavior is considered as wrong (bug). label Aug 29, 2023
@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Aug 29, 2023
@miherlosev
Copy link
Collaborator

Hi @ejerskov,
This is the issue of the runner image - actions/runner-images#8114.
Track it to be aware of our progress.

@need-response-app need-response-app bot removed the STATE: Need response An issue that requires a response or attention from the team. label Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
Development

No branches or pull requests

2 participants