add sleeps back
This commit is contained in:
@@ -16,7 +16,7 @@ def download(url):
|
|||||||
|
|
||||||
opts = FirefoxOptions()
|
opts = FirefoxOptions()
|
||||||
|
|
||||||
## opts.add_argument("--headless")
|
opts.add_argument("--headless")
|
||||||
|
|
||||||
driver=webdriver.Firefox(options=opts)
|
driver=webdriver.Firefox(options=opts)
|
||||||
|
|
||||||
@@ -110,10 +110,6 @@ def download(url):
|
|||||||
|
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print("checking is file exists... [loop]")
|
print("checking is file exists... [loop]")
|
||||||
|
|
||||||
existsAlreadyVersionOne = DiskUtils.check_download_exists_matching_url_version_one(url)
|
existsAlreadyVersionOne = DiskUtils.check_download_exists_matching_url_version_one(url)
|
||||||
@@ -124,9 +120,9 @@ def download(url):
|
|||||||
|
|
||||||
print(f"The file matching the url '{url}' DOES INDEED exists. (version 1)")
|
print(f"The file matching the url '{url}' DOES INDEED exists. (version 1)")
|
||||||
|
|
||||||
## print("sleeping for 4 secs before shutting down robot")
|
print("sleeping for 4 secs before shutting down robot")
|
||||||
##
|
|
||||||
## time.sleep(4)
|
time.sleep(4)
|
||||||
|
|
||||||
print("shutting down the robot")
|
print("shutting down the robot")
|
||||||
|
|
||||||
@@ -152,6 +148,4 @@ def download(url):
|
|||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print(f"complete -> SullyGnomeRobot -> download() -> {url}")
|
print(f"complete -> SullyGnomeRobot -> download() -> {url}")
|
||||||
|
|||||||
Reference in New Issue
Block a user