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
- 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. - Wait approximately 6 seconds for SPA hydration.
- In the same browser automation call, fill
input#corporation_name_txtwith{corporation-name}, submit withbutton[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/searchis 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 usesbutton[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 fourtdcells. 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.