Add more time when interactive

This commit is contained in:
Thomas Kuschel 2024-06-15 23:44:41 +02:00
parent a479e1586f
commit 503abb86a6

View File

@ -58,7 +58,10 @@ def call_website(url,interactive=False):
print(element.text) print(element.text)
# print(href) # print(href)
if(interactive):
time.sleep(5) time.sleep(5)
else:
time.sleep(300)
driver.close() driver.close()
return os.path.basename(href) return os.path.basename(href)