diff --git a/modules/cragr/regions/browser.py b/modules/cragr/regions/browser.py index f9e6eb629f7882010e7d8fdc7d8f6115046bdc78..0140505ef74745ae950912fbad18038f03431ab4 100644 --- a/modules/cragr/regions/browser.py +++ b/modules/cragr/regions/browser.py @@ -338,8 +338,11 @@ def iter_perimeter_accounts(self, iban, all_accounts): self.accounts.stay_or_go() self.page.set_cragr_code() for account in self.page.iter_accounts(): + self.accounts.go() if iban and account._form: - account.iban = self.get_account_iban(account._form) + # Refresh account form in case it expired + refreshed_account = find_object(self.page.iter_accounts(), id=account.id) + account.iban = self.get_account_iban(refreshed_account._form) if account.id not in [a.id for a in cragr_accounts]: cragr_accounts.append(account)