-
Notifications
You must be signed in to change notification settings - Fork 673
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
TestCafe can't find browsers on Window that are installed only for a current user #1688
Comments
+1 it doens't matter what I do reinstall add chrome to my path ( I can start it with chrome from terminal ), The testcafe package globally or locally installed will never see any listed browsers running testcafe -b Installed Firefox didn't pop up on -b reinstalled testcafe still no luck and your documentation really lacks on this issue or how to force a default browser. |
We've found the cause of the problem and we're going to fix it soon. |
I tried with portableChrome but no matter what browser I use it keeps saying unable to find browser. Even if I install the browser in my user folder |
do you mean the approach like |
Nope, but it might be a problem with my work computer as well, regarding permissions, I will try and install firefox in my user Folder and try again. |
but should it work with portable chrome'? Because that I tried and that also didn't work |
what the error do you see in the report? |
TypeError: Cannot read property 'trim' of undefined |
also tried with adding the executable, /c/Users/barrybadpak/chrome/GoogleChromePortable/chrome.exe |
Your syntax is not quite correct. It should be like this:
Note, it necessary to pass a path to a Chrome executable file. |
I already noticed that and tried that same error ( see previous message ) , then I got it to work with the nightmare browser. But then I took the trouble of getting a new computer here at work with full root acces, that one does run with chrome and all my test pass. On my own computer not with root acces ( work laptop ) they all fail with nightmare. Any ideas? |
Have you tried exactly the same syntax as in my example?
It should be a
Do you mean you are able to run tests in nightmare but they are failed? If yes please let me know what the errors do you see? |
ryx/testcafe-browser-provider-nightmare#7 In nightmare I googled my errors and I think it has something to do with the fact that the window size is too small and the buttons don't appear properly ( our site is not so responsive yet ) but preferable I will try your command. Because during devloping seeing the test is way better :) ( the screenshots don't tell me a lot ) |
testcafe "path: I tried this too but it says same error: testcafe "path: TypeError: Cannot read property 'trim' of undefined |
but using the path with a CD command does work |
That's because you should escape backslashes in Bash: http://wiki.bash-hackers.org/syntax/quoting. e.g. |
@AndreyBelym That worked! Though it started up the browser nothing seems to be happening. The full command im using now is testcafe "path: |
Just stating that this all works perfectly fine on a exactly the same machine thus with root access and the build in chrome browser |
A workarround for this if your user does not have access to program files, copy paste the chrome folder somewhere within your user folder and specify the path. "test": "testcafe path:C:\Users\barrybadpak\chrome\GoogleChromePortable\chrome.exe tests/**/*test.js -r list -S -s report/screenshots/ -e --selector-timeout 500000 --assertion-timeout 10000" don't use `` |
It's necessary if you have spaces in the path to the browser executable |
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow. |
See DevExpress/testcafe-browser-tools#128
The text was updated successfully, but these errors were encountered: