In such cases, it is most helpfull to use the Firefox Document Inspector, which is invoked using F12 or CTRL+SHIFT+I. With it, you can point the mouse to a document element and it shows you the (generated) HTML source code that corresponds to that element.

In the case of the sidebar, this would be the following HTML, which you can then manipulate using the usual WWW::Mechanize::Firefox methods:

<select class="lists" style="z-index: -1;" name="speciesList" multiple +="" size="4"><option value="- Use All Species -"></option><option val +ue="0"></option><option value="1"></option><option value="2"></option +><option value="3"></option><option value="4"></option><option value= +"5"></option><option value="6"></option><option value="7"></option><o +ption value="8"></option><option value="9"></option><option value="10 +"></option><option value="11"></option><option value="12"></option><o +ption value="13"></option><option value="14"></option><option value=" +15"></option><option value="16"></option><option value="17"></option> +<option value="18"></option><option value="19"></option><option value +="20"></option><option value="21"></option><option value="22"></optio +n><option value="23"></option><option value="24"></option><option val +ue="25"></option><option value="26"></option><option value="27"></opt +ion><option value="28"></option><option value="-1"></option></select>

In reply to The Document Inspector, finding elements in page (Re^3: WWW::Mechanize::Firefox -- how to close firefox browser window) by Corion
in thread WWW::Mechanize::Firefox -- how to close firefox browser window by jbernest

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.