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

Notarization feature blocks geckodriver from running (since MacOS Catalina) #1629

Open
Ya3Sh opened this issue Oct 10, 2019 · 10 comments
Open

Comments

@Ya3Sh
Copy link

Ya3Sh commented Oct 10, 2019

I get this prompt on Mac while running test on FireFox.

  • Version: 0.25.0
  • Platform: macOS/Windows + Catalina 10.15
  • Firefox: 69.0.3
  • Selenium: 3.13.0

Stacktrace

“geckodriver” can’t be opened because Apple cannot check it for malicious software.

@whimboo
Copy link
Collaborator

whimboo commented Oct 11, 2019

@andreastt you have Catalina on your MacBook. Can you please have a look if the now signed binaries are causing this?

@andreastt andreastt changed the title “geckodriver” can’t be opened because Apple cannot check it for malicious software. geckodriver does not run on macOS Catalina Oct 11, 2019
@andreastt
Copy link
Contributor

I can confirm that the signed builds of geckodriver do not run on macOS Catalina. This because they are not notarised for some reason. We are tracking this in https://bugzilla.mozilla.org/show_bug.cgi?id=1588081.

@whimboo
Copy link
Collaborator

whimboo commented Oct 15, 2019

Does launching the binary also not work if the geckodriver archive has been downloaded via curl or wget?

@letam
Copy link

letam commented Oct 15, 2019

We can use geckodriver (or any other driver) on macOS if you explicitly open it in the OS prior to using it in your scripts. In Finder, go to the location of the binary and open it via the right-click menu. Click "Open" in the dialog that pops up. Close the terminal after doing so.

Maybe we can update the release notes with this info as well.

@whimboo
Copy link
Collaborator

whimboo commented Oct 16, 2019

This would not help in a CI environment where you would have to do that on various systems. Maybe the xattr command would help.

@captain-fox
Copy link

Installing geckodriver with brew solves this problem:
brew install geckodriver

@Danilushka
Copy link

Danilushka commented Jun 26, 2020

One simple workaround works right from the Finder:

  1. control-click on the geckodriver binary but keep the mouse button/touch pad pressed...
  2. remove finger from control key and press on option key...
  3. you will see the menu change...
  4. then select the "open" menu item with the mouse/touchpad and it will open in the terminal.
  5. close the terminal and you are done. You have given macOS permission to run that binary.
    Note: this works for all binaries Catalina rejects so this works for chromedriver for Chrome as well

@fifiteen82726
Copy link

One simple workaround works right from the Finder:

  1. control-click on the geckodriver binary but keep the mouse button/touch pad pressed...
  2. remove finger from control key and press on option key...
  3. you will see the menu change...
  4. then select the "open" menu item with the mouse/touchpad and it will open in the terminal.
  5. close the terminal and you are done. You have given macOS permission to run that binary.
    Note: this works for all binaries Catalina rejects so this works for chromedriver for Chrome as well

works for me, OSX 10.15.4

@imclint21
Copy link

Apparently npm -g install geckodriver works fine, but homebrew would be better IMO

@hilmandei
Copy link

One simple workaround works right from the Finder:

1. control-click on the geckodriver binary but keep the mouse button/touch pad pressed...

2. remove finger from control key and press on option key...

3. you will see the menu change...

4. then select the "open" menu item with the mouse/touchpad and it will open in the terminal.

5. close the terminal and you are done. You have given macOS permission to run that binary.
   Note: this works for all binaries Catalina rejects so this works for chromedriver for Chrome as well

it works on big sur also, thx

@whimboo whimboo changed the title geckodriver does not run on macOS Catalina Notarization feature blocks geckodriver from running (since MacOS Catalina) Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants