Navigate Puerto Rico Corporation Registry Search

Site rcp.estado.pr.govTask navigate-corporation-registry-searchVersion v9Updated Aug 10, 2026Category browser-automation

Open the Puerto Rico corporation registry's English search interface, submit a corporation-name query, and extract hydrated result-table rows. This skill was captured from a live agent session on rcp.estado.pr.gov and publishes here verbatim, exactly as an agent receives it.

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.

Purpose

Reach the hydrated Puerto Rico corporation registry search page, submit a corporation-name query, and return the rendered corporation result rows.

When to Use

Use when a task requires searching the Puerto Rico corporation registry by corporation name and reading the resulting table, especially when the English SPA must be hydrated before controls or results are available.

Workflow

  1. Navigate directly to https://rcp.estado.pr.gov/en/search/results (the observed English search-results route). The site may normalize this to /en/search; continue on the normalized route rather than navigating again.
  2. Wait approximately 6 seconds for SPA hydration.
  3. In the same browser automation call, fill input#corporation_name_txt with {corporation-name}, submit with button[type='submit'], wait about 7 seconds for the results, and evaluate the following extractor on the resulting page:
(() => {
  const rows = [...document.querySelectorAll("table tbody tr")];
  const data = rows
    .map((row) =>
      [...row.querySelectorAll("td")].map((cell) => cell.textContent.trim()),
    )
    .filter((cells) => cells.length >= 4)
    .map((cells) => ({
      name: cells[0] || "",
      status: cells[1] || "",
      type: cells[2] || "",
      registryNumber: cells[3] || "",
      detail: cells[4] || "",
    }));
  return {
    url: location.href,
    resultCount: data.length,
    results: data,
    first3: data.slice(0, 3),
  };
})();

Site-Specific Gotchas

  • This is a client-rendered SPA; the initial document can be present before the search controls are usable. Allow about 6 seconds after navigation before interacting or evaluating.
  • The shortest observed English route is /en/search/results; /en/search is a normalized/intermediate English route, and /es/search/ redirects or transitions to the English search route. Avoid the Spanish entry route when English is acceptable.
  • The corporation-name field uses the stable selector input#corporation_name_txt, and the search action uses button[type='submit'].
  • After submission, allow roughly 7 seconds for result rendering before extraction.
  • Results are table-based and should be read from table tbody tr; ignore rows with fewer than four td cells. The extractor maps the first five columns to name, status, type, registry number, and optional detail.
  • No reliable query-parameter or opaque-id URL shortcut was observed for submitting a name search; use the hydrated form flow.

Expected Output

An object containing the final URL, resultCount, all normalized corporation results, and a first3 preview. Each result has name, status, type, registryNumber, and optional detail fields.

Call it

GET https://production-sfo.browserless.io/skills?token=TOKEN-HERE&domain=rcp.estado.pr.gov&task=navigate-corporation-registry-search