forked from gaugendre/ofx-processor
fix headless
This commit is contained in:
parent
f6c14d98b1
commit
5bb5b38a2c
2 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@ class LclDownloader:
|
|||
download_folder = Path.home() / "Downloads"
|
||||
self.download_folder = download_folder.resolve()
|
||||
options = webdriver.FirefoxOptions()
|
||||
# options.add_argument("-headless")
|
||||
options.add_argument("-headless")
|
||||
options.set_preference("browser.download.dir", str(self.download_folder))
|
||||
options.set_preference(
|
||||
"browser.helperApps.neverAsk.saveToDisk", "application/x-ofx"
|
||||
|
@ -64,7 +64,7 @@ class LclDownloader:
|
|||
self._click(By.CLASS_NAME, "app-cta-button")
|
||||
click.secho("Logged in!", fg="green")
|
||||
|
||||
retry = False
|
||||
retry = True
|
||||
while retry:
|
||||
try:
|
||||
self._click(By.CSS_SELECTOR, ".app-cta-button--primary")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "ofx-processor"
|
||||
version = "4.5.4"
|
||||
version = "4.5.5"
|
||||
description = "Personal ofx processor"
|
||||
readme = "README.md"
|
||||
authors = ["Gabriel Augendre <gabriel@augendre.info>"]
|
||||
|
|
Loading…
Reference in a new issue