Hi Selenium Gurus,
I was trying to use Selenium script to click a lightning button on Salesforce. I can confirm that my xpath worked to locate the button, //li[@class=“visible”]//runtime_platform_actions-action-renderer[@title=“Edit”]//runtime_platform_actions-executor-page-reference//slot//slot//lightning-button//button in Chrome, however somehow the error msg says:
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {“method”:“xpath”,“selector”:“//li[@class=“visible”]//runtime_platform_actions-action-renderer[@title=“Edit”]//runtime_platform_actions-executor-page-reference//slot//slot//lightning-button//button”}

Could anyone guide me where was wrong by any chance?? Thank you!!!!