in reply to Mechanize can't find a link with hidden text.

Have you tried looking at the page source that Mechanize downloads to verify that you actually have links to follow? It looks like it's in the page source, so you should verify that you got the page.

  • Comment on Re: Mechanize can't find a link with hidden text.

Replies are listed 'Best First'.
Re^2: Mechanize can't find a link with hidden text.
by efedotov (Initiate) on Mar 04, 2015 at 06:02 UTC
    I think that's the problem. I just rechecked my entire script, and it's not working as expected. So it's more than likely the rest of the code. Can you tell me how to view the page source?
      So I fixed it. There was a bug with other code regarding the date, because when I checked it an hour ago, it was yesterday, then the date changed the next hour.

        You can look at the response your agent got and see if it has the web page you expect by doing:

        print $agent->content();

        I just used a browser and did "view source". Virtually all browsers have that option, but sometimes you have to do something like "enable developer menus" or something like that.

        Also, did you fix it, or did it fix itself because you're not at a date boundary? For just following a link in a page you already have that doesn't seem like it would be an issue for that page.