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"
|
download_folder = Path.home() / "Downloads"
|
||||||
self.download_folder = download_folder.resolve()
|
self.download_folder = download_folder.resolve()
|
||||||
options = webdriver.FirefoxOptions()
|
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.download.dir", str(self.download_folder))
|
||||||
options.set_preference(
|
options.set_preference(
|
||||||
"browser.helperApps.neverAsk.saveToDisk", "application/x-ofx"
|
"browser.helperApps.neverAsk.saveToDisk", "application/x-ofx"
|
||||||
|
@ -64,7 +64,7 @@ class LclDownloader:
|
||||||
self._click(By.CLASS_NAME, "app-cta-button")
|
self._click(By.CLASS_NAME, "app-cta-button")
|
||||||
click.secho("Logged in!", fg="green")
|
click.secho("Logged in!", fg="green")
|
||||||
|
|
||||||
retry = False
|
retry = True
|
||||||
while retry:
|
while retry:
|
||||||
try:
|
try:
|
||||||
self._click(By.CSS_SELECTOR, ".app-cta-button--primary")
|
self._click(By.CSS_SELECTOR, ".app-cta-button--primary")
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "ofx-processor"
|
name = "ofx-processor"
|
||||||
version = "4.5.4"
|
version = "4.5.5"
|
||||||
description = "Personal ofx processor"
|
description = "Personal ofx processor"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = ["Gabriel Augendre <gabriel@augendre.info>"]
|
authors = ["Gabriel Augendre <gabriel@augendre.info>"]
|
||||||
|
|
Loading…
Reference in a new issue