Shadow DOM I am unable to click Register Inside a Nested Shadow DOM ( Please Help )

Hi Guys,

Hope everyone of you all are having a great day.

I am facing an issue to click an Icon and then the register Button in a Shadow DOM and it has kept me awake for hours now with No solution insight.

I tried to amend the below code but to no avail as it says getElementByXPath is a wrong method.

How to interact with shadow DOM in Selenium? – CosmoCode

Shadow DOM in Selenium (titusfortner.com)

Tried looking at the above but unfortunately their examples are pretty straight forward with IDs and Named elements.

A helping hand would be highly appreciated.

This is the webpage I am trying to test,

Configurator - homepage (mercedes-benz.co.uk)

It has a register button when we click the right hand side human like icon.

Thank you very much.