A relative XPath starts at an element that is found by other means code example
Example 1: contains text xpath
//*[contains(text(),'ABC')]
Example 2: relative xpath sample
//input[@id=’user-message‘]
//*[contains(text(),'ABC')]
//input[@id=’user-message‘]