Cannot find firefox binary in PATH

Here are the steps to troubleshoot and fix this issue:

Cause: This error usually indicates that the tool/script could not find firefox on its default location

Option 1

Step 1 - In your test case before calling WebUI.openBrowser(), insert this line:

System.setProperty("webdriver.firefox.bin", "C:/Program Files/Mozilla Firefox/firefox.exe");
WebUI.openBrowser()

(Make sure to replace the path of firefox.exe to the path on your system)

Step 2 - Save and run test on Firefox browser

Step 3 - If the above steps works and you are able to run on Firefox then Goto Project > Settings > Desired Capabilities > Web UI > Firefox

And add the same settings as name value pair as shown in this image
NAME - webdriver.firefox.bin
VALUE - C:/Program Files/Mozilla Firefox/firefox.exe
Image URL - https://ibb.co/5rQzCmh

You can also try name firefox_bin instead of webdriver.firefox.bin

Step 4 - Save and close the settings

Step 5 - Goto the test case (script) and delete/comment the line added in Step 1

//System.setProperty("webdriver.firefox.bin", "C:/Program Files/Mozilla Firefox/firefox.exe")

Step 6 - Save and Run

Option 2

Step 1 - Check your firefox is installed on the default location

c:/Program Files (x86)/Mozilla Firefox

OR

C:\Program Files\Mozilla Firefox

Step 2 - Copy the path where your firefox.exe file is located

e.g. C:\Program Files\Mozilla Firefox\firefox.exe

Step 2 - Goto System Environment Variables, Select Path and click Edit

Step 3 - Add the location of firefox.exe file. Make sure not to change/delete existing values

e.g. C:\Program Files\Mozilla Firefox\

Step 4 - Restart Katalon Studio

Step 5 - Save and Run the test again