Skip to content

Commit 4bffe7e

Browse files
committed
Update "is_chromium()" so that it still works with selenium 4
1 parent 3f506aa commit 4bffe7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3371,7 +3371,7 @@ def is_chromium(self):
33713371
""" Return True if the browser is Chrome, Edge, or Opera. """
33723372
self.__check_scope()
33733373
chromium = False
3374-
browser_name = self.driver.__dict__["capabilities"]["browserName"]
3374+
browser_name = self.driver.capabilities["browserName"]
33753375
if browser_name in ("chrome", "edge", "msedge", "opera"):
33763376
chromium = True
33773377
return chromium

0 commit comments

Comments
 (0)