The correct xpath notation is xpath=(//*[text()[contains(.,'Download')]])[6]
, so in your case xpath=(//*[text()[contains(.,'Download')]])[${COUNTER}]
See FAQ: How can I find the n-th link with a specific text with XPath?
The correct xpath notation is xpath=(//*[text()[contains(.,'Download')]])[6]
, so in your case xpath=(//*[text()[contains(.,'Download')]])[${COUNTER}]
See FAQ: How can I find the n-th link with a specific text with XPath?