Mechanize - Click a table row to navigate to detail page

B

Brian D

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?

Any ideas?
 
D

Diez B. Roggisch

Brian said:
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
 
B

Brian D

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

Thanks Diez.

You were correct. Fiddler provided the clue I needed. As you
described, the Javascript call constructed a URL containing the index
value of the table row. I was able to request that URL to obtain the
detail page.

Thank you very much for the help.

Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top