Able to identify the element on Console but when execute below mentioned script in eclipse getting error - javascript error: Cannot read properties of null (reading 'shadowRoot')
Code: JavascriptExecutor executor = (JavascriptExecutor) driver; // executor.executeScript("document.querySelector('[id^="ic"]').shadowRoot.querySelector('[id^="bold"]' > svg > path').click()");