zaproxy: "The provided browser was not found" while it is effectively installed

Describe the bug On my M1 mac running Monterey, when I fire a browser through ZAP using “Manual Explore” I get an error saying “The provided browser was not found”, even though the selected browser is installed

This happens for Chrome and Safari, but not for Firefox

To Reproduce Steps to reproduce the behavior:

  1. Click “Manual Explore” in the “Quick Launch” pane
  2. On the line labeled “Explore your application” select “Chrome”
  3. Click the “Launch Browser” button
  4. See an error pop up saying “The provided browser was not found”

Expected behavior The selected browser - controlled by selenium - should start.

Software versions

  • ZAP: 2.11.1
  • OS: MacOS Monterey 12.1 on M1 CPU
  • Java Version : Unsure; java -version fails

Errors from the zap.log file

2022-01-04 10:36:08,628 [ZAP-BrowserLauncher] ERROR ExtensionQuickStartLaunch - unknown error: Chrome failed to start: was killed.

  (unknown error: DevToolsActivePort file doesn't exist)

  (The process started from chrome location /Applications/Google Chrome.app/Contents/MacOS/Google Chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'

System info: host: '***REDACTED***', ip: 'f***REDACTED***', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '11.1', java.version: '11.0.12'

Driver info: driver.version: ChromeDriver

Would you like to help fix this issue? Yes

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 26 (13 by maintainers)

Most upvoted comments

Seems to be Eval Villain add-on causing the issue.

There’s an option to automatically update the add-ons: https://www.zaproxy.org/docs/desktop/ui/dialogs/options/checkforupdates/

@thc202 Thanks for your help it’s indeed solved through a Add On update.

Maybe we can have a user interaction when Chrome doesn’t open that brings people directly to the marketplace? or even fully automate it:

If chromedriver != browser then update Selenium Addon

image

image

It looks like you just posted a screenshot and then deleted it? Which indicated that most of your add-ons are not on the latest version…

To the original issue: It looks like Chromedriver for M1 is a separate binary: https://chromedriver.storage.googleapis.com/index.html?path=97.0.4692.71/

Thanks for letting us know.

@psiinon Yes, I just updated Addon, and Firefox is working well! Thank you so much 😄

I think this should be fixed now. @hahwul can you confirm its working for you after you update the Eval Villian add-on?

Seems like an issue with the update workflow. It needs to be set to follow redirects. Will send an update soon.

@thc202 Oh, I just uninstall Eval Village Addon in ZAP, and Firefox works well.

@kingthorin Yes 😊

Are you able to start Firefox from the CLI?

Yes, there’s more info in Slack.