Google Chrome Opens And Closes Immediately Mac



Need help?‎ > ‎

Chrome doesn't start or crashes immediately

This often happens when running ChromeDriver/Chrome using a special test harness (perhaps an IDE) or continuous build system (e.g., Jenkins).
First, try launching the same Chrome binary that your test uses from a normal user command prompt (check your chromedriver.log file to see what Chrome is being used). If you are passing any special command line switches/arguments to Chrome, make sure to include those too. If Chrome fails to start correctly, you need to fix your installation of Chrome (perhaps by re-installing).
Assuming you are able to run Chrome from a command prompt, your next step should be to see if the same problem occurs when running your test in a simple testing environment (preferably launching the test binary/script directly from a normal user's command prompt). You should also check that you are able to launch Chrome directly from your test (without using WebDriver/ChromeDriver). For example, in Java, you may use the ProcessBuilder API to start the Chrome binary directly. If your test exhibits the same problem even in a simple testing environment, file a new issue with instructions on how to reproduce the problem.
Otherwise, if the problem only occurs in your special testing environment:
Using Chrome's alternate installer. This will install Chrome for all users. This often fixes problems if you are running Selenium as a background service.
A common cause for Chrome to crash during startup is running Chrome as root user (administrator) on Linux. While it is possible to work around this issue by passing '--no-sandbox' flag when creating your WebDriver session, such a configuration is unsupported and highly discouraged. Please configure your environment to run Chrome as a regular user instead.
If none of these solutions fixes the problem, file a new issue with instructions on how to reproduce the problem. If your issue only occurs in a special, uncommon testing environment, be aware that the ChromeDriver devs may choose not to investigate/resolve your issue.
  • Tired of Google Chrome launching every time you restart or log in to your Mac? If Chrome is your browser of choice, it can be convenient. If you tried Chrome but switched back to Safari, like I recently did, it can be annoying. I still want to be able to use Chrome from time to time, but I don't want it opening on login or launching on startup. Luckily, there's a super simple way to.
  • If Google Chrome won’t open or keeps crashing on your Windows or Mac machines, then there might be many possible conflicts and you need to troubleshoot the problem with different solutions. For some people, a fresh new install of Chrome might do the trick and for others, they might have to follow the longer route of playing with the user data.
  • I am on Mac OS X using selenium with python 3.6.3. This code runs fine, opens google chrome and chrome stays open.: chromeoptions = Options chromeoptions.binarylocation='./Google Chrome'.
Closes

Google Chrome Opens And Closes Immediately Mac Version

Chrome

Google Chrome Opens And Closes Immediately Mac Download

Google chrome opens and closes immediatelyGoogle keeps closing

Google Chrome Crashing Immediately

Chrome closes immediately after opening it After opening Google Chrome, I cannot do anything because it immediatly closes again and I'm not able to use it. I tried uninstalling it and reinstalling it but the issue stays the same.