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 & 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>
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>