Skip to content

Commit ba38df9

Browse files
committed
docs(browser): use default navigation timeout
1 parent b88f652 commit ba38df9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/bcode-browser/skills/browser-execute

packages/bcode-browser/skills/browser-execute/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Common moves:
114114
115115
```js
116116
// Navigate.
117-
await session.navigate("https://example.com", { timeoutMs: 15_000 })
117+
await session.navigate("https://example.com")
118118
119119
// Evaluate JS in the page.
120120
const r = await session.Runtime.evaluate({
@@ -150,7 +150,7 @@ Imports work at any depth; pick whatever layout makes the project easiest to nav
150150
export async function scrapeTitles(session: any, urls: string[]) {
151151
const titles: string[] = []
152152
for (const url of urls) {
153-
await session.navigate(url, { timeoutMs: 15_000 })
153+
await session.navigate(url)
154154
const r = await session.Runtime.evaluate({ expression: "document.title", returnByValue: true })
155155
titles.push(r.result.value)
156156
}

0 commit comments

Comments
 (0)