Java & Selenium Web Scraping click button doesent work

Hello guys,

I am currently using Java Selenium to code a script that will automatically click and fill types for me. I have written a code line which does not work. I want it to click on a button, but it does not do this. When I run the application the bot scrolls down to the button but does not click on the button. When you click on the button a new page should be opened. I do not know what I did wrong can someone help me? Thanks for any answer!

My error code:
Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 108.0,
moz:accessibilityChecks: false, moz:buildID: 20221208122842, moz:debuggerAddress: 127.0.0.1:38233,
moz:geckodriverVersion: 0.32.0, moz:headless: false, moz:platformVersion: 10.0, moz:processID: 15732, moz:profile: C:UsersOKANAY~1AppDataL…, moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, moz:windowless: false, pageLoadStrategy: normal, platformName: WINDOWS, proxy: Proxy(), se:cdp:
ws://127.0.0.1:38233/devtoo…, se:cdpVersion: 85.0, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}

Element: [[FirefoxDriver: firefox on WINDOWS (dae2e314-a112-48de-ada9-bd6ffce54a94)]
-> xpath: `/html/body/main/div[8]/div/section/div/div[1]/div[2]/div[3]/div[1]/div/div[5]/a]
Session ID: dae2e314-a112-48de-ada9-bd6ffce54a94
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)

I tried to do it with “findelement css selector” instead of “findelement xpath”. I couldn’t implement it via a link because there are several buttons called “Order Now”. I did a lot of research but didn’t find anything else.