How do I get XPath elements?

How can I get XPath elements?

To get XPath elements, navigate to the First name tab and right click on Inspect. When you inspect the web element, you will see an input tag as well as attributes such as class and id. Create an XPath using the id and these properties to locate the first name field.