From 3a7c1be68ccc19b17ec7aa5c0ae69649c9d8b9bc Mon Sep 17 00:00:00 2001 From: Vincent Ardisson Date: Wed, 17 Apr 2019 16:21:31 +0200 Subject: [PATCH] [bp] handle virtualkeyboard image with RawPage to avoid warnings Avoids warnings like "encoding error : input conversion failed due to input error, [...]" because the URL was handled by LoginPage (HTMLPage). --- modules/bp/browser.py | 1 + modules/bp/pages/accountlist.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/bp/browser.py b/modules/bp/browser.py index c6055cf3d6..e075b7c4b6 100644 --- a/modules/bp/browser.py +++ b/modules/bp/browser.py @@ -54,6 +54,7 @@ class BPBrowser(LoginBrowser, StatesMixin): # FIXME beware that '.*' in start of URL() won't match all domains but only under BASEURL + login_image = URL(r'.*wsost/OstBrokerWeb/loginform\?imgid=', UselessPage) login_page = URL(r'.*wsost/OstBrokerWeb/loginform.*', LoginPage) repositionner_chemin_courant = URL(r'.*authentification/repositionnerCheminCourant-identif.ea', repositionnerCheminCourant) init_ident = URL(r'.*authentification/initialiser-identif.ea', Initident) diff --git a/modules/bp/pages/accountlist.py b/modules/bp/pages/accountlist.py index 351bd2aea3..efa58d0568 100644 --- a/modules/bp/pages/accountlist.py +++ b/modules/bp/pages/accountlist.py @@ -455,7 +455,7 @@ def on_load(self): self.get_form(id='autoSubmit').submit() -class UselessPage(LoggedPage, HTMLPage): +class UselessPage(LoggedPage, RawPage): pass -- GitLab