1. 13 Aug, 2021 1 commit
  2. 30 Jun, 2021 3 commits
    • Stéphane Sobucki's avatar
      [hsbc] Sturdy handle_otp by adding otp_form to states · 39fcaf86
      Stéphane Sobucki authored and hydrargyrum's avatar hydrargyrum committed
      Because relogin or ActionNeeded can happen during the handle_otp, solely
      relying on the presence of the otp config value may cause some issue. We
      might already have validated the otp once but we will run handle_otp
      once again.
      
      Also using locate_browser() when handling otp can lead to weird
      behaviour. In our case it leads to unavailable page.
      
      To fix this we don't use locate_browser() anymore, instead we store the
      otp_form_data and otp_validation_url to use them in handle_otp. We also
      use their presence in states to be sure that it's the first time we call
      handle_otp.
      
      Closes: 337@sibi
      39fcaf86
    • Stéphane Sobucki's avatar
      [hsbc] Change BASEURL and handle new BrowserUnavailable message · 7dece3e3
      Stéphane Sobucki authored and hydrargyrum's avatar hydrargyrum committed
      The old BASEURL is not reachable anymore. There was no big issue with
      the browser since it would switch to the new BASEURL if needed.
      
      Handle new message: 'service is temporarily unavailable'.
      
      Closes: 18054@sibi
      7dece3e3
    • Damien Ramelet's avatar
      [hsbc] Add regex for login · 5e68af8a
      Damien Ramelet authored and hydrargyrum's avatar hydrargyrum committed
      5e68af8a
  3. 05 Jun, 2021 4 commits
    • Stéphane Sobucki's avatar
      [hsbc] Avoid false positive error messages · b5ffe7be
      Stéphane Sobucki authored and hydrargyrum's avatar hydrargyrum committed
      commit 8087d2f6dea023946894032a8fde7c1bac6438ce added the handling of
      more error cases and a check for error messages at the `end_login()`
      step to fix `FormNotFound` errors.
      
      At this step, error messages and the message upon a succesful login are
      located under the same XPath. So, we might raise false login errors.
      
      To avoid false positives, we check whether we are logged in or not before handling
      errors.
      b5ffe7be
    • Stéphane Sobucki's avatar
      [hsbc] Handle relogin after otp validation · bd67ef24
      Stéphane Sobucki authored and hydrargyrum's avatar hydrargyrum committed
      In some scenarios, relogin are triggered. If it happens inside
      `handle_otp`, the otp value stored in config will not be cleared.
      
      The consequence is that we will try to validate the otp once again, even
      though we might not even be on the right page.
      
      To fix that we reset the otp value to its default value manually.
      bd67ef24
    • Stéphane Sobucki's avatar
      [hsbc] Handle more login errors · 74cf825f
      Stéphane Sobucki authored and hydrargyrum's avatar hydrargyrum committed
      Handle more login error messages, updated XPath for errors in
      LoginPage's `on_load()` method.
      
      Additionaly, added login errors check in `end_login()` to avoid
      FormNotFound exception due to a blocked account access.
      74cf825f
    • Christophe François's avatar
      [hsbc] Fix access to life insurance space · b3c48eca
      Christophe François authored and hydrargyrum's avatar hydrargyrum committed
      If we don't go to the account's owner's space before we try to go to the
      life insurances website, we arrive on the "useless page".
      b3c48eca
  4. 24 May, 2021 2 commits
  5. 11 Apr, 2021 2 commits
  6. 08 Apr, 2021 8 commits
  7. 04 Apr, 2021 2 commits
  8. 24 Mar, 2021 1 commit
    • Damien Mat's avatar
      [hsbc] handle user locked · 14c6f915
      Damien Mat authored and hydrargyrum's avatar hydrargyrum committed
      Detected after username submission.
      Since we weren't handling this case, login was proceeding
      to 2FA notification instead of stopping here.
      14c6f915
  9. 17 Nov, 2020 1 commit
  10. 28 Oct, 2020 2 commits
  11. 23 Sep, 2020 1 commit
  12. 26 Aug, 2020 1 commit
  13. 07 Aug, 2020 2 commits
  14. 17 Jun, 2020 1 commit
    • Christophe François's avatar
      [hsbc] Catch BrowserUnavailable error while fetching invests · 5ff962ab
      Christophe François authored and hydrargyrum's avatar hydrargyrum committed
      Some wealth accounts are now available only on the linebourse space. The
      current way of fetching accounts results in an error message.
      
      The linebourse space is not accessible with the current authentication
      so for now we catch the error so the accounts can be fetched (although
      without investments details and history).
      5ff962ab
  15. 22 May, 2020 1 commit
  16. 07 May, 2020 4 commits
  17. 22 Apr, 2020 2 commits
  18. 09 Apr, 2020 2 commits