selenium xpath apply condition on child element code example
Example 1: xpath text
//tag[text()='sometext']
Example 2: relative xpath sample
//input[@id=’user-message‘]
//tag[text()='sometext']
//input[@id=’user-message‘]