How to select the first and second from field by XPath?

I want to always select the first and second form field by their position, and not by their ID (Reason: The ID changes between reloads). This is for Salesforce RPA automation.

So I want to tell the RPA software:

  • Put user name in first field
  • Put password in second field

PS: I have read How to get the Selenium IDE commands to work with dynamic ID's but there should be something simpler in my case…

Every element have multiple xpaths post the url and i try to detect a better xpath.