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

We could not identify a known browser at the path you provided #4679

Closed
JayeshRGujar opened this issue Jul 9, 2019 · 8 comments
Closed

We could not identify a known browser at the path you provided #4679

JayeshRGujar opened this issue Jul 9, 2019 · 8 comments

Comments

@JayeshRGujar
Copy link

JayeshRGujar commented Jul 9, 2019

Current behavior:

Command:

npx cypress run --browser C:\\Users\\333765\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe

Output

We could not identify a known browser at the path you provided: 

C:\Users\333765\AppData\Local\Google\Chrome\Application\chrome.exe

The output from the command we ran was:

Version=74.0.3729.108
------
"devDependencies": {
    "@cypress/snapshot": "^2.1.3",
    "cypress": "^3.3.2",
    "cypress-image-snapshot": "^3.0.2",
    "cypress-slack-reporter": "^0.3.1",
    "mocha": "^5.2.0",
    "mocha-junit-reporter": "^1.23.0",
    "mocha-multi-reporters": "^1.1.7",
    "mochawesome": "^4.0.0",
    "mochawesome-merge": "^2.0.1",
    "mochawesome-report-generator": "^4.0.0",
    "regenerator-runtime": "^0.13.2"
  }

Question - Can we run cypress test on remote machine.

@flotwig
Copy link
Contributor

flotwig commented Jul 9, 2019

Hey @JayeshRGujar, could you share debugging logs from when you try to launch the browser? It will help shed some light on the issue.

Also, try this fix, it has worked for other people: #4260 (comment)

@JayeshRGujar
Copy link
Author

@flotwig Somehow I am able to find the solution by adding google chrome in Program files. After running the below command I am able to see chrome.
Command
npx cypress open --browser C:\Program Files\Google\Chrome\Application\chrome.exe

image

Issue is "npx cypress open"is working But "npx cypress run" is still having issues We could not identify a known browser at the path you provided: C:\User\333765\Google\Chrome\Application\chrome.exe
The output from the command we ran was:

My Question is :- Can we run cypress test on remote machine.

@flotwig
Copy link
Contributor

flotwig commented Jul 9, 2019

Could you share debugging logs from when you try to launch the browser in run mode? It will contain the exact error.

Did you try the fix I linked above? #4260 (comment)

Yes, you can run Cypress tests in Chrome on a remote machine.

@JayeshRGujar
Copy link
Author

JayeshRGujar commented Jul 9, 2019

Please find the below debugging logs:

  cypress:launcher checking one browser chrome +0ms
  cypress:launcher looking up chrome on win32 platform +0ms
  cypress:launcher exe path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe +0ms
  cypress:server:profilecleaner found 1 profile folders: [ 'C:/Users/333765/AppData/Roaming/Cypress/Partitions/run-27296' ] +0ms
  cypress:server:profilecleaner finding process by pid: 27296 +1ms
  cypress:launcher found C:\Program Files (x86)\Google\Chrome\Application\chrome.exe ? true +12ms
  cypress:server:profilecleaner found 0 root level profile matches: [] +33ms
  cypress:server:profilecleaner found 0 profile folders: [] +0ms
  cypress:launcher Version=74.0.3729.108 +140ms
  cypress:launcher browser chrome at 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe' version 74.0.3729.108 +0ms
  cypress:launcher setting major version for {"name":"chrome","family":"chrome","displayName":"Chrome","version":"74.0.3729.108","path":
  "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"} +1ms
  cypress:launcher browser chrome version 74.0.3729.108 major version 74 +0ms
  cypress:launcher checking one browser chromium +1ms
  cypress:launcher looking up chromium on win32 platform +0ms
  cypress:launcher exe path C:\Program Files (x86)\Google\chrome-win32\chrome.exe +0ms
  cypress:launcher found C:\Program Files (x86)\Google\chrome-win32\chrome.exe ? false +1ms
  cypress:launcher browser chromium not installed +1ms
  cypress:launcher checking one browser canary +0ms
  cypress:launcher looking up canary on win32 platform +0ms
  cypress:launcher exe path C:\Users\333765\AppData\Local\Google\Chrome SxS\Application\chrome.exe +0ms
  cypress:launcher found C:\Users\333765\AppData\Local\Google\Chrome SxS\Application\chrome.exe ? false +1ms
  cypress:launcher browser canary not installed +0ms
  cypress:server:cypress exiting with err { Error: We could not identify a known browser at the path you provided:
  `C:\Users\333765\AppData\Local\Google\Chrome\Application\chrome.exe`

The output from the command we ran was:
    at get (C:\Users\333765\AppData\Local\Cypress\Cache\3.3.2\Cypress\resources\app\packages\server\lib\errors.js:294:11)
    at Object.throwErr [as throw] (C:\Users\333765\AppData\Local\Cypress\Cache\3.3.2\Cypress\resources\app\packages\server\lib\errors.js:308:11)
    at C:\Users\333765\AppData\Local\Cypress\Cache\3.3.2\Cypress\resources\app\packages\server\lib\browsers\index.js:80:33
    at <anonymous>:null:null
    at process._tickCallback (internal/process/next_tick.js:188:7)

  isCypressErr: true,
  type: 'BROWSER_NOT_FOUND_BY_PATH',
  details: 'Version=74.0.3729.108' } +8s
We could not identify a known browser at the path you provided: `C:\Users\333765\AppData\Local\Google\Chrome\Application\chrome.exe`

The output from the command we ran was:

 Version=74.0.3729.108
  cypress:server:cypress about to exit with code 1 +1ms

@cypress-bot cypress-bot bot added the stage: needs investigating Someone from Cypress needs to look at this label Jul 10, 2019
@JayeshRGujar
Copy link
Author

JayeshRGujar commented Jul 10, 2019

@flotwig is there any documentation on how to run cypress test on remote machine.
Is it necessary to have cypress installed in remote machine?

@flotwig
Copy link
Contributor

flotwig commented Jul 11, 2019

Try this fix, it will probably work for you: #4260 (comment)

Here is a guide to running Cypress in CI: https://docs.cypress.io/guides/guides/continuous-integration.html

Here are examples for popular CI providers: https://docs.cypress.io/guides/guides/continuous-integration.html#Examples

@praveendvd
Copy link

I am having the same issue , any work around ?

@jennifer-shehane
Copy link
Member

Since this issue hasn't had activity in a while, we'll close the issue until we can confirm this is still happening. Please comment if there is new information to provide concerning the original issue and we'd be happy to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants