Skip to content

Commit a6b5f22

Browse files
[py] Use the correct version of CDP that you've connected to when using Remote
1 parent 4ffb27f commit a6b5f22

File tree

1 file changed

+2
-1
lines changed
  • py/selenium/webdriver/remote

1 file changed

+2
-1
lines changed

py/selenium/webdriver/remote/log.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ async def _get_bidi_connection(self):
166166
import_cdp()
167167
ws_url = None
168168
if self.driver.caps.get("se:cdp"):
169-
version, ws_url = self.driver.caps.get("se:cdp")
169+
ws_url = self.driver.caps.get("se:cdp")
170+
version = self.driver.caps.get("se:cdpVersion").split(".")[0]
170171
else:
171172
version, ws_url = self._get_cdp_details()
172173

0 commit comments

Comments
 (0)