in reply to Issues Fetching URL with a variable token

Hi, looks like an XPath question more than Perl.

Maybe you can find the element by class name?

//a[contains(concat(' ', normalize-space(@class), ' '), ' push-motion0 + ') and contains(concat(' ', normalize-space(@class), ' '), ' js-onceLink +')]
^ untested, ymmv :-)


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: Issues Fetching URL with a variable token
by Petroza (Novice) on Oct 17, 2017 at 17:12 UTC

    Nope, going with class didn't seem to work, it gave me the same issue as before I tried with a//(contains(@ID = 'enterBtn')) too just in case but I hit the same Dead end.