Facing Issue with click element with xpath in Sales force

Leads

I’m new to robot framework and automation testing. I have to click the leads. But its giving element with locator not found. Can any one help?

Code:

click element  xpath://a[contains(text(),'Leads')]

Error:

Hi,

Hard to say.

  • Open the website in chrome
  • go to the side that should contain your element
  • Press F12
  • press ctrl + f which opens a search bar.
  • Insert your locator for the element and sie if it lights up. If yes, we should investigate. If not, then the locator is wrong

Regards
Markus