from notte_sdk import NotteClient, actionsnotte = NotteClient()with notte.Session() as session: # go to google _ = session.execute( actions.Goto( url="https://www.duckduckgo.com" ) ) # fill the search bar with our query _ = session.execute( actions.Fill( value="dog pictures", selector='internal:role=combobox[name="Search with DuckDuckGo"i]', ) )
Copy
Ask AI
{ "action": { "value": {}, "type": "form_fill", "category": "Special Browser Actions", "description": "Fill a form with multiple values. Important: If you detect a form requesting personal information, try to use this action at first, and otherwise use the regular fill action. CRITICAL: If this action fails once, use the regular form fill instead." }, "success": true, "message": "<string>", "session": { "session_id": "<string>", "timeout_minutes": 123, "created_at": "2023-11-07T05:31:56Z", "last_accessed_at": "2023-11-07T05:31:56Z", "status": "active", "closed_at": "2023-11-07T05:31:56Z", "duration": "<string>", "steps": [ {} ], "error": "<string>", "credit_usage": 123, "proxies": false, "browser_type": "chromium", "use_file_storage": false, "network_request_bytes": 0, "network_response_bytes": 0 }, "data": { "markdown": "<string>", "images": [ { "url": "<string>", "category": "favicon", "description": "<string>" } ], "structured": { "success": true, "error": "<string>", "data": {} } }, "exception": "<string>"}
sessions
Page Execute
POST
/
sessions
/
{session_id}
/
page
/
execute
python
Copy
Ask AI
from notte_sdk import NotteClient, actionsnotte = NotteClient()with notte.Session() as session: # go to google _ = session.execute( actions.Goto( url="https://www.duckduckgo.com" ) ) # fill the search bar with our query _ = session.execute( actions.Fill( value="dog pictures", selector='internal:role=combobox[name="Search with DuckDuckGo"i]', ) )
Copy
Ask AI
{ "action": { "value": {}, "type": "form_fill", "category": "Special Browser Actions", "description": "Fill a form with multiple values. Important: If you detect a form requesting personal information, try to use this action at first, and otherwise use the regular fill action. CRITICAL: If this action fails once, use the regular form fill instead." }, "success": true, "message": "<string>", "session": { "session_id": "<string>", "timeout_minutes": 123, "created_at": "2023-11-07T05:31:56Z", "last_accessed_at": "2023-11-07T05:31:56Z", "status": "active", "closed_at": "2023-11-07T05:31:56Z", "duration": "<string>", "steps": [ {} ], "error": "<string>", "credit_usage": 123, "proxies": false, "browser_type": "chromium", "use_file_storage": false, "network_request_bytes": 0, "network_response_bytes": 0 }, "data": { "markdown": "<string>", "images": [ { "url": "<string>", "category": "favicon", "description": "<string>" } ], "structured": { "success": true, "error": "<string>", "data": {} } }, "exception": "<string>"}
default:Fill a form with multiple values. Important: If you detect a form requesting personal information, try to use this action at first, and otherwise use the regular fill action. CRITICAL: If this action fails once, use the regular form fill instead.