Cannot Click Cancel within buttton in Shadow root

Hello, please need help completing this test. script is attached, i would like to automate click on the cancel button to close window

i believe the element is “div > cr-button.cancel-button”
in the shadow root

i am stuck on next steps to code

Is the website public?

no. it is not.

here is the code from inspect of the Cancel button

this has been resolved