MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / request

Method request

py/selenium/webdriver/remote/webdriver.py:1419–1436  ·  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

1417
1418 @property
1419 def request(self) -> APIRequestContext:
1420 """Returns an APIRequestContext for making HTTP requests with browser cookie sync.
1421
1422 Returns:
1423 An APIRequestContext instance bound to this driver.
1424
1425 Examples:
1426 ```
1427 response = driver.request.get("https://api.example.com/data")
1428 assert response.ok
1429 data = response.json()
1430 ```
1431 """
1432 if self._request is None:
1433 from selenium.webdriver.common.api_request_context import APIRequestContext
1434
1435 self._request = APIRequestContext(self)
1436 return self._request
1437
1438 def _get_cdp_details(self):
1439 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