Fix few potential danger waring which may cause bugs can not be found.
This commit is contained in:
parent
8dcb790f59
commit
6c4b1508a9
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue