MCPcopy Create free account

hub / github.com/bosniankicks/stealthwright / functions

Functions110 in github.com/bosniankicks/stealthwright

↓ 70 callersMethodsendCommand
* Send a CDP command and wait for response * @param {string} method - CDP method name * @param {Object} params - CDP command parameters * @re
lib/browser.js:519
↓ 18 callersMethodlocator
* Create a locator for selecting DOM elements * @param {string} selector - CSS selector * @returns {Locator} - Locator instance
lib/page.js:761
↓ 18 callersMethodwaitFor
* Wait for element to appear in the DOM * @param {Object} [options] - Wait options * @param {number} [options.timeout] - Custom timeout in ms
lib/page.js:59
↓ 14 callersMethodon
* Add event listener * @param {string} event - Event name * @param {Function} handler - Event handler
lib/page.js:1617
↓ 9 callersFunctioncanExecute
* Check if a file exists and is executable * @param {string} filePath - Path to check * @returns {boolean} - Whether file exists and is executable
lib/utils/chrome-finder.js:66
↓ 6 callersMethod_waitForNavigation
* Wait for navigation to complete * @param {Object} [options={}] - Navigation options * @param {string} [options.waitUntil='load'] - Navigation
lib/page.js:885
↓ 6 callersMethodclose
* Close the browser * @returns {Promise<void>}
lib/browser.js:561
↓ 6 callersMethodevaluate
* Evaluate a function in the page context * @param {Function|string} pageFunction - Function or string to evaluate * @param {...any} args - Argu
lib/page.js:814
↓ 4 callersMethodelementExists
* Check if the element exists in the DOM * @returns {Promise<boolean>} - True if element exists
lib/page.js:32
↓ 3 callersMethodgoto
* Navigate to a URL * @param {string} url - URL to navigate to * @param {Object} [options] - Navigation options * @param {boolean} [options.w
lib/page.js:782
↓ 3 callersMethodscreenshot
* Take a screenshot of the current page * @param {Object} [options={}] - Screenshot options * @param {string} [options.path] - File path to save
lib/page.js:1086
↓ 3 callersMethodwaitForTimeout
* Wait for a specified amount of time * @param {number} milliseconds - Time to wait in ms * @returns {Promise<void>}
lib/page.js:770
↓ 2 callersMethodattachToPage
* Attach to a Chrome page * @returns {Promise<void>}
lib/browser.js:395
↓ 2 callersMethodcreateBrowserContext
* Create a new browser context (similar to Playwright) * @returns {Promise<BrowserContext>} - Browser context instance
lib/browser.js:266
↓ 2 callersFunctiongetRandomProxy
* Get a random proxy from the proxies file or list * @param {string|Array} proxies - Path to proxies file or array of proxy strings * @returns {stri
lib/browser.js:28
↓ 2 callersMethodisVisible
* Check if an element is visible * @returns {Promise<boolean>} - True if element is visible
lib/page.js:439
↓ 2 callersMethodlaunch
* Launch the browser * @param {Object} options - Launch options * @returns {Promise<Browser>} - Browser instance
lib/browser.js:157
↓ 2 callersMethodsetupMessageHandling
* Set up WebSocket message handling
lib/browser.js:481
↓ 1 callersMethodclose
* Close the page * @returns {Promise<void>}
lib/page.js:1570
↓ 1 callersMethoddefaultBrowserContext
* Get the default browser context * @returns {BrowserContext} - Default browser context
lib/browser.js:276
↓ 1 callersFunctionfindChromeOnLinux
* Find Chrome on Linux * @returns {string|null} - Path to Chrome or null
lib/utils/chrome-finder.js:170
↓ 1 callersFunctionfindChromeOnMacOS
* Find Chrome on macOS * @returns {string|null} - Path to Chrome or null
lib/utils/chrome-finder.js:91
↓ 1 callersFunctionfindChromeOnWindows
* Find Chrome on Windows * @returns {string|null} - Path to Chrome or null
lib/utils/chrome-finder.js:127
↓ 1 callersFunctiongetChromePath
* Get Chrome executable path based on platform * @returns {string|null} - Path to Chrome or null
lib/utils/chrome-finder.js:207
↓ 1 callersMethodnewPage
* Create a new page in this context or return the initial page on first call * @returns {Promise<Page>} - Created or existing page
lib/browser.js:652
↓ 1 callersFunctionparseProxyUrl
* Parse proxy URL to extract components * Supports IP:PORT:USERNAME:PASSWORD and traditional URL formats * @param {string} proxyUrl - The proxy URL
lib/browser.js:67
↓ 1 callersMethodpress
* Press a key on an element (direct method) * @param {string} selector - CSS selector for the element * @param {string} key - Key to press *
lib/page.js:1732
↓ 1 callersMethodsetupAuthHandlers
* Set up proxy authentication handlers * @param {string} username - Proxy username * @param {string} password - Proxy password * @returns {Pr
lib/browser.js:286
↓ 1 callersFunctionstealthwright
(options = {})
index.js:10
↓ 1 callersMethodtextContent
* Get the text content of an element (direct method) * @param {string} selector - CSS selector for the element * @returns {Promise<string>} - Te
lib/page.js:1750
↓ 1 callersMethodtitle
* Get the page title * @returns {Promise<string>} - Page title
lib/page.js:1277
↓ 1 callersMethodtypeWithMistakes
* Type text with random mistakes (direct method) * @param {string} selector - CSS selector for the element * @param {string} text - Text to type
lib/page.js:1721
↓ 1 callersFunctionwhich
* Try to run which command to find executable path * @param {string} command - Command to find * @returns {string|null} - Path to executable or null
lib/utils/chrome-finder.js:53
Method$
* Find a single element using a selector * @param {string} selector - CSS selector * @returns {Promise<Object|null>} - Element handle or null
lib/page.js:1180
Method$$
* Find multiple elements using a selector * @param {string} selector - CSS selector * @returns {Promise<Array>} - Array of element handles
lib/page.js:1155
MethodaddScriptTag
* Add a script tag to the page * @param {Object} options - Script options * @param {string} [options.url] - URL to load script from * @param
lib/page.js:1342
MethodaddStyleTag
* Add a style tag to the page * @param {Object} options - Style options * @param {string} [options.url] - URL to load style from * @param {st
lib/page.js:1387
MethodboundingBox
* Get bounding box of element * @returns {Promise<Object>} - Bounding box (x, y, width, height)
lib/page.js:514
Methodcdp
* Execute CDP command * @param {string} method - CDP method * @param {Object} [params] - CDP method parameters * @returns {Promise<Object>} -
lib/page.js:1608
MethodcheckNavigation
()
lib/page.js:891
MethodcheckPredicate
()
lib/page.js:996
Methodclick
* Click on an element * @param {Object} [options] - Click options * @returns {Promise<void>}
lib/page.js:141
Methodclick
* Click on an element (direct method) * @param {string} selector - CSS selector for the element * @param {Object} [options] - Click options *
lib/page.js:1689
Methodclose
* Close this browser context * @returns {Promise<void>}
lib/browser.js:716
Methodclose
* Close all browsers and resources * @returns {Promise<void>}
lib/browser.js:833
Methodconnect
* Connect to an existing browser instance via WebSocket endpoint * @param {Object} options - Connection options * @param {string} options.wsEndp
lib/browser.js:800
Methodconstructor
* Create a new Browser instance * @param {string} execPath - Path to Chrome/Chromium executable * @param {Object} options - Browser options
lib/browser.js:132
Methodconstructor
* Create a new browser context * @param {Browser} browser - Browser instance
lib/browser.js:641
Methodconstructor
* Create a new StealthWright instance * @param {Object} options - StealthWright options
lib/browser.js:751
Methodconstructor
(message)
lib/errors.js:12
Methodconstructor
(message)
lib/errors.js:23
Methodconstructor
(message)
lib/errors.js:32
Methodconstructor
(message)
lib/errors.js:41
Methodconstructor
(selector)
lib/errors.js:50
Methodconstructor
(message)
lib/errors.js:60
Methodconstructor
(message)
lib/errors.js:69
Methodconstructor
()
lib/errors.js:78
Methodconstructor
* Create a new locator * @param {Page} page - The page instance * @param {string} selector - CSS selector for the element
lib/page.js:21
Methodconstructor
* Create a new Page * @param {Browser} browser - Browser instance
lib/page.js:748
Methodcontent
* Get current page content * @returns {Promise<string>} - Page HTML content
lib/page.js:1428
Methodcookies
* Get all cookies * @returns {Promise<Array>} - Array of cookies
lib/page.js:1491
Methoddblclick
* Double click on an element * @param {Object} [options] - Click options * @returns {Promise<void>}
lib/page.js:181
Methoddblclick
* Double-click on an element (direct method) * @param {string} selector - CSS selector for the element * @param {Object} [options] - Click optio
lib/page.js:1699
MethoddeleteCookies
* Delete cookies * @param {Object} [options] - Cookie deletion options * @returns {Promise<void>}
lib/page.js:1527
MethodemulateMedia
* Emulate media type * @param {Object} options - Media options * @param {string} [options.media] - Media type ('screen', 'print', etc.) * @re
lib/page.js:1553
MethodevaluateHandle
* Evaluate a function in the page context and return a JSHandle * @param {Function|string} pageFunction - Function or string to evaluate * @para
lib/page.js:849
MethodexposeFunction
* Expose function to page * @param {string} name - Function name * @param {Function} fn - Function to expose
lib/page.js:1639
Methodfill
* Fill a form field with text * @param {string} value - Text to fill into the field * @param {Object} [options] - Fill options * @returns {Pr
lib/page.js:103
Methodfill
* Fill a form field with text (direct method) * @param {string} selector - CSS selector for the element * @param {string} value - Text to fill i
lib/page.js:1679
Methodfocus
* Focus an element * @param {string} selector - CSS selector * @returns {Promise<void>}
lib/page.js:1478
MethodgetAttribute
* Get an attribute value from an element * @param {string} attributeName - Name of the attribute * @returns {Promise<string|null>} - Attribute v
lib/page.js:415
MethodgetAttribute
* Get attribute value from an element (direct method) * @param {string} selector - CSS selector for the element * @param {string} attributeName
lib/page.js:1760
MethodgetWSEndpoint
* Get WebSocket endpoint URL * @returns {string} - The WebSocket endpoint URL
lib/browser.js:606
MethodgoBack
* Navigate back in the browser history * @param {Object} [options] - Navigation options * @returns {Promise<void>}
lib/page.js:1217
MethodgoForward
* Navigate forward in the browser history * @param {Object} [options] - Navigation options * @returns {Promise<void>}
lib/page.js:1238
Methodhighlight
* Check element states * @returns {Promise<Object>} - Element states
lib/page.js:485
Methodhover
* Hover over an element * @returns {Promise<void>}
lib/page.js:705
Methodhover
* Hover over an element (direct method) * @param {string} selector - CSS selector for the element * @returns {Promise<void>}
lib/page.js:1798
MethodinnerText
* Get the inner text of an element * @returns {Promise<string>} - Inner text content
lib/page.js:366
MethodinnerText
* Get the inner text of an element (direct method) * @param {string} selector - CSS selector for the element * @returns {Promise<string>} - Inne
lib/page.js:1741
MethodisChecked
* Check if element is checked (for checkboxes, radio buttons) * @returns {Promise<boolean>} - True if element is checked
lib/page.js:550
MethodisConnected
* Checks if browser is connected * @returns {boolean} - Whether browser is connected
lib/browser.js:614
MethodisVisible
* Check if element is visible (direct method) * @param {string} selector - CSS selector for the element * @returns {Promise<boolean>} - True if
lib/page.js:1769
Methodlaunch
* Launch a new browser instance * @param {Object} options - Launch options * @returns {Promise<Browser>} - Browser instance
lib/browser.js:761
MethodloadCookies
* Load cookies from a file * @param {string} filePath - File path to load cookies from * @returns {Promise<void>}
lib/page.js:1055
Methodoff
* Remove event listener * @param {string} event - Event name * @param {Function} handler - Event handler
lib/page.js:1629
Methodpages
* Get all pages in this context * @returns {Promise<Array<Page>>} - Array of pages
lib/browser.js:738
Methodpress
* Press a key on the keyboard * @param {string} key - Key to press * @param {Object} [options] - Press options * @returns {Promise<void>}
lib/page.js:309
Methodreload
* Reload the current page * @param {Object} [options] - Navigation options * @returns {Promise<void>}
lib/page.js:1259
MethodsaveCookies
* Save cookies to a file * @param {string} filePath - File path to save cookies * @returns {Promise<void>}
lib/page.js:1024
MethodselectOption
* Select option(s) from a select element * @param {string|Array<string>} values - Value or array of values to select * @returns {Promise<void>}
lib/page.js:616
MethodselectOption
* Select option(s) from a select element (direct method) * @param {string} selector - CSS selector for the element * @param {string|Array<string
lib/page.js:1779
MethodselectedOptions
* Get all selected options from a select element * @returns {Promise<Array<string>>} - Array of selected option values
lib/page.js:580
MethodsetChecked
* Check or uncheck a checkbox or radio button * @param {boolean} [checked=true] - Whether to check or uncheck * @returns {Promise<void>}
lib/page.js:671
MethodsetChecked
* Check or uncheck a checkbox or radio button (direct method) * @param {string} selector - CSS selector for the element * @param {boolean} [chec
lib/page.js:1789
MethodsetContent
* Set page content * @param {string} html - HTML content to set * @param {Object} [options] - Set content options * @returns {Promise<void>}
lib/page.js:1452
MethodsetCookies
* Set cookies * @param {Array} cookies - Cookies to set * @returns {Promise<void>}
lib/page.js:1511
MethodsetDefaultNavigationTimeout
* Set default navigation timeout * @param {number} timeout - Timeout in milliseconds
lib/page.js:1590
MethodsetDefaultTimeout
* Set default timeout * @param {number} timeout - Timeout in milliseconds
lib/page.js:1598
MethodsetExtraHTTPHeaders
* Set HTTP headers * @param {Object} headers - HTTP headers to set * @returns {Promise<void>}
lib/page.js:1323
next →1–100 of 110, ranked by callers