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

Cypress Runner doesn't show options to run in different browsers on Windows 8 #8541

Closed
gitbhat opened this issue Sep 10, 2020 · 8 comments
Closed
Labels
topic: browser detection Local browser is not detected

Comments

@gitbhat
Copy link

gitbhat commented Sep 10, 2020

Current behavior:

Cypress Runner doesn't show options to run in different browsers

Desired behavior:

once we get the Test runner , on the right hand side we see a drop down which allows us to select different browsers but i dont see this option

Set up:
refering to the below link
https://docs.cypress.io/guides/references/troubleshooting.html#Windows

i see that my program files have the chrome exe in the expected path, this has not solved the issue

Screen shots are attached
[
cypress runner
chrome

](url)

@J-RZ
Copy link

J-RZ commented Sep 10, 2020

I am having the exact same problem and I have spent so many hours on this because I need to run a script headed using chrome from CI, by any chance are you opening it from another server?
For me when I run the command to open cypress locally works just fine and i see chrome but when I run the exact same command from Jenkins then I only see Electron listed

@gitbhat
Copy link
Author

gitbhat commented Sep 14, 2020

I am having the exact same problem and I have spent so many hours on this because I need to run a script headed using chrome from CI, by any chance are you opening it from another server?
For me when I run the command to open cypress locally works just fine and i see chrome but when I run the exact same command from Jenkins then I only see Electron listed

i run it from the test runner directly, but when i tried to run using command headless it worked but headed didn't work for me

@bahmutov
Copy link
Contributor

Cypress tries to detect the installed browsers (it comes only with Electron), and if it cannot detect a browser, it is not listed. Could you look at the advice we give for launching browsers and try debugging it https://docs.cypress.io/guides/references/troubleshooting.html#Launching-browsers

@bahmutov bahmutov added the topic: browser detection Local browser is not detected label Sep 15, 2020
@gitbhat
Copy link
Author

gitbhat commented Sep 16, 2020

i tried this and i got the below error , i have all browsers in the system still i get this error , can some one help


error

@bahmutov bahmutov added the stage: needs information Not enough info to reproduce the issue label Sep 16, 2020
@bahmutov
Copy link
Contributor

Please read our debugging browser detection guide and run Cypress with those flags and paste here the debug log #8541 (comment)

@J-RZ
Copy link

J-RZ commented Oct 21, 2020

Cypress tries to detect the installed browsers (it comes only with Electron), and if it cannot detect a browser, it is not listed. Could you look at the advice we give for launching browsers and try debugging it https://docs.cypress.io/guides/references/troubleshooting.html#Launching-browsers

In my case I just solved it by adding C:\Windows\System32\wbem in my PATH in Jenkins using withEnv, I do have it in the environment variables of the remote server but for some reason that alone did not work.

@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.

@jennifer-shehane jennifer-shehane removed the stage: needs information Not enough info to reproduce the issue label Feb 26, 2021
@sunilkumar-git14
Copy link

i tried this and i got the below error , i have all browsers in the system still i get this error , can some one help

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: browser detection Local browser is not detected
Projects
None yet
Development

No branches or pull requests

5 participants