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
It's not a solution to your problem, but have you tried playwright instead of selenium? For me playwright is great, it works with .NET, Java, Python, JS and TS
I actually am highly interested in jumping on the Playwright bandwagon; been hearing about it for a while and am looking to get into it soon. I just want to take the humble route of learning the more common tool first since it is still widely recognized as one of the basic requirement for test automation positions. Plus I want to comprehend the challenges at the beginning of the journey to eventually have an easier time working with the simpler tools later on.