MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / post

Method post

seleniumbase/undetected/cdp.py:137–154  ·  view source on GitHub ↗
(self, uri, data=None)

Source from the content-addressed store, hash-verified

135 return self._last_json
136
137 def post(self, uri, data=None):
138 from urllib.parse import unquote
139
140 uri = unquote(uri, errors="strict")
141 if not data:
142 data = {}
143 with requests.Session() as session:
144 resp = session.post(
145 self.server_addr + uri,
146 json=data,
147 headers={"Connection": "close"},
148 timeout=2,
149 )
150 try:
151 self._last_resp = resp
152 self._last_json = resp.json()
153 except Exception:
154 return self._last_resp
155
156 @property
157 def last_json(self):

Callers 3

tab_activateMethod · 0.45
tab_newMethod · 0.45
tab_close_last_openedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected