It's closing for no reason
mateusgalasso opened this issue ยท 40 comments
Hey! Can you check which version are you running under composer.lock?
Hey! Can you check which version are you running under composer.lock?
0.3.0
Hey! Can you check which version are you running under composer.lock?
"magic-test/magic-test-laravel": "^0.3.0",
When this happens to me (with Java and Selenium) it is because of the different version between the browser and the driver.
@stonkeep hmmm. Which version of Chrome are you running?
I am having the same issue, when running magic, the browser appears for a couple hundred milliseconds and immediately disappears. If I insert a few assertions, the browser will stay open long enough to run the assertions, but as soon as it hits the magic function, the browser disappears.
I am running this in a Laragon (4.0.16.190914) environment on Windows.
Apache 2.4.47 win64 VS16
PHP 7.4.19 VC15
MagicTest 0.14
Laravel 8.38.0
Chrome Driver 90.0.4430.24
Chrome 90.0.4430.212
Do you have any suggestions for where I can work to start troubleshooting this?
Any assistance would be greatly appreciated.
Any updates for this issue? I am experiencing the same thing.
@stonkeep hmmm. Which version of Chrome are you running?
The Last one
@fs-csmith please update your Magic Test dependency
Any updates for this issue? I am experiencing the same thing.
Please make sure you're on the latest version of the package. What do you see on composer list?
@stonkeep hmmm. Which version of Chrome are you running?
The Last one
I need to know the exact version please
@fs-csmith please update your Magic Test dependency
Thank you for your reply. To the best of my knowledge I am on the most current versions. Chrome recently updated so that version has changed since my last post. Currently, I am running:
Laragon (4.0.16.190914) environment on Windows.
Apache 2.4.47 win64 VS16
PHP 7.4.19 VC15
Laravel 8.38.0
Chrome Driver 90.0.4430.24
Chrome 91.0.4472.77
MagicTest 0.14
To eliminate the Laragon environment, I tried running on php artisan serve and got the same behavior. I appreciate your help.
To be more clear when running magic in my terminal, I get a message DevTools listening on ws://.... followed by a handful of errors
[10:25:53.854] USB: usb_device_handle_win.cc:1058 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
I initially ignored the errors as they seemed to be issues with the chromedriver that just needed to be cleaned up by them, but perhaps it is applicable to this issue?
And, I get the error even when no devices are connected.
@fs-csmith I got access to a Windows computer and I'll try to reproduce your bug. Thanks for following the thread!
Hello @mateusjatenee ,
Is there any update on this issue?
Thank You.
Hey Mohamed,
I've tried it on Windows and it worked fine. My time is a bit tight to pursue this further on Windows since I don't use it, so any help is very much appreciated.
@mateusjatenee I have the same issue, I just see the chrome window briefly and then it closes.
Chrome version is 93.0.4577.82 (Official Build) (64-bit). Version of magic test is 0.14
@mateusjatenee I have the same issue, I just see the chrome window briefly and then it closes.
Chrome version is 93.0.4577.82 (Official Build) (64-bit). Version of magic test is 0.14
Thanks Daniel. Are you on Windows?
@mateusjatenee I have the same issue, I just see the chrome window briefly and then it closes.
Chrome version is 93.0.4577.82 (Official Build) (64-bit). Version of magic test is 0.14Thanks Daniel. Are you on Windows?
Yes I am on windows, fresh laravel application. It opens, i see the default laravel welcome page and then it closes. Feels like it doesn't 'detect' the magic call
I have an example repository that didn't work for me and a colleague. Maby it's handy for you debugging: https://github.com/DanielvdSpoel/magictesten
is there any update on this? I having same issue here, the browser suddenly closed, I using same Chrome driver version with my installed Chrome 95.0.4638.54
and ChromeDriver 95.0.4638.17
it just a bit different with build number
@mateusjatenee do you have a update on this?
I haven't tested it again
@stonkeep @DanielvdSpoel Sorry, I don't have a Windows machine to test. I will ask a few colleagues to maybe reproduce the error and help me figure out what it is.
Same problem here. I am using Laragon and Laravel 8 on Windows. I tried an older chromedriver... When i start magic chrome appears and disappears two times