...
Start a new test case and navigate to the website https://reference.subject-7.com
While Silent Mode is active, click Capture on the platform
Click Login link on the page
A new step with Click command will be added on the platform. Notice that the XPath is absolute.
Switch to Interactive Mode and record the same link one more time
A new step with Click command will be added on the platform. Notice that the XPath is now relative
Stop the recorder by clicking Stop Recording on the platform
Copy the relative XPath from your step and go Generate an XPath for Login link. You can use Recorder to generate one then make small changes, or you can generate one manually. For example: //a[text()='LOGIN']
Add the XPath to XPath Templates by going to Repository > XPath Templates on the platform
Create a new XPath Template and replace LOGIN with $LABEL. Save the XPath Template and close it
...
Click Record on the platform to start recording this element using the XPath Template
Your new step will now
...
show the XPath which was used from your XPath Template
...