Unable to launch browser after updating zap to latest version 2.14.0

993 views
Skip to first unread message

Amritha Vinod

unread,
Oct 16, 2023, 7:44:15 AM10/16/23
to ZAP User Group
Team,

Today i have updated zap to latest version and currently i am unable to launch the browser.

ZAP was working fine before and now after updating facing issue.

Please help on the same.

Error message shown is "The provided browser was not found".

Regards,
Amritha

Simon Bennetts

unread,
Oct 16, 2023, 7:49:00 AM10/16/23
to ZAP User Group
Hi Amritha,

Which browser are you trying to launch?
Which version do you have installed?

Cheers,

simon

Amritha Vinod

unread,
Oct 16, 2023, 8:21:31 AM10/16/23
to ZAP User Group
I have tried in both chrome and firefox browser.
same error is shown.
Version of zap: 2.14.0
OS is Windows 64

Please help on the same.

Simon Bennetts

unread,
Oct 16, 2023, 8:23:05 AM10/16/23
to ZAP User Group
Sorry, which versions of the browsers?


Cheers,

Simon

Amritha Vinod

unread,
Oct 16, 2023, 8:47:43 AM10/16/23
to ZAP User Group
Chrome version :117
Firefox version : 118

Amritha Vinod

unread,
Oct 17, 2023, 12:58:32 AM10/17/23
to ZAP User Group
Could you please provide a solution for the same.

Regards,
Amritha

thc...@gmail.com

unread,
Oct 17, 2023, 3:03:55 AM10/17/23
to zaprox...@googlegroups.com
Did you check the zap.log? That would contain useful info to potential
address the issue.

Best regards.

Amritha Vinod

unread,
Oct 17, 2023, 5:39:38 AM10/17/23
to ZAP User Group
PFB the log:
 [ZAP-Scanner-0] INFO  HostProcess - start host **** | DomXssScanRule strength MEDIUM threshold MEDIUM
2023-10-17 14:34:38,937 [ZAP-ActiveScanner-0] WARN  DomXssScanRule - Skipping scanner, failed to start browser: Could not start a new session. Response code 500. Message: Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line 

Build info: version: '4.14.0', revision: 'e5a96349ce'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '20.0.1'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Command: [null, newSession {capabilities=[Capabilities {acceptInsecureCerts: true, browserName: firefox, moz:debuggerAddress: true, moz:firefoxOptions: {args: [-headless], prefs: {browser.tabs.documentchannel: false, devtools.jsonview.enabled: false, dom.serviceWorkers.enabled: true, network.captive-portal-service.enabled: false, network.proxy.allow_hijacking_localhost: true, network.proxy.http: 127.0.0.1, network.proxy.http_port: 49538, network.proxy.no_proxies_on: , network.proxy.share_proxy_settings: true, network.proxy.ssl: 127.0.0.1, network.proxy.ssl_port: 49538, network.proxy.type: 1}}, unhandledPromptBehavior: ignore}]}

Would really appreciate if anyone could help on the same.

Simon Bennetts

unread,
Oct 17, 2023, 5:54:38 AM10/17/23
to ZAP User Group
"Expected browser binary location, but unable to find binary in default location"

That seems fairly clear.
You can configure the browser binary locations via Options / Selenium : https://www.zaproxy.org/docs/desktop/addons/selenium/options/

Cheers,

Simon
Message has been deleted

shangqi shen

unread,
Dec 7, 2023, 4:17:36 AM12/7/23
to ZAP User Group
This is a screenshot of the problem I encountered
thanks.

1701935201122.png

Simon Bennetts

unread,
Dec 7, 2023, 4:18:54 AM12/7/23
to ZAP User Group

shangqi shen

unread,
Dec 7, 2023, 8:16:49 PM12/7/23
to ZAP User Group
hi simon
I'm glad to receive your reply, but my problem is still not solved. How should I set the binary file path? 

Thanks,

shangqi shen

unread,
Dec 7, 2023, 8:46:46 PM12/7/23
to ZAP User Group
I'm not sure if the problem lies here, please help me, thank you very much.
1701999901231.png1701999874189.png

在2023年12月7日星期四 UTC+8 17:18:54<psi...@gmail.com> 写道:

Simon Bennetts

unread,
Dec 8, 2023, 4:20:53 AM12/8/23
to ZAP User Group
Its looks like you've selected a directory not a binary.
I would expect it to be something like: C:\Program Files\Mozilla Firefox\Firefox.exe"

Cheers,

Simon

shangqi shen

unread,
Dec 10, 2023, 8:14:36 AM12/10/23
to ZAP User Group
After I tried resetting the path, the problem still exists. How should I solve it? Thank you very much for your reply! !1702214017245.png

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line
Build info: version: '4.15.0', revision: '1d14b5521b'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '21.0.1'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Command: [null, newSession {capabilities=[Capabilities {acceptInsecureCerts: true, browserName: firefox, moz:debuggerAddress: true, moz:firefoxOptions: {prefs: {network.proxy.allow_hijacking_localhost: true, network.proxy.http: 127.0.0.1, network.proxy.http_port: 8080, network.proxy.no_proxies_on: , network.proxy.share_proxy_settings: true, network.proxy.ssl: 127.0.0.1, network.proxy.ssl_port: 8080, network.proxy.type: 1}}}]}]
No client: null

psiinon

unread,
Dec 10, 2023, 9:10:24 AM12/10/23
to zaprox...@googlegroups.com
It will be the same problem as before.
Check the path it right.
Check the exe is actually there 

--
You received this message because you are subscribed to the Google Groups "ZAP User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zaproxy-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zaproxy-users/badf7d77-4a3d-4651-8c88-6421e06933f7n%40googlegroups.com.

shangqi shen

unread,
Dec 10, 2023, 9:49:58 AM12/10/23
to ZAP User Group
Is it because the software does not support Windows 11 system? There is no error in my path setting, and firefox.exe also exists in the folder.

1702219467865.png1702219738696.png

Simon Bennetts

unread,
Dec 11, 2023, 4:12:03 AM12/11/23
to ZAP User Group
ZAP runs fine on Windows 11.

Can you post the latest error you are getting in full.
Also, what happens if you run "C:\Program Files\Mozilla Firefox\firefox.exe" from the command line?
Reply all
Reply to author
Forward
0 new messages