Mechanize - Click a table row to navigate to detail page

S.Selvam s.selvamsiva at gmail.com
Fri Dec 25 14:09:55 EST 2009


On Fri, Dec 25, 2009 at 4:06 PM, Diez B. Roggisch <deets at nospam.web.de>wrote:

> 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)
>

In firefox you can install LiveHttp Headers addon and can find the needed
url.

>
> Diez
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Regards,
S.Selvam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091226/5f8145c1/attachment-0001.html>


More information about the Python-list mailing list