-
Notifications
You must be signed in to change notification settings - Fork 674
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
Browser instance not shutdown (but tab/window closes) #2226
Comments
`-k` kills concurrently when the tests complete Had to revert to testcafe version 0.17.2 to have chrome close on completion. Filed a bug with testcafe - DevExpress/testcafe#2226
Also experiencing this as well on v.19.1. Curious if there's a fix incoming. |
works without issues wit node 8
|
I'm seeing this as well. node.js v8.9.4 |
Hi @nmackey @graeme-plangrid @Sushindhran! Unfortunately, I can't reproduce issue on Macs here. I need time to make a debug build. Meanwhile, if you have some free time, you can check how the
If all is OK, you will have an object dump and the word 'done' printed in you console (with some delay). If it displays some error, share the object dump and the error here. |
@AndreyBelym Just tried this out to see if it worked and had the following error.
|
I'm seeing the same thing.
|
It works if I kill |
Trying out your solution @Sushindhran I get the same result with using ppid. Trying to fork testcafe to make the fix however doesn't work for me as the test scripts seem to require them to be ran on a Windows 10 machine which I do not have access to. Maybe one of the people from testcafe can make this fix and hopefully update their contribution docs to allow mac users to make contributions as well :) |
Seems like the issue is that |
Hi @frankmariette @Sushindhran, I didn't expect that the app path (
|
Ah, I see. Thanks @AndreyBelym. I'll try a different site. |
Hey @AndreyBelym I tried out using a different URL though lookup is unable to find anything so processList comes back empty. Here is the console output for the different URL.
|
@AndreyBelym - Tried the same with github.com
Edit: Did a
|
Thank you kindly @Sushindhran! Looks like |
Thanks @AndreyBelym. Looked into the Edit: Looks like Essentially replacing this line
|
@Sushindhran, it's great, I'm testing the fix on Linux! |
@AndreyBelym is it working ?? |
Hi @vigneshwar-v. it works. I've caught a cold, so the fix was delayed a bit, but I will try to ship it ASAP now. |
@AndreyBelym.. Sorry for being desperate... Take care man.. And thanks for the check-in |
Hi, @Sushindhran 's solution has worked for chrome but while testing in safari and firefox there are still some issues. Safari closes the tab, but not the browser and, in addition to that, the node process keeps running and I need to quit it with ctrl+c. Firefox closes the browser, but the same thing with the node process occurs. Any suggestions how to go about this? |
Hi @gregorycv, please check the |
@AndreyBelym thanks for your prompt reply. I am currently using TestCafe 0.22 on MacOS with Chrome 68.0.3440, Safari 11.1.1 and Firefox 61 Once TestCafe is installed and If I change that to On top of that - in case with Firefox and Safari node process does not terminate. Please let me know if that's an issue on my side or a more general problem. I'd gladly share any additional information if that helps. Thanks! |
The I've never reproduced the problem with hanging node process on macOS, so I will think about how to collect debug information for your case. TestCafe can't terminate Safari process in general, because all Safari windows and tabs in the system share the same process. It means that if TestCafe terminate the process, TestCafe will close also windows and tabs opened by a user, it would be too frustrating. Maybe it's possible to check if TestCafe's window is the only Safari window opened, and close it in this case. |
@AndreyBelym |
@AndreyBelym Should this ticket be re-opened? Btw I also see as part of that test run which may be of concern
|
This is happening for me on macOS Mojave using Chrome 70. |
@RichieAHB, could you please try to install |
Is that |
Yes, my mistake, you should try |
@AndreyBelym works like a charm 👌 - also, while I'm here, I've no idea how you got your drag and dropping working in chrome. Puppeteer and Selenium both failed on this count. Great work. |
@AndreyBelym - we're not that keen on requiring alpha versions on our team, so do you know (very roughly) when this might land? Thanks again. |
The current estimate for the |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow. |
Are you requesting a feature or reporting a bug?
Reporting a bug
What is the current behavior?
Browser window closes but browser not shutdown.
What is the expected behavior?
The browser instance should be shutdown.
How would you reproduce the current behavior (if this is a bug)?
Run any test suite (tried with multiple projects) with Chrome, Headless Chrome, Safari, Firefox (Headless Firefox seems to work)
With Chrome I did try moving back versions of testcafe to isolate when the bug was introduced and it seems to have been introduced between 0.17.2 and 0.18.0
This could be related to: #2194 and/or #2132
Provide the test code and the tested page URL (if applicable)
Tested page URL:
Test code
Specify your
The text was updated successfully, but these errors were encountered: