Fix few potential danger waring which may cause bugs can not be found.

This commit is contained in:
usastevenchou 2023-02-09 11:45:18 +08:00
parent 8dcb790f59
commit 6c4b1508a9
1 changed files with 1 additions and 2 deletions

View File

@ -689,8 +689,7 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
if not hasattr(self, "cdp"):
from .cdp import CDP
cdp = CDP(self.options)
cdp.tab_new(url)
CDP(self.options).tab_new(url)
def reconnect(self, timeout=0.1):
try: