sarP has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, I am running a script to automate an online tool. One of the pages as I navigate has a "+" sign to expand some more options. I need to access a button from within the expanded options. Could anyone suggest how to expand "+" sign. The source code for this does not have an associated name/class/value. The source code is:
<li class="closed"><a href="#" class="parent" onclick="return door(thi +s);">Pathways<font id="Pathwaystd" size="1" face="Verdana" color="#80 +0000">&nbsp;&nbsp;&nbsp;</font></a><ul class="item"><li><table width= +'90%'> <TR class="summary_row"><td class="summary_row" width='35%'><input typ +e="checkbox" onclick="countGroup('Pathways');" name="summaryList" id= +"Pathways" value="48" > <font color="red">KEGG_PATHWAY</font> &nbsp;& +nbsp;</b> </td><td class="summary_row" width='10%'>&nbsp;&nbsp;&nbsp; + 14.3%&nbsp;&nbsp;&nbsp;</td><td class="summary_row" width='10%'>1</t +d><td class="summary_row" width='10%'>&nbsp; <input type="button" onc +lick="getChartReport('48');" value="Chart" name="B5" ></td><td class= +"summary_row" width='35%'> <img height='12' src='graphics//two_tone_2 +_a.jpg' style="cursor:pointer" onclick="getAnnotationReport('48');" w +idth="60.57142857142857" size="12" color="#008000"> </td></tr>
The + sign is for the "Pathways" within which is KEGG pathway I actually need. The problem is the page has several other buttons with value "chart" and name "B5" but with different "onclick" functionality. Please HELP!

Replies are listed 'Best First'.
Re: Win32::IE::Mechanize - object tree expansion
by Anonymous Monk on May 06, 2011 at 00:46 UTC