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"):
|
if not hasattr(self, "cdp"):
|
||||||
from .cdp import CDP
|
from .cdp import CDP
|
||||||
|
|
||||||
cdp = CDP(self.options)
|
CDP(self.options).tab_new(url)
|
||||||
cdp.tab_new(url)
|
|
||||||
|
|
||||||
def reconnect(self, timeout=0.1):
|
def reconnect(self, timeout=0.1):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue