1
0
Fork 0
Commit Graph

6 Commits (3b432fc7d61b04e48e1542ed8dea5707366ec853)

Author SHA1 Message Date
Dustin 3b432fc7d6 ntfy: Handle non-ASCII characters in message
In order to set the message for a notification with an attachment, the
text must be specified in the `Message` request header.  Unfortunately,
HTTP header values are limited to the Latin-1 character set, so Unicode
characters cannot be included.  As of *ntfy* 2.4.0, however, the server
can decode base64-encoded headers using the RFC 2047 scheme.

To maintain compatibility with older *ntfy* servers, the `ntfy` function
will only encode message contents this way if the string cannoto be
encoded as ASCII.
2023-06-23 09:33:24 -05:00
Dustin 43bf08eae8 chase: Remove second page load wait
When there are multiple accounts associated with a Chase online banking
user, the dashboard page layout changes.  Detailed account history is no
longer shown, so the elements we were waiting for in the "Waiting for
page to load completely" step never appear. Since we're navigating
directly to the download account transactions page now, anyway, we do
not even need to wait for this button to appear.
2023-05-22 17:22:56 -05:00
Dustin 55d5f6bd1a Include error with ntfy failure messages
Although it is undocumented, *ntfy* accepts a `Message` header along
with a file upload, which sets the message content of the notification
when a file is attached.  Since HTTP headers cannot contain multiple
lines, the newline character has to be escaped.  The *ntfy* server
performs unescaping automatically.
2023-05-22 09:08:27 -05:00
Dustin 58f417aea9 chase: Go directly to the download page
When there are no transactions in the default display, the *Download
account activity* button is disabled.  To avoid failing in this case, we
now navigate directly to the download page.  This requires explicitly
selecting the credit card account from the dropdown list, as it is not
pre-filled when the page is loaded directly.
2023-05-11 22:55:42 -05:00
Dustin 7cab766c38 Refactor error handling
The `ntfyerror` context manager replaces `screenshot_failure` for
handling online banking interaction failures.  It has several
advantages, notably:

* takes a screenshot of the browser page *before* logging out
* cleaner suppression of exceptions, with success tracking
* sends an `ntfy` message, with the screenshot attached
2023-05-11 22:52:35 -05:00
Dustin 7683ff5760 Initial commit 2023-05-09 14:08:23 -05:00