MCPcopy Create free account

hub / github.com/Vinyzu/Botright / functions

Functions600 in github.com/Vinyzu/Botright

↓ 218 callersMethodlocator
( self, selector: str, has: Optional[PlaywrightLocator] = None, has_not: Optio
botright/playwright_mock/page.py:323
↓ 69 callersMethodquery_selector
(self, selector: str, strict: Optional[bool] = False)
botright/playwright_mock/page.py:285
↓ 40 callersMethodevaluate_handle
(self, expression: str, arg: Optional[Any] = None)
botright/playwright_mock/page.py:386
↓ 35 callersMethodnew_page
Args: **launch_arguments: Dont use! PlaywrightBrowserContext.new_page() doesn't take any args. Only used to prevent errors.
botright/playwright_mock/browser.py:204
↓ 33 callersMethodclick
( self, selector: str, button: Optional[Literal["left", "middle", "right"]] = "left",
botright/playwright_mock/page.py:521
↓ 24 callersMethodclose
(self, run_before_unload: Optional[bool] = None, reason: Optional[str] = None)
botright/playwright_mock/page.py:262
↓ 21 callersMethodexpose_function
(self, name: str, callback: Callable[..., None])
botright/playwright_mock/page.py:427
↓ 20 callersMethodattach_frame
(self, page: Page, frame_id: str, url: str)
tests/utils.py:10
↓ 20 callersMethodroute
( self, url: Union[str, Pattern[str], Callable[[str], bool]], handler: Union[Callable[[Route], Any], C
botright/playwright_mock/page.py:501
↓ 12 callersMethodframe_locator
(self, selector: str)
botright/playwright_mock/page.py:404
↓ 10 callersMethodowner_frame
(self)
botright/playwright_mock/handles.py:49
↓ 9 callersMethodadd_script_tag
(self, content: Optional[str] = None, path: Optional[Union[str, Path]] = None, type: Optional[str] = None, url
botright/playwright_mock/page.py:312
↓ 9 callersMethodas_element
(self)
botright/playwright_mock/handles.py:23
↓ 9 callersMethodcheck_if_numeric
Checks if value is proper numeric value
botright/playwright_mock/mouse.py:106
↓ 9 callersMethodnth
(self, index)
botright/playwright_mock/locator.py:80
↓ 8 callersFunctionhandler
(route, request, ordinal)
tests/playwright_tests/test_browsercontext.py:138
↓ 8 callersMethodsolve_geetest
Mocks solving a Geetest challenge on a page. Args: mode (Optional[str]): The Geetest challenge mode to use. Ret
botright/playwright_mock/page.py:237
↓ 7 callersMethodexpect_request
(self, path: str)
tests/server.py:157
↓ 7 callersMethodwait_for_selector
( self, selector: str, state: Optional[Literal["attached", "detached", "hidden", "visible"]] = None, s
botright/playwright_mock/page.py:302
↓ 7 callersMethodwait_for_selector
( self, selector: str, state: Optional[Literal["attached", "detached", "hidden", "visible"]] = None, s
botright/playwright_mock/frame.py:86
↓ 6 callersMethodadd_style_tag
(self, content: Optional[str] = None, path: Optional[Union[str, Path]] = None, url: Optional[str] = None)
botright/playwright_mock/page.py:317
↓ 6 callersMethodframe
(self, name: Optional[str] = None, *, url: Optional[Union[str, Pattern[str], Callable[[str], bool]]] = None)
botright/playwright_mock/page.py:276
↓ 6 callersFunctiongive_it_a_chance_to_resolve
(page)
tests/playwright_tests/test_element_handle_wait_for_element_state.py:7
↓ 6 callersMethodmove
(self, x: Union[int, float], y: Union[int, float], steps: Optional[int] = 1, humanly: Optional[bool] = True, s
botright/playwright_mock/mouse.py:230
↓ 6 callersMethodopener
(self)
botright/playwright_mock/page.py:268
↓ 6 callersMethodset_checked
( self, selector: str, checked: Optional[bool] = False, force: Optional[bool]
botright/playwright_mock/page.py:688
↓ 6 callersFunctionwait_for_state
(div, state, done)
tests/playwright_tests/test_element_handle_wait_for_element_state.py:12
↓ 5 callersMethodclick
( self, selector: str, button: Optional[Literal["left", "middle", "right"]] = "left",
botright/playwright_mock/frame.py:165
↓ 5 callersMethodcontent_frame
(self)
botright/playwright_mock/handles.py:62
↓ 5 callersMethodexpose_binding
(self, name: str, callback: Callable[..., None], handle: Optional[bool] = None)
botright/playwright_mock/page.py:435
↓ 5 callersMethodget_by_test_id
(self, test_id: Union[str, Pattern[str]])
botright/playwright_mock/page.py:370
↓ 5 callersMethodstart
(self)
tests/server.py:133
↓ 4 callersMethodclick
( self, button: Optional[Literal["left", "middle", "right"]] = "left", click_count: Op
botright/playwright_mock/locator.py:114
↓ 4 callersMethodclick
( self, modifiers: Optional[Sequence[Literal["Alt", "Control", "Meta", "Shift"]]] = None,
botright/playwright_mock/handles.py:121
↓ 4 callersMethodframe_element
(self)
botright/playwright_mock/frame.py:114
↓ 3 callersMethodcheck_if_list_of_points
Checks if list of points is valid
botright/playwright_mock/mouse.py:110
↓ 3 callersFunctionfill
()
tests/playwright_tests/test_page.py:882
↓ 3 callersFunctiongive_it_a_chance_to_fill
(page)
tests/playwright_tests/test_page.py:724
↓ 3 callersMethodhover
( self, selector: str, force: Optional[bool] = False, modifiers: Optional[Sequ
botright/playwright_mock/page.py:728
↓ 3 callersMethodnew_browser
Create a new Botright browser instance with specified configurations. Args: proxy (str, optional): Proxy server URL to u
botright/botright.py:134
↓ 3 callersMethodroute
( self, url: Union[str, Pattern[str], Callable[[str], bool]], handler: Union[Callable[[PlaywrightRoute
botright/playwright_mock/browser.py:227
↓ 3 callersFunctionroute_iframe
(page: Page)
tests/playwright_tests/test_locators.py:549
↓ 3 callersFunctionupdateButtons
(buttons)
tests/assets/input/mouse-helper.js:58
↓ 2 callersMethod__init__
(self, route: PlaywrightRoute, page: Page)
botright/playwright_mock/routes.py:71
↓ 2 callersFunctionbinding
(source, a, b)
tests/playwright_tests/test_page.py:327
↓ 2 callersMethodcheck
( self, selector: str, force: Optional[bool] = False, no_wait_after: Optional[
botright/playwright_mock/page.py:610
↓ 2 callersMethodcheck_proxy
Check the validity of the proxy by making HTTP requests to determine its properties. Args: httpx_client (httpx.AsyncClie
botright/modules/proxy_manager.py:106
↓ 2 callersMethoddblclick
( self, selector: str, button: Optional[Literal["left", "middle", "right"]] = "left",
botright/playwright_mock/page.py:566
↓ 2 callersMethoddetach_frame
(self, page: Page, frame_id: str)
tests/utils.py:24
↓ 2 callersMethodelement_handle
(self, timeout: Optional[float] = None)
botright/playwright_mock/locator.py:72
↓ 2 callersMethodget_by_role
( self, role: role_type, checked: Optional[bool] = None, disabled: Optional[bo
botright/playwright_mock/page.py:350
↓ 2 callersFunctionopen_dialog
()
tests/playwright_tests/test_browsercontext_events.py:72
↓ 2 callersFunctionroundbox
(b)
tests/playwright_tests/test_element_handle.py:115
↓ 2 callersFunctionroute_ambiguous
(page: Page)
tests/playwright_tests/test_locators.py:607
↓ 2 callersMethodsolve_hcaptcha
Solve an hCaptcha challenge. Args: rq_data (Optional[str]): Additional data required for solving the hCaptcha challenge.
botright/modules/hcaptcha.py:47
↓ 2 callersMethodsplit_helper
Helper function to split and parse the proxy string into its components. Args: split_proxy (List[str]): A list containin
botright/modules/proxy_manager.py:74
↓ 2 callersMethodstop
(self)
tests/server.py:215
↓ 2 callersMethoduncheck
( self, selector: str, force: Optional[bool] = False, no_wait_after: Optional[
botright/playwright_mock/page.py:649
↓ 2 callersMethodunroute
( self, url: Union[str, Pattern[str], Callable[[str], bool]], handler: Optional[Union[Callable[[Playwr
botright/playwright_mock/browser.py:252
↓ 2 callersFunctionwait_for_state_to_throw
(div, state)
tests/playwright_tests/test_element_handle_wait_for_element_state.py:17
↓ 2 callersFunctionwaiting_helper
(page, after)
tests/playwright_tests/test_element_handle.py:386
↓ 1 callersMethod__init__
(self, js_handle: PlaywrightJSHandle, page: Page)
botright/playwright_mock/handles.py:16
↓ 1 callersMethod_mock_page
(self)
botright/playwright_mock/page.py:162
↓ 1 callersMethodbernstein_polynomial
Given list of control points, returns a function, which given a point [0,1] returns a point in the Bezier described by these points
botright/playwright_mock/mouse.py:134
↓ 1 callersMethodbernstein_polynomial_point
Calculate the i-th component of a bernstein polynomial of degree n
botright/playwright_mock/mouse.py:129
↓ 1 callersFunctionbinding
(source, a, b)
tests/playwright_tests/test_browsercontext.py:33
↓ 1 callersMethodbinomial
Returns the binomial coefficient "n choose k"
botright/playwright_mock/mouse.py:124
↓ 1 callersMethodblock_images
(self)
botright/playwright_mock/browser.py:191
↓ 1 callersMethodcache_responses
(self)
botright/playwright_mock/browser.py:175
↓ 1 callersMethodcalculate_points_in_curve
Given list of control points, returns n points in the Bézier curve, described by these points
botright/playwright_mock/mouse.py:152
↓ 1 callersMethodclose
(self, reason: Optional[str] = None)
botright/playwright_mock/browser.py:220
↓ 1 callersMethoddelete_botright_temp_dirs
()
botright/botright.py:219
↓ 1 callersMethoddistort_points
Distorts points by parameters of mean, standard deviation and frequency
botright/playwright_mock/mouse.py:75
↓ 1 callersMethoddump_frames
(self, frame: Frame, indentation: str = "")
tests/utils.py:27
↓ 1 callersMethodeaseOutQuad
(self, n: float)
botright/playwright_mock/mouse.py:25
↓ 1 callersMethodexpect_console_message
(self, predicate: Optional[Callable[..., bool]] = None, timeout: Optional[float] = None)
botright/playwright_mock/page.py:411
↓ 1 callersFunctionfind_free_port
()
tests/server.py:22
↓ 1 callersMethodgenerate_curve
Generates the curve based on arguments below, default values below are automatically modified to cause randomness
botright/playwright_mock/mouse.py:30
↓ 1 callersMethodgenerate_internal_knots
Generates the internal knots of the curve randomly
botright/playwright_mock/mouse.py:43
↓ 1 callersMethodgenerate_points
Generates the points from BezierCalculator
botright/playwright_mock/mouse.py:62
↓ 1 callersMethodget_browser_engine
Get the browser engine based on Chromium to use for Playwright based on system availability. If available, prefers Ungoogled Chromium
botright/botright.py:192
↓ 1 callersMethodget_computer
Generate fake computer-related data such as user agent, vendor, GPU information, screen dimensions, etc.
botright/modules/faker.py:48
↓ 1 callersMethodget_hcaptcha
Get an hCaptcha token for a specific site. Args: site_key (Optional[str]): The site key for the hCaptcha challenge (defa
botright/modules/hcaptcha.py:79
↓ 1 callersMethodget_locale
Generate fake locale-related data such as locale and language code based on the provided proxy. Args: proxy (ProxyManage
botright/modules/faker.py:54
↓ 1 callersFunctionhandle
(route, request)
tests/playwright_tests/test_browsercontext.py:112
↓ 1 callersMethodlisten
(self, factory: TestServerFactory)
tests/server.py:130
↓ 1 callersFunctionload
()
tests/playwright_tests/test_page.py:544
↓ 1 callersFunctionlogme
(t)
tests/playwright_tests/test_browsercontext.py:97
↓ 1 callersFunctionlogme
(t)
tests/playwright_tests/test_page.py:428
↓ 1 callersFunctionmain
()
tests/dev_test.py:6
↓ 1 callersMethodmock_captcha
Mock hCaptcha requests by intercepting network requests to getcaptcha. Args: rq_data (str): The data required for mockin
botright/modules/hcaptcha.py:29
↓ 1 callersFunctionnew_page
Create a new Playwright Page instance with custom configurations and features. Args: browser (BrowserContext): The parent browser co
botright/playwright_mock/page.py:58
↓ 1 callersMethodreset
(self)
tests/server.py:174
↓ 1 callersFunctionscroll
()
tests/playwright_tests/test_element_handle.py:390
↓ 1 callersFunctionselect_text
()
tests/playwright_tests/test_element_handle.py:500
↓ 1 callersMethodset_route
(self, path: str, callback: Callable[[TestServerRequest], Any])
tests/server.py:182
↓ 1 callersMethodsolve_recaptcha
Mocks solving a ReCaptcha challenge on a page. Returns: Union[str, bool]: The ReCaptcha token if the challenge is solved
botright/playwright_mock/page.py:250
↓ 1 callersMethodsplit_proxy
(self)
botright/modules/proxy_manager.py:90
↓ 1 callersFunctionthrow
()
tests/playwright_tests/test_page.py:350
↓ 1 callersMethodtween_points
Modifies points by tween
botright/playwright_mock/mouse.py:92
next →1–100 of 600, ranked by callers