Update "is_chromium()" so that it still works with selenium 4
This commit is contained in:
parent
3f506aa34c
commit
4bffe7e471
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue