To check that the xPath you have constructed is correct and will locate the proper element, use the find function of developer tools.
-
In Developer tools, hit CTRL and the F key.
This will open the Find tool bar. You can paste your xPath in the tool bar and hit enter.
If the xPath is valid, it will find the element as follows.
If the xPath is invalid, the element is not found.