Mechanize - Click a table row to navigate to detail page
Diez B. Roggisch
deets at nospam.web.de
Fri Dec 25 05:36:20 EST 2009
Brian D schrieb:
> A search form returns a list of records embedded in a table.
>
> The user has to click on a table row to call a Javascript call that
> opens up the detail page.
>
> It's the detail page, of course, that really contains the useful
> information.
>
> How can I use Mechanize to click a row?
You can't, if there is javascript involved. You can try & use Firebug to
see what the javascript eventually calls, with which parameters. Then
construct that url based on the parameters in the table row's javascript
(which of course you have to parse yourself out of the code)
Diez
More information about the Python-list
mailing list