- When I search with input a -- the page displays me a link with linktest html.
- When I search with input b -- the page displays me a link with linktest xml.
- When I search with input c -- the page displays me a link with linktest pdf.
I have different linktests for different inputs
on locating the link element, the xpath shows
//*[contains(text(),'html')]
//*[contains(text(),'xml')]
//*[contains(text(),'pdf')]
I need generic xpath. Tried by.tagName("a")
any other way other than preceeding and following logic.