I am using robot framework for automation and want to click on element print button(Please refer attach image for Html Code) on Shadow Dom. I have created variable using js path but it is not working. Can any one help to find exact xpath of the element
*** Variables ***
${chrome} chrome
${print} ${printIRCF1}
${JSPath}= document.querySelector('print-preview-app').shadowRoot
... .querySelector('print-preview-sidebar')
... .querySelector('print-preview-button-strip').shadowRoot
... .querySelector('controls')
... .querySelector('action-button').shadowRoot
Can any one help me with the correct JsPath or with xpath so that I can use it in my code