<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Il 24/01/2015 13:41, Carlos Catucci ha
      scritto:<br>
    </div>
    <blockquote
cite="mid:CAEaPG9Q6MxVPHs24qRGc5=0U6rA06Bw2PP=Mw3o74HJ3BXae4w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra"><br>
          <div class="gmail_quote">Gia' provato, grazie comunque per il
            suggerimento, ma fino ad ora non ho trovato dove diavolo
            faccia la chiamata<br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    girellando mi sono imbattuto in questo:<br>
    <a class="moz-txt-link-freetext" href="http://jeanphix.me/Ghost.py/">http://jeanphix.me/Ghost.py/</a><br>
    <br>
    a dirti la verita' non l'ho mai visto prima, quindi non saprei<br>
    dirti se funziona veramente, ma le cose che fa nella pagina <br>
    di doc mi hanno fatto scendere una lacrima.<br>
    <br>
    tipo questa:<br>
    <br>
    <code class="python"><span class="comment"># Opens the web page</span>
      <br>
      ghost.open(<span class="string">'<a class="moz-txt-link-freetext" href="http://www.openstreetmap.org/">http://www.openstreetmap.org/</a>'</span>)
      <br>
      <br>
      <span class="comment"># Waits for form search field</span>
      <br>
      ghost.wait_for_selector(<span class="string">'input[name=query]'</span>)
      <span class="comment"><br>
        <br>
        # Fills the form</span>
      <br>
      ghost.fill(<span class="string">"#search_form"</span>, {<span
        class="string">'query'</span>: <span class="string">'France'</span>})
      <span class="comment"><br>
        <br>
        # Submits the form</span>
      <br>
      ghost.fire_on(<span class="string">"#search_form"</span>, <span
        class="string">"submit"</span>)
      <span class="comment"><br>
        <br>
        # Waits for results (an XHR has been called here)</span>
      <br>
      ghost.wait_for_selector( <span class="string">'#search_osm_nominatim
        .search_results_entry a'</span>)
      <span class="comment"><br>
        <br>
        # Clicks first result link</span>
      <br>
      ghost.click( <span class="string">'#search_osm_nominatim
        .search_results_entry:first-child a'</span>)
      <br>
      <br>
      <span class="comment"># Checks if map has moved to expected
        latitude</span>
      <br>
      lat, resources = ghost.evaluate(<span class="string">"map.center.lat"</span>)
      <span class="keyword"><br>
        <br>
        assert</span> float(lat.toString()) == <span class="number">5860090.806537</span></code><br>
    <br>
    magari puo' esserti d'aiuto per aggirare il problema<br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
  </body>
</html>