Skip to content

Browser Automation

Full web automation: navigation, interaction, data extraction, screenshots, and performance monitoring.

38 modules

ModuleDescription
एलिमेंट क्लिक करेंपेज पर एलिमेंट पर क्लिक करें
ब्राउज़र बंद करेंब्राउज़र इंस्टेंस बंद करें और संसाधन मुक्त करें
कंसोल कैप्चर करेंब्राउज़र कंसोल लॉग्स कैप्चर करें (त्रुटियां, चेतावनियां, जानकारी)
कुकीज़ प्रबंधित करेंब्राउज़र कुकीज़ प्राप्त करें, सेट करें, या साफ़ करें
डायलॉग संभालेंअलर्ट, कन्फर्म और प्रॉम्प्ट डायलॉग संभालें
फ़ाइल डाउनलोड करेंब्राउज़र से फ़ाइल डाउनलोड करें
ड्रैग और ड्रॉपएलिमेंट्स को ड्रैग और ड्रॉप करें
डिवाइस अनुकरण करेंडिवाइस का अनुकरण करें या कस्टम व्यूपोर्ट सेट करें
ब्राउज़र सुनिश्चित करेंयह सुनिश्चित करें कि ब्राउज़र सत्र मौजूद है (पुनः उपयोग या लॉन्च करें)
JavaScript निष्पादित करेंपेज संदर्भ में JavaScript कोड निष्पादित करें
डेटा निकालेंपेज से संरचित डेटा निकालें
एलिमेंट्स खोजेंपेज में एलिमेंट्स खोजें और एलिमेंट ID सूची लौटाएं
फॉर्म भरेंस्वचालित फ़ील्ड पहचान के साथ स्मार्ट फॉर्म भरना
फ्रेम स्विच करेंiframe या फ्रेम संदर्भ पर स्विच करें
जियोलोकेशन मॉक करेंब्राउज़र जियोलोकेशन मॉक करें
URL पर जाएंविशिष्ट URL पर नेविगेट करें
एलिमेंट होवर करेंएलिमेंट पर माउस होवर करें
ब्राउज़र लॉन्च करेंPlaywright के साथ नया ब्राउज़र इंस्टेंस लॉन्च करें
इतिहास नेविगेट करेंब्राउज़र इतिहास में नेविगेट करें (पीछे, आगे, पुनः लोड)
नेटवर्क मॉनिटरनेटवर्क अनुरोधों की निगरानी और इंटरसेप्ट करें
पृष्ठों की सूचीसभी खुले ब्राउज़र पृष्ठों/टैब की सूची
पृष्ठांकन करें और निकालेंपृष्ठों के माध्यम से स्वचालित रूप से पृष्ठांकन करें और डेटा निकालें
PDF जनरेट करेंवर्तमान पेज से PDF जनरेट करें
प्रदर्शन मेट्रिक्सब्राउज़र प्रदर्शन मेट्रिक्स एकत्र करें
कुंजी दबाएंकीबोर्ड कुंजी दबाएं
क्रियाएं रिकॉर्ड करेंयूज़र क्रियाओं को वर्कफ़्लो के रूप में रिकॉर्ड करें
ब्राउज़र जारी करेंब्राउज़र सत्र जारी करें (केवल तभी बंद करें जब स्वामित्व में हो)
स्क्रीनशॉट लेंवर्तमान पेज का स्क्रीनशॉट लें
पेज स्क्रॉल करेंपेज को एलिमेंट, स्थिति, या दिशा में स्क्रॉल करें
विकल्प चुनेंड्रॉपडाउन एलिमेंट से विकल्प चुनें
DOM स्नैपशॉटवर्तमान पृष्ठ का DOM स्नैपशॉट कैप्चर करें
ब्राउज़र स्टोरेजlocalStorage और sessionStorage एक्सेस करें
टैब्स प्रबंधित करेंब्राउज़र टैब बनाएं, स्विच करें, और बंद करें
ब्राउज़र ट्रेसब्राउज़र प्रदर्शन ट्रेस शुरू, रोकें, या सहेजें
टेक्स्ट टाइप करेंइनपुट फ़ील्ड में टेक्स्ट टाइप करें
फ़ाइल अपलोड करेंफ़ाइल इनपुट एलिमेंट पर फ़ाइल अपलोड करें
व्यूपोर्ट सेट करेंब्राउज़र व्यूपोर्ट आकार प्राप्त करें या सेट करें
प्रतीक्षा करेंअवधि के लिए या एलिमेंट प्रकट होने तक प्रतीक्षा करें

Modules

एलिमेंट क्लिक करें

browser.click

पेज पर एलिमेंट पर क्लिक करें

Parameters:

NameTypeRequiredDefaultDescription
click_methodselect (text, button, id, selector)NotextChoose the easiest way to identify the element you want to click
targetstringNo-e.g. "Submit", "Next Page", "Login"
selectorstringNo-CSS selector, XPath, or text selector
buttonselect (left, right, middle)NoleftWhich mouse button to use for clicking
click_countnumberNo1Number of clicks (2 for double-click, 3 for triple-click)
forcebooleanNoFalseForce click even if element is not actionable (covered, invisible)
modifiersarrayNo-Modifier keys to hold during click
timeoutnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
browserobjectBrowser session (pass-through for chaining)
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
selectorstringऑपरेशन स्थिति (सफलता/त्रुटि)
methodstringClick method used

Example: Example

yaml
click_method: text
target: Submit

Example: Example

yaml
click_method: id
target: login-button

Example: Example

yaml
click_method: selector
selector: #submit-button

ब्राउज़र बंद करें

browser.close

ब्राउज़र इंस्टेंस बंद करें और संसाधन मुक्त करें

Parameters:

NameTypeRequiredDefaultDescription
_no_paramsbooleanNoTrueThis module requires no parameters

Output:

FieldTypeDescription
statusstringब्राउज़र इंस्टेंस बंद करें
messagestringब्राउज़र इंस्टेंस बंद करें

Example: Example

yaml

कंसोल कैप्चर करें

browser.console

ब्राउज़र कंसोल लॉग्स कैप्चर करें (त्रुटियां, चेतावनियां, जानकारी)

Parameters:

NameTypeRequiredDefaultDescription
levelselect (all, error, warning, info, log)NoallFilter console messages by level
timeoutnumberNo5000Maximum time to wait in milliseconds
clear_existingbooleanNoFalseClear existing messages before capturing

Output:

FieldTypeDescription
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
messagesarrayऑपरेशन स्थिति (सफलता/त्रुटि)
countnumberऑपरेशन स्थिति (सफलता/त्रुटि)

Example: Example

yaml
timeout: 3000

Example: Example

yaml
level: error
timeout: 5000

कुकीज़ प्रबंधित करें

browser.cookies

ब्राउज़र कुकीज़ प्राप्त करें, सेट करें, या साफ़ करें

Parameters:

NameTypeRequiredDefaultDescription
actionselect (get, set, clear, delete)Yes-Action to perform on the storage
namestringNo-Name of the cookie
valuestringNo-Value of the cookie
domainstringNo-Cookie domain
pathstringNo/Cookie path
securebooleanNoFalseWhether cookie is secure (HTTPS only)
httpOnlybooleanNoFalseWhether cookie is HTTP only
expiresnumberNo-Cookie expiration time (Unix timestamp)

Output:

FieldTypeDescription
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
cookiesarrayऑपरेशन स्थिति (सफलता/त्रुटि)
countnumberऑपरेशन स्थिति (सफलता/त्रुटि)

Example: Example

yaml
action: get

Example: Example

yaml
action: get
name: session_id

Example: Example

yaml
action: set
name: user_pref
value: dark_mode
domain: example.com

Example: Example

yaml
action: clear

डायलॉग संभालें

browser.dialog

अलर्ट, कन्फर्म और प्रॉम्प्ट डायलॉग संभालें

Parameters:

NameTypeRequiredDefaultDescription
actionselect (accept, dismiss, listen)Yes-How to respond to the dialog
prompt_textstringNo-Text to enter in prompt dialog (for accept action)
timeoutnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
messagestringऑपरेशन स्थिति (सफलता/त्रुटि)
typestringऑपरेशन स्थिति (सफलता/त्रुटि)
default_valuestringपरिणाम का वर्णन करने वाला संदेश

Example: Example

yaml
action: accept

Example: Example

yaml
action: dismiss

Example: Example

yaml
action: accept
prompt_text: Hello World

Example: Example

yaml
action: listen
timeout: 5000

फ़ाइल डाउनलोड करें

browser.download

ब्राउज़र से फ़ाइल डाउनलोड करें

Parameters:

NameTypeRequiredDefaultDescription
selectorstringNo-CSS selector, XPath, or text selector to find the element
save_pathstringYes-Path where to save the downloaded file
timeout_msnumberNo60000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
pathstringऑपरेशन स्थिति (सफलता/त्रुटि)
filenamestringऑपरेशन स्थिति (सफलता/त्रुटि)
sizenumberफ़ाइल या संसाधन पथ

Example: Example

yaml
selector: #download-btn
save_path: /downloads/report.pdf

Example: Example

yaml
selector: a.download
save_path: /downloads/large-file.zip
timeout_ms: 120000

ड्रैग और ड्रॉप

browser.drag

एलिमेंट्स को ड्रैग और ड्रॉप करें

Parameters:

NameTypeRequiredDefaultDescription
sourcestringYes-CSS selector, XPath, or text selector to find the element
targetstringYes-CSS selector, XPath, or text selector to find the element
source_positionobjectNo-Position within source element {x, y} as percentages
target_positionobjectNo-Position within target element {x, y} as percentages
timeoutnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
statusstringलक्ष्य एलिमेंट में स्थिति {x, y} प्रतिशत के रूप में
sourcestringलक्ष्य एलिमेंट में स्थिति {x, y} प्रतिशत के रूप में
targetstringऑपरेशन स्थिति (सफलता/त्रुटि)

Example: Example

yaml
source: #item1
target: #dropzone

Example: Example

yaml
source: .draggable
target: .container
target_position: {"x": 0.5, "y": 0.5}

डिवाइस अनुकरण करें

browser.emulate

डिवाइस का अनुकरण करें या कस्टम व्यूपोर्ट सेट करें

Parameters:

NameTypeRequiredDefaultDescription
deviceselect (iphone_12, iphone_14, iphone_14_pro_max, iphone_se, pixel_7, pixel_5, galaxy_s21, galaxy_s23, ipad_pro, ipad_mini, galaxy_tab_s8, desktop_chrome, desktop_firefox, desktop_safari, desktop_edge, laptop, macbook_pro, custom)Yes-अनुकरण करने के लिए डिवाइस नाम (जैसे iPhone 13)
widthnumberNo-पिक्सेल में व्यूपोर्ट चौड़ाई
heightnumberNo-पिक्सेल में व्यूपोर्ट ऊँचाई
user_agentstringNo-कस्टम यूज़र एजेंट स्ट्रिंग
is_mobilebooleanNo-क्या मोबाइल डिवाइस का अनुकरण करना है
has_touchbooleanNo-क्या डिवाइस में टच सपोर्ट है
device_scale_factornumberNo-डिवाइस पिक्सेल अनुपात

Output:

FieldTypeDescription
statusstringऑपरेशन की स्थिति (सफलता/त्रुटि)
devicestringअनुकरण किया गया डिवाइस नाम
viewportobjectवर्तमान व्यूपोर्ट आयाम
is_mobilebooleanक्या मोबाइल अनुकरण सक्रिय है

Example: Example

yaml
device: iphone_14

Example: Example

yaml
device: ipad_pro

Example: Example

yaml
device: custom
width: 400
height: 800
is_mobile: true
has_touch: true
device_scale_factor: 2

Example: Example

yaml
device: desktop_chrome
user_agent: CustomBot/1.0

ब्राउज़र सुनिश्चित करें

browser.ensure

यह सुनिश्चित करें कि ब्राउज़र सत्र मौजूद है (पुनः उपयोग या लॉन्च करें)

Parameters:

NameTypeRequiredDefaultDescription
headlessbooleanNoFalseRun browser without visible window
widthnumberNo1280Browser viewport width in pixels
heightnumberNo720Browser viewport height in pixels

Output:

FieldTypeDescription
statusstringब्राउज़र लॉन्च किया गया था या पुनः उपयोग किया गया था
messagestringब्राउज़र लॉन्च किया गया था या पुनः उपयोग किया गया था
is_ownerbooleanब्राउज़र लॉन्च किया गया था या पुनः उपयोग किया गया था

Example: Example

yaml
headless: false

Example: Example

yaml
headless: true

JavaScript निष्पादित करें

browser.evaluate

पेज संदर्भ में JavaScript कोड निष्पादित करें

Parameters:

NameTypeRequiredDefaultDescription
scriptstringYes-JavaScript code to execute (can use return statement)
argsarrayNo-Arguments to pass to the script function

Output:

FieldTypeDescription
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
resultanyऑपरेशन स्थिति (सफलता/त्रुटि)

Example: Example

yaml
script: return document.title

Example: Example

yaml
script: return document.querySelectorAll("a").length

Example: Example

yaml
script: (selector) => document.querySelector(selector)?.textContent
args: ["#header"]

Example: Example

yaml
script: document.body.style.backgroundColor = "red"; return "done"

डेटा निकालें

browser.extract

पेज से संरचित डेटा निकालें

Parameters:

NameTypeRequiredDefaultDescription
selectorstringYes-CSS selector, XPath, or text selector to find the element
limitnumberNo-Maximum number of items to extract
fieldsobjectNo-Define fields to extract from each item

Output:

FieldTypeDescription
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
dataarrayऑपरेशन स्थिति (सफलता/त्रुटि)
countnumberऑपरेशन स्थिति (सफलता/त्रुटि)

Example: Example

yaml
selector: .g
limit: 10
fields: {"title": {"selector": "h3", "type": "text"}, "url": {"selector": "a", "type": "attribute", "attribute": "href"}}

एलिमेंट्स खोजें

browser.find

पेज में एलिमेंट्स खोजें और एलिमेंट ID सूची लौटाएं

Parameters:

NameTypeRequiredDefaultDescription
selectorstringYes-CSS selector, XPath, or text selector to find the element
limitnumberNo-Maximum number of items to extract

Output:

FieldTypeDescription
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
countnumberऑपरेशन स्थिति (सफलता/त्रुटि)
element_idsarrayऑपरेशन स्थिति (सफलता/त्रुटि)

Example: Find search results

yaml
selector: div.tF2Cxc
limit: 10

फॉर्म भरें

browser.form

स्वचालित फ़ील्ड पहचान के साथ स्मार्ट फॉर्म भरना

Parameters:

NameTypeRequiredDefaultDescription
form_selectorstringNo-CSS selector for the form element (optional)
dataobjectYes-Key-value pairs to fill (key = field name/id, value = content)
field_mappingobjectNo-Custom selector mapping
clear_before_fillbooleanNoTrueClear existing field values before filling
submitbooleanNoFalseSubmit form after filling
submit_selectorstringNo-CSS selector for submit button
delay_between_fields_msnumberNo100Delay between filling each field (for more human-like behavior)

Output:

FieldTypeDescription
filled_fieldsarrayप्रत्येक फ़ील्ड भरने के बीच की देरी (अधिक मानव-समान व्यवहार के लिए)
failed_fieldsarrayभरे गए फ़ील्ड की सूची
submittedbooleanभरे गए फ़ील्ड की सूची

Example: Example

yaml
data: {"email": "user@example.com", "password": "secret123"}
submit: true

Example: Example

yaml
data: {"username": "john_doe", "bio": "Hello world"}
field_mapping: {"username": "#user-name-input", "bio": "textarea.bio-field"}

फ्रेम स्विच करें

browser.frame

iframe या फ्रेम संदर्भ पर स्विच करें

Parameters:

NameTypeRequiredDefaultDescription
selectorstringNo-CSS selector, XPath, or text selector to find the element
namestringNo-Name attribute of the frame (alternative to selector)
urlstringNo-URL pattern to match frame (alternative to selector)
actionstringNoenterFrame action to perform
timeoutnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
statusstringफ्रेम क्रिया (फ्रेम में स्विच करने के लिए enter, सभी फ्रेम सूचीबद्ध करने के लिए list)
frame_urlstringफ्रेम क्रिया (फ्रेम में स्विच करने के लिए enter, सभी फ्रेम सूचीबद्ध करने के लिए list)
frame_namestringऑपरेशन स्थिति (सफलता/त्रुटि)
framesarrayफ्रेम URL

Example: Example

yaml
selector: iframe#content-frame

Example: Example

yaml
name: main-content

Example: Example

yaml
action: exit

Example: Example

yaml
action: list

जियोलोकेशन मॉक करें

browser.geolocation

ब्राउज़र जियोलोकेशन मॉक करें

Parameters:

NameTypeRequiredDefaultDescription
latitudenumberYes-Latitude coordinate (-90 to 90)
longitudenumberYes-Longitude coordinate (-180 to 180)
accuracynumberNo100Position accuracy in meters

Output:

FieldTypeDescription
statusstringमीटर में स्थिति सटीकता
locationobjectमीटर में स्थिति सटीकता

Example: Example

yaml
latitude: 37.7749
longitude: -122.4194

Example: Example

yaml
latitude: 51.5074
longitude: -0.1278
accuracy: 10

Example: Example

yaml
latitude: 35.6762
longitude: 139.6503

URL पर जाएं

browser.goto

विशिष्ट URL पर नेविगेट करें

Parameters:

NameTypeRequiredDefaultDescription
urlstringYes-URL to navigate to
wait_untilselect (load, domcontentloaded, networkidle)NodomcontentloadedWhen to consider navigation complete
timeout_msnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
urlstringविशिष्ट URL पर नेविगेट करें

Example: Example

yaml
url: https://www.google.com
wait_until: domcontentloaded

एलिमेंट होवर करें

browser.hover

एलिमेंट पर माउस होवर करें

Parameters:

NameTypeRequiredDefaultDescription
selectorstringYes-CSS selector, XPath, or text selector to find the element
timeout_msnumberNo30000Maximum time to wait in milliseconds
positionobjectNo-Click position relative to element (0-1 range)

Output:

FieldTypeDescription
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
selectorstringऑपरेशन स्थिति (सफलता/त्रुटि)

Example: Example

yaml
selector: .menu-item

Example: Example

yaml
selector: #dropdown-trigger
timeout_ms: 5000

ब्राउज़र लॉन्च करें

browser.launch

Playwright के साथ नया ब्राउज़र इंस्टेंस लॉन्च करें

Parameters:

NameTypeRequiredDefaultDescription
headlessbooleanNoFalseRun browser without visible window
widthnumberNo1280Browser viewport width in pixels
heightnumberNo720Browser viewport height in pixels
browser_typeselect (chromium, firefox, webkit)Nochromiumउपयोग करने के लिए ब्राउज़र इंजन (क्रोमियम, फायरफॉक्स, वेबकिट)
proxystringNo-प्रॉक्सी सर्वर URL
user_agentstringNo-कस्टम यूज़र एजेंट स्ट्रिंग
localestringNoen-USBrowser locale (e.g. en-US, zh-TW, ja-JP)
slow_monumberNo0निर्दिष्ट मिलीसेकंड द्वारा संचालन को धीमा करें
record_video_dirstringNo-Directory to save recorded videos (enables Playwright video recording)

Output:

FieldTypeDescription
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
messagestringनया ब्राउज़र इंस्टेंस लॉन्च करें
browser_typestringलॉन्च किए गए ब्राउज़र का प्रकार
headlessbooleanक्या ब्राउज़र हेडलेस मोड में चल रहा है
viewportobjectवर्तमान व्यूपोर्ट आयाम

Example: Example

yaml
headless: true

Example: Example

yaml
headless: false

इतिहास नेविगेट करें

browser.navigation

ब्राउज़र इतिहास में नेविगेट करें (पीछे, आगे, पुनः लोड)

Parameters:

NameTypeRequiredDefaultDescription
actionselect (back, forward, reload)YesreloadWhich navigation action to perform
wait_untilselect (load, domcontentloaded, networkidle)NodomcontentloadedWhen to consider navigation complete
timeout_msnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
statusstringऑपरेशन की स्थिति (सफलता/त्रुटि)
actionstringकिया गया नेविगेशन कार्य
urlstringनेविगेशन के बाद वर्तमान URL

Example: Example

yaml
action: back

Example: Example

yaml
action: forward

Example: Example

yaml
action: reload
wait_until: networkidle

नेटवर्क मॉनिटर

browser.network

नेटवर्क अनुरोधों की निगरानी और इंटरसेप्ट करें

Parameters:

NameTypeRequiredDefaultDescription
actionselect (monitor, block, intercept)Yes-Network action to perform
url_patternstringNo-Regex pattern to match request URLs
resource_typestringNo-Filter by resource type (document, script, image, etc)
timeoutnumberNo30000Maximum time to wait in milliseconds
mock_responseobjectNo-Response to return for intercepted requests

Output:

FieldTypeDescription
statusstringइंटरसेप्ट किए गए अनुरोधों के लिए लौटाने के लिए प्रतिक्रिया
requestsarrayइंटरसेप्ट किए गए अनुरोधों के लिए लौटाने के लिए प्रतिक्रिया
blocked_countnumberऑपरेशन स्थिति (सफलता/त्रुटि)

Example: Example

yaml
action: monitor
url_pattern: .*api.*
timeout: 10000

Example: Example

yaml
action: block
resource_type: image

Example: Example

yaml
action: intercept
url_pattern: .*users.*
mock_response: {"status": 200, "body": "{\"users\": []}"}

पृष्ठों की सूची

browser.pages

सभी खुले ब्राउज़र पृष्ठों/टैब की सूची

Parameters:

NameTypeRequiredDefaultDescription
include_detailsbooleanNoTrueप्रत्येक पृष्ठ के लिए विस्तृत जानकारी शामिल करें
include_content_infobooleanNoFalseप्रत्येक पृष्ठ के लिए सामग्री प्रकार की जानकारी शामिल करें

Output:

FieldTypeDescription
statusstringऑपरेशन की स्थिति (सफलता/त्रुटि)
pagesarrayखुले पृष्ठों की सूची
countnumberखुले पृष्ठों की संख्या
current_indexnumberवर्तमान सक्रिय पृष्ठ का सूचकांक

Example: Example

yaml
include_details: true

Example: Example

yaml
include_details: false

Example: Example

yaml
include_details: true
include_content_info: true

पृष्ठांकन करें और निकालें

browser.pagination

पृष्ठों के माध्यम से स्वचालित रूप से पृष्ठांकन करें और डेटा निकालें

Parameters:

NameTypeRequiredDefaultDescription
modeselect (next_button, infinite_scroll, page_numbers, load_more)Nonext_buttonHow to navigate between pages
item_selectorstringYes-CSS selector for items to extract on each page
fieldsobjectNo-Field definitions {name: {selector, attribute?}}
next_selectorstringNo-CSS selector for next page button
load_more_selectorstringNo-CSS selector for load more button
max_pagesnumberNo10Maximum number of pages to process (0 = unlimited)
max_itemsnumberNo0Stop after collecting this many items (0 = unlimited)
wait_between_pages_msnumberNo1000Wait time between page navigations
wait_for_selectorstringNo-Wait for this element after page change
scroll_amountnumberNo1000Pixels to scroll for infinite scroll mode
no_more_indicatorstringNo-Selector that appears when no more pages (stops pagination)

Output:

FieldTypeDescription
itemsarrayचयनकर्ता जो तब दिखाई देता है जब और अधिक पृष्ठ नहीं होते (पृष्ठांकन रोकता है)
total_itemsintegerसभी पृष्ठों से निकाले गए सभी आइटम
pages_processedintegerसभी पृष्ठों से निकाले गए सभी आइटम
stopped_reasonstringप्रसंस्कृत पृष्ठों की संख्या

Example: Example

yaml
mode: next_button
item_selector: .product-card
fields: {"title": {"selector": ".title"}, "price": {"selector": ".price"}, "link": {"selector": "a", "attribute": "href"}}
next_selector: .pagination .next
max_pages: 5

Example: Example

yaml
mode: infinite_scroll
item_selector: .feed-item
fields: {"content": {"selector": ".content"}, "author": {"selector": ".author"}}
max_items: 100
no_more_indicator: .end-of-feed

Example: Example

yaml
mode: load_more
item_selector: .list-item
load_more_selector: button.load-more
max_pages: 10

PDF जनरेट करें

browser.pdf

वर्तमान पेज से PDF जनरेट करें

Parameters:

NameTypeRequiredDefaultDescription
pathstringNo-Path where the output file will be saved
page_sizeselect (A4, Letter, Legal, A3, A5)NoA4Page size format
orientationselect (portrait, landscape)NoportraitPage orientation
print_backgroundbooleanNoTrueInclude background graphics
scalenumberNo1Scale of the webpage rendering (0.1-2)
marginnumberNo20Page margin in millimeters
headerstringNo-Header text for each page
footerstringNo-Footer text for each page

Output:

FieldTypeDescription
statusstringवेबपेज रेंडरिंग का स्केल (0.1-2)
pathstringऑपरेशन स्थिति (सफलता/त्रुटि)
sizenumberऑपरेशन स्थिति (सफलता/त्रुटि)

Example: Example

yaml
path: /output/page.pdf

Example: Example

yaml
path: /output/landscape.pdf
landscape: true

Example: Example

yaml
path: /output/custom.pdf
margin: {"top": "1cm", "bottom": "1cm", "left": "2cm", "right": "2cm"}

प्रदर्शन मेट्रिक्स

browser.performance

ब्राउज़र प्रदर्शन मेट्रिक्स एकत्र करें

Parameters:

NameTypeRequiredDefaultDescription
metricsarrayNo['all']एकत्र करने के लिए प्रदर्शन मेट्रिक्स
timeout_msnumberNo3000मिलीसेकंड में समय सीमा
setup_observersbooleanNoTrueएकत्र करने से पहले प्रदर्शन पर्यवेक्षकों को सेट करें

Output:

FieldTypeDescription
statusstringऑपरेशन की स्थिति (सफलता/त्रुटि)
metricsobjectएकत्रित प्रदर्शन मेट्रिक्स

Example: Example

yaml
metrics: ["all"]
timeout_ms: 5000

Example: Example

yaml
metrics: ["lcp", "fcp", "cls"]

Example: Example

yaml
metrics: ["ttfb", "domContentLoaded", "load"]
timeout_ms: 0

कुंजी दबाएं

browser.press

कीबोर्ड कुंजी दबाएं

Parameters:

NameTypeRequiredDefaultDescription
keystringYes-The key to press (e.g., Enter, Escape, Tab)

Output:

FieldTypeDescription
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
keystringकीबोर्ड कुंजी दबाएं

Example: Example

yaml
key: Enter

Example: Example

yaml
key: Escape

क्रियाएं रिकॉर्ड करें

browser.record

यूज़र क्रियाओं को वर्कफ़्लो के रूप में रिकॉर्ड करें

Parameters:

NameTypeRequiredDefaultDescription
actionstringYes-Recording action to perform
output_formatstringNoyamlFormat for recorded workflow
output_pathstringNo-Path where the output file will be saved

Output:

FieldTypeDescription
statusstringरिकॉर्ड किए गए वर्कफ़्लो के लिए फ़ॉर्मेट (yaml या json)
recordingarrayरिकॉर्ड किए गए वर्कफ़्लो के लिए फ़ॉर्मेट (yaml या json)
workflowstringऑपरेशन स्थिति (सफलता/त्रुटि)

Example: Example

yaml
action: start

Example: Example

yaml
action: stop
output_format: yaml

Example: Example

yaml
action: get

ब्राउज़र जारी करें

browser.release

ब्राउज़र सत्र जारी करें (केवल तभी बंद करें जब स्वामित्व में हो)

Parameters:

NameTypeRequiredDefaultDescription
forcebooleanNoFalseब्राउज़र बंद करें भले ही इस टेम्पलेट द्वारा स्वामित्व में न हो

Output:

FieldTypeDescription
statusstringब्राउज़र बंद करें भले ही इस टेम्पलेट द्वारा स्वामित्व में न हो
messagestringकौन सी कार्रवाई की गई
was_ownerbooleanकौन सी कार्रवाई की गई

Example: Example

yaml

Example: Example

yaml
force: true

स्क्रीनशॉट लें

browser.screenshot

वर्तमान पेज का स्क्रीनशॉट लें

Parameters:

NameTypeRequiredDefaultDescription
pathstringNoscreenshot.pngPath where the output file will be saved
full_pagebooleanNoFalseCapture the entire scrollable page
formatselect (png, jpeg, webp)NopngImage format for the screenshot
qualitynumberNo-Quality for JPEG/WebP format (0-100)

Output:

FieldTypeDescription
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
filepathstringवर्तमान पेज का स्क्रीनशॉट लें

Example: Example

yaml
path: output/page.png

पेज स्क्रॉल करें

browser.scroll

पेज को एलिमेंट, स्थिति, या दिशा में स्क्रॉल करें

Parameters:

NameTypeRequiredDefaultDescription
selectorstringNo-CSS selector, XPath, or text selector to find the element
directionselect (down, up, left, right)NodownDirection to scroll the page
amountnumberNo500Pixels to scroll (ignored if selector is provided)
behaviorselect (smooth, instant)NosmoothHow the scroll animation behaves

Output:

FieldTypeDescription
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
scrolled_toobjectऑपरेशन स्थिति (सफलता/त्रुटि)

Example: Example

yaml
selector: #footer

Example: Example

yaml
direction: down
amount: 500

Example: Example

yaml
direction: up
amount: 10000
behavior: smooth

विकल्प चुनें

browser.select

ड्रॉपडाउन एलिमेंट से विकल्प चुनें

Parameters:

NameTypeRequiredDefaultDescription
selectorstringYes-CSS selector, XPath, or text selector to find the element
valuestringNo-Option value attribute to select
labelstringNo-Option text content to select (alternative to value)
indexnumberNo-Option index to select (0-based)
timeoutnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
selectedarrayऑपरेशन स्थिति (सफलता/त्रुटि)
selectorstringऑपरेशन स्थिति (सफलता/त्रुटि)

Example: Example

yaml
selector: select#country
value: us

Example: Example

yaml
selector: select#country
label: United States

Example: Example

yaml
selector: select#country
index: 2

DOM स्नैपशॉट

browser.snapshot

वर्तमान पृष्ठ का DOM स्नैपशॉट कैप्चर करें

Parameters:

NameTypeRequiredDefaultDescription
formatselect (html, mhtml, text)Nohtmlआउटपुट प्रारूप (html या टेक्स्ट)
selectorstringNo-विशिष्ट तत्व का स्नैपशॉट लेने के लिए CSS चयनकर्ता
pathstringNo-स्नैपशॉट सहेजने का पथ

Output:

FieldTypeDescription
statusstringऑपरेशन की स्थिति (सफलता/त्रुटि)
formatstringस्नैपशॉट का प्रारूप
contentstringस्नैपशॉट सामग्री
pathstringजहां स्नैपशॉट सहेजा गया था उसका पथ
size_bytesnumberबाइट्स में स्नैपशॉट का आकार

Example: Example

yaml
format: html

Example: Example

yaml
format: mhtml
path: /tmp/page.mhtml

Example: Example

yaml
format: text
selector: article.main-content

Example: Example

yaml
format: html
selector: #main
path: /tmp/section.html

ब्राउज़र स्टोरेज

browser.storage

localStorage और sessionStorage एक्सेस करें

Parameters:

NameTypeRequiredDefaultDescription
actionselect (get, set, remove, clear, keys, length)Yes-Action to perform on the storage
typeselect (local, session)NolocalBrowser storage type to access
keystringNo-Storage key
valuestringNo-Value to store

Output:

FieldTypeDescription
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
valueanyऑपरेशन स्थिति (सफलता/त्रुटि)
keysarrayऑपरेशन स्थिति (सफलता/त्रुटि)
lengthnumberलौटाया गया मान

Example: Example

yaml
action: get
type: local
key: user_token

Example: Example

yaml
action: set
type: session
key: temp_data
value: {"id": 123}

Example: Example

yaml
action: clear
type: local

Example: Example

yaml
action: keys
type: local

टैब्स प्रबंधित करें

browser.tab

ब्राउज़र टैब बनाएं, स्विच करें, और बंद करें

Parameters:

NameTypeRequiredDefaultDescription
actionstringYes-Tab action to perform
urlstringNo-URL to navigate to
indexnumberNo-Tab index to switch to or close (0-based)

Output:

FieldTypeDescription
statusstringस्विच करने या बंद करने के लिए टैब इंडेक्स (0-आधारित)
tab_countnumberस्विच करने या बंद करने के लिए टैब इंडेक्स (0-आधारित)
current_indexnumberऑपरेशन स्थिति (सफलता/त्रुटि)
tabsarrayटैब गणना

Example: Example

yaml
action: new
url: https://example.com

Example: Example

yaml
action: switch
index: 0

Example: Example

yaml
action: close

Example: Example

yaml
action: list

ब्राउज़र ट्रेस

browser.trace

ब्राउज़र प्रदर्शन ट्रेस शुरू, रोकें, या सहेजें

Parameters:

NameTypeRequiredDefaultDescription
actionstringYes-ट्रेस क्रिया (शुरू, रोकें, सहेजें)
categoriesarrayNo['devtools.timeline']कैप्चर करने के लिए ट्रेस श्रेणियाँ
screenshotsbooleanNoTrueट्रेस में स्क्रीनशॉट शामिल करें
pathstringNo-ट्रेस फ़ाइल सहेजने का पथ

Output:

FieldTypeDescription
statusstringऑपरेशन की स्थिति (सफलता/त्रुटि)
tracingbooleanक्या ट्रेसिंग वर्तमान में सक्रिय है
pathstringजहां ट्रेस सहेजा गया था उसका पथ
size_bytesnumberबाइट्स में ट्रेस फ़ाइल का आकार

Example: Example

yaml
action: start
screenshots: true

Example: Example

yaml
action: start
categories: ["devtools.timeline", "v8.execute"]
screenshots: false

Example: Example

yaml
action: stop
path: /tmp/performance-trace.json

टेक्स्ट टाइप करें

browser.type

इनपुट फ़ील्ड में टेक्स्ट टाइप करें

Parameters:

NameTypeRequiredDefaultDescription
type_methodselect (placeholder, label, name, id, selector)NoplaceholderChoose the easiest way to identify the input field
targetstringNo-e.g. "Enter your email", "Email", "username"
selectorstringNo-CSS selector, XPath, or text selector
input_typeselect (text, password, email)NotextType of input field — use Password to mask the value in the builder
textstringYes-
sensitive_textstringYes-
delaynumberNo0Delay between keystrokes in milliseconds
clearbooleanNoFalseClear the input field before typing
timeoutnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
browserobjectBrowser session (pass-through for chaining)
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
selectorstringइनपुट फ़ील्ड में टेक्स्ट टाइप करें
methodstringType method used

Example: Example

yaml
type_method: placeholder
target: Enter your email
text: user@example.com

Example: Example

yaml
type_method: label
target: Email
text: user@example.com

Example: Example

yaml
type_method: placeholder
target: Password
input_type: password
sensitive_text: ${env.LOGIN_PASSWORD}

Example: Example

yaml
type_method: selector
selector: #email
text: user@example.com

फ़ाइल अपलोड करें

browser.upload

फ़ाइल इनपुट एलिमेंट पर फ़ाइल अपलोड करें

Parameters:

NameTypeRequiredDefaultDescription
selectorstringYes-CSS selector, XPath, or text selector to find the element
file_pathstringYes-Local path to the file to upload
timeout_msnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
filenamestringऑपरेशन स्थिति (सफलता/त्रुटि)
sizenumberऑपरेशन स्थिति (सफलता/त्रुटि)
selectorstringफ़ाइल का नाम

Example: Example

yaml
selector: input[type="file"]
file_path: /path/to/image.png

Example: Example

yaml
selector: #file-upload
file_path: /path/to/document.pdf

व्यूपोर्ट सेट करें

browser.viewport

ब्राउज़र व्यूपोर्ट आकार प्राप्त करें या सेट करें

Parameters:

NameTypeRequiredDefaultDescription
widthnumberYes1280पिक्सल में व्यूपोर्ट की चौड़ाई
heightnumberYes720पिक्सल में व्यूपोर्ट की ऊँचाई

Output:

FieldTypeDescription
statusstringऑपरेशन की स्थिति (सफलता/त्रुटि)
viewportobjectवर्तमान व्यूपोर्ट के आयाम
previous_viewportobjectपिछले व्यूपोर्ट के आयाम

Example: Example

yaml
width: 375
height: 667

Example: Example

yaml
width: 768
height: 1024

Example: Example

yaml
width: 1920
height: 1080

Example: Example

yaml
width: 1366
height: 768

प्रतीक्षा करें

browser.wait

अवधि के लिए या एलिमेंट प्रकट होने तक प्रतीक्षा करें

Parameters:

NameTypeRequiredDefaultDescription
duration_msnumberNo1000Duration of the operation in milliseconds
selectorstringNo-CSS selector, XPath, or text selector to find the element
stateselect (visible, hidden, attached, detached)Novisibleप्रतीक्षा करने के लिए स्थिति (दृश्य, छिपा हुआ, संलग्न, अलग)
timeout_msnumberNo30000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
statusstringऑपरेशन स्थिति (सफलता/त्रुटि)
selectorstringऑपरेशन स्थिति (सफलता/त्रुटि)
duration_msnumberअवधि या एलिमेंट प्रकट होने की प्रतीक्षा करें

Example: Example

yaml
duration_ms: 2000

Example: Example

yaml
selector: #loading-complete
timeout_ms: 5000

Released under the Apache 2.0 License.