http://127.0.0.1:8001/searchphone.html

Discussion in 'Chickenfoot Scripts' started by Graham, Nov 3, 2006.

  1. Graham

    Graham Developer Staff Member

    This searches the New Zealand whitepages to find the telephone number for a patient. It is called by the Firefox icon on the patient's "Contact &amp; Portal" details.<pre id="pre">nameinit = find(/NameInitial: (.*)/).groups[1];
    town = find(/Town: (.*)/).groups[1];
    city = find(/City: (.*)/).groups[1];

    with(openTab('http://www.whitepages.co.nz/', true)) {

    enter("Name",nameinit)
    enter("Location",town)
    pick(city)
    click("Search")

    }

    </pre>
  2. Graham

    Graham Developer Staff Member

    This script searches the http://www.whitepages.com to find a phone number in USA ( and maybe Canada ). It requires Build 194 beta-3 as it adds a couple of more fields to display to make the script easier to write.<pre id="pre">try { fname = find(/First Name: (.*)/).groups[1]; }
    catch(e) {
    fname = '';
    }
    try { lname = find(/Name: (.*)/).groups[1]; }
    catch(e) {
    lname = '';
    }
    try { zip = find(/Zip: (.*)/).groups[1]; }
    catch(e) {
    zip = '';
    }

    go('http://www.whitepages.com')
    uncheck("First Name");
    enter("First Name",fname);
    enter("Last Name",lname);
    enter("City or Zip/Area Code",zip);
    click('First Button');



    </pre>

Share This Page