same as before
This commit is contained in:
parent
de4e4b4e01
commit
e0a5d953d3
10
V4.py
10
V4.py
@ -109,10 +109,12 @@ def CustomSleep(temps):
|
|||||||
def ListTabs(Mdriver = None ):
|
def ListTabs(Mdriver = None ):
|
||||||
tabs = []
|
tabs = []
|
||||||
if Mdriver :
|
if Mdriver :
|
||||||
driver = Mdriver
|
ldriver = Mdriver
|
||||||
for i in driver.window_handles :
|
else :
|
||||||
driver.switch_to.window(i)
|
ldriver = driver
|
||||||
tabs.append(driver.current_url)
|
for i in ldriver.window_handles :
|
||||||
|
ldriver.switch_to.window(i)
|
||||||
|
tabs.append(ldriver.current_url)
|
||||||
return(tabs)
|
return(tabs)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user