Update "is_chromium()" so that it still works with selenium 4

This commit is contained in:
Michael Mintz 2021-03-26 17:40:36 -04:00
parent 3f506aa34c
commit 4bffe7e471
1 changed files with 1 additions and 1 deletions

View File

@ -3371,7 +3371,7 @@ class BaseCase(unittest.TestCase):
""" Return True if the browser is Chrome, Edge, or Opera. """
self.__check_scope()
chromium = False
browser_name = self.driver.__dict__["capabilities"]["browserName"]
browser_name = self.driver.capabilities["browserName"]
if browser_name in ("chrome", "edge", "msedge", "opera"):
chromium = True
return chromium