browser_go_forward

Browser Go Forward

Navigate forward to the next page in the browser's history stack. Equivalent to clicking the browser's forward button. Only works after using browser_go_back. Does nothing if there is no forward history.

Usage Example

Python SDK

POST /api/execute/browser_go_forward
curl -X POST \
 -H "Authorization: Bearer <token>" \
 -H "Content-Type: application/json" \
 -d '{
"context_id": "ctx_000001"
}' \
http://localhost:8080/api/execute/browser_go_forward

Node.js SDK

import { OwlBrowser } from '@olib-ai/owl-browser-sdk';

// Async usage
const ctx = await browser.createContext();
const contextId = ctx.context_id;
await browser.goForward({
    context_id: contextId
});

Parameters

Required

context_id string required

The unique identifier of the browser context (e.g., 'ctx_000001')

Optional

wait_until enum

load
documentload
networkidle
+1 more

When to consider navigation complete: '' (return immediately), 'load' (wait for load event, default), 'domcontentloaded' (wait for DOMContentLoaded), 'networkidle' (wait for network to be idle), 'fullscroll' (scroll full page to trigger lazy loading, then scroll back to top)

timeout string

Maximum time to wait for navigation in milliseconds. Only used when wait_until is set. Default: 30000 (30 seconds)

Response

Returns a JSON object with the operation result.

{
"success": true,
"result": <value>
}