MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / request

Method request

py/selenium/webdriver/remote/webdriver.py:1406–1423  ·  view source on GitHub ↗

Returns an APIRequestContext for making HTTP requests with browser cookie sync. Returns: An APIRequestContext instance bound to this driver. Examples: ``` response = driver.request.get("https://api.example.com/data") assert response.o

(self)

Source from the content-addressed store, hash-verified

1404
1405 @property
1406 def request(self) -> APIRequestContext:
1407 """Returns an APIRequestContext for making HTTP requests with browser cookie sync.
1408
1409 Returns:
1410 An APIRequestContext instance bound to this driver.
1411
1412 Examples:
1413 ```
1414 response = driver.request.get("https://api.example.com/data")
1415 assert response.ok
1416 data = response.json()
1417 ```
1418 """
1419 if self._request is None:
1420 from selenium.webdriver.common.api_request_context import APIRequestContext
1421
1422 self._request = APIRequestContext(self)
1423 return self._request
1424
1425 def _get_cdp_details(self):
1426 import json

Callers 15

calculate_hashFunction · 0.45
get_edge_versionsFunction · 0.45
get_edgedriver_versionFunction · 0.45
get_edgedriver_urlFunction · 0.45
verify_urlFunction · 0.45
geckodriverFunction · 0.45
firefox_version_dataFunction · 0.45
get_chrome_milestoneFunction · 0.45
fetch_and_saveFunction · 0.45
flatten_browser_pdlFunction · 0.45
add_pdlsFunction · 0.45

Calls 1

APIRequestContextClass · 0.90

Tested by

no test coverage detected