05 · RPA API
Recipes
Short, complete scripts for common jobs such as logging in, filling forms and collecting data.
Pro plan1 min readUpdated November 2026
Log in, then check the result
Python
kryptix_open("shop-account-3") kryptix_goto("https://example.com/login") kryptix_fill("input[name=email]", "[email protected]") kryptix_fill("input[type=password]", PASSWORD) # real keystrokes kryptix_press_key("Enter") kryptix_wait_load() if kryptix_exists("text=Wrong password"): raise SystemExit("login failed") print(kryptix_inner_text(".account-name"))
Node.js
await kryptix_open("shop-account-3"); await kryptix_goto("https://example.com/login"); await kryptix_fill("input[name=email]", "[email protected]"); await kryptix_fill("input[type=password]", PASSWORD); // real keystrokes await kryptix_press_key("Enter"); await kryptix_wait_load(); if (await kryptix_exists("text=Wrong password")) throw new Error("login failed"); console.log(await kryptix_inner_text(".account-name"));
Read a list
Python
for row in kryptix_query_all("table.results tr td:first-child a", attr="href", limit=200): print(row["text"], row["attr"])
Node.js
for (const row of await kryptix_query_all("table.results tr td:first-child a", { attr: "href", limit: 200 })) console.log(row.text, row.attr);
Dropdown, checkbox, upload
Python
kryptix_select("#country", label="Türkiye") kryptix_check("#terms") kryptix_upload("input[type=file]", r"C:\data\invoice.pdf")
Node.js
await kryptix_select("#country", { label: "Türkiye" }); await kryptix_check("#terms"); await kryptix_upload("input[type=file]", "C:\\data\\invoice.pdf");
A click that opens a new tab
Python
kryptix_click("a[target=_blank]") kryptix_wait_new_tab(timeout=10) # the engine now drives that tab print(kryptix_title()) kryptix_close_tab() # closes the active tab; the browser picks a neighbour
Node.js
await kryptix_click("a[target=_blank]"); await kryptix_wait_new_tab({ timeout: 10 }); // the engine now drives that tab console.log(await kryptix_title()); await kryptix_close_tab(); // closes the active tab; the browser picks a neighbour
iframe, dialog, download
Python
with kryptix_frame("iframe#pay"): kryptix_fill("input[name=card-holder]", "A. Person") kryptix_dialog("accept") # confirm() boxes are accepted kryptix_click("text=Export") print(kryptix_wait_download(timeout=60)["path"])
Node.js
await kryptix_frame("iframe#pay", async () => { await kryptix_fill("input[name=card-holder]", "A. Person"); }); await kryptix_dialog("accept"); // confirm() boxes are accepted await kryptix_click("text=Export"); console.log((await kryptix_wait_download({ timeout: 60 })).path);
Find a selector by clicking
Python
print("click the element in the browser…") print(kryptix_pick()) # {'found': True, 'selector': '#buy', 'tag': 'button', …}
Node.js
console.log("click the element in the browser…"); console.log(await kryptix_pick()); // { found: true, selector: '#buy', tag: 'button', … }