Not able to locate lighting button element on Salesforce

66 views
Skip to first unread message

Zhang Zhao

unread,
Jun 23, 2021, 11:28:04 PM6/23/21
to Selenium Users
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”}

Screen Shot 2021-06-21 at 2.35.09 PM.png
Could anyone guide me where was wrong by any chance?? Thank you!!!!
Reply all
Reply to author
Forward
0 new messages