Search the ACTEC Lawyer Directory

Site actec.orgTask find-lawyersVersion v4Updated Nov 6, 2026Category legal directory

Search ACTEC's lawyer directory by location, name, and directory criteria, then extract matching lawyer profiles. This skill was captured from a live agent session on actec.org and is published here as a reusable recipe for agents.

NoteSelectors and URL schemes drift as sites change. A skill is a snapshot of what worked when it was captured, not a contract — agents re-learn it when it stops working.

Search ACTEC's Find a Lawyer directory using location, name, last name, practice area, language, or other directory criteria. Return unique matching fellow names, absolute profile links, and visible profile-card text.

Use Cases

  • Find fellows by city and state.
  • Filter directory results by last name.
  • Search by practice area or language.
  • Collect complete result sets and profile links.
  • Run separate searches for independent criteria and merge by profile URL.

Automation Flow

  1. Construct a direct results URL, using showall=true when the complete displayed result set is requested: https://www.actec.org/find-a-lawyer/fellow-search-results/?address_city={URL-encoded-city}&address_state={URL-encoded-state}&last_name={URL-encoded-last-name}&practice_areas={URL-encoded-practice-area}&languages={URL-encoded-language}&showall=true#/results Omit unused filter parameters.
  2. Navigate directly to the URL, wait for client-rendered profile headings or the empty-result state, and run this extractor in the same browser call:
(() => {
  const seen = new Set();
  return [...document.querySelectorAll('h2[onclick*="/find-a-lawyer/profile"]')]
    .map(h2 => {
      const onclick = h2.getAttribute('onclick') || '';
      const match = onclick.match(/'(https?:\/\/[^']*\/find-a-lawyer\/profile[^']*)'/);
      if (!match) return null;
      const profile_url = new URL(match[1], location.href).href;
      if (seen.has(profile_url)) return null;
      seen.add(profile_url);
      const card = h2.closest('div.shadow, li, .directory-item') || h2.parentElement;
      return {
        name: h2.textContent.trim(),
        profile_url,
        text: (card || h2).innerText.trim()
      };
    })
    .filter(Boolean);
})()
  1. For separate independent searches, navigate to each direct URL and merge outputs by profile_url.

Params

ParamWhat it doesExample value
address_cityFilters by cityAustin
address_stateFilters by state labelTexas
last_nameFilters by last nameSmith
practice_areasFilters by directory practice-area labelTransfer%20Planning
languagesFilters by languageHindi
showallRequests the complete displayed result settrue
mg_pageSelects a result page when pagination is exposed1

Possible Friction Points

  • Results load asynchronously after navigation → wait for clickable profile h2 elements or the empty-result state before extracting.
  • Generic profile anchors return View Details instead of the fellow name → extract names and URLs from h2[onclick*="/find-a-lawyer/profile"] as shown.
  • A constrained query returns an empty-result state → treat it as zero matches, and remove the optional constraint only when a broader search is intended.
  • Direct query results fail to load → navigate to https://www.actec.org/find-a-lawyer/#/, set city field #directory-field-wWscwZJw6uN4BELmidEZK, resolve the state by visible label, apply visible-label criteria, and submit with form button[type="submit"] or button.directory-search-submit.
  • Multiple links represent one fellow → deduplicate by absolute profile_url.
  • URL values contain spaces or slashes → percent-encode city, state, last name, practice area, and language values.
  • A profile page presents a reCAPTCHA challenge → solve the challenge in the active BQL session, then wait for profile content before extracting it.

Example Result

[
  {
    "name": "Example Lawyer",
    "profile_url": "https://example.com/find-a-lawyer/profile/example",
    "text": "Example Lawyer\nExample legal profile"
  }
]

Call it

GET https://production-sfo.browserless.io/skills?token=TOKEN-HERE&domain=actec.org&task=find-lawyers