revert changes to new BNP website which has been removed
This commit is contained in:
parent
3ec65f7a55
commit
acbf167f8c
8 changed files with 91 additions and 97 deletions
|
|
@ -18,7 +18,6 @@
|
|||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
import re
|
||||
from weboob.tools.mech import ClientForm
|
||||
import urllib
|
||||
from logging import error
|
||||
|
|
@ -60,21 +59,8 @@ class LoginPage(BasePage):
|
|||
|
||||
|
||||
class ConfirmPage(BasePage):
|
||||
def get_error(self):
|
||||
for td in self.document.xpath('//td[@class="hdvon1"]'):
|
||||
if td.text:
|
||||
return td.text.strip()
|
||||
return None
|
||||
pass
|
||||
|
||||
def get_relocate_url(self):
|
||||
script = self.document.xpath('//script')[0]
|
||||
m = re.match('document.location.replace\("(.*)"\)', script.text[script.text.find('document.location.replace'):])
|
||||
if m:
|
||||
return m.group(1)
|
||||
|
||||
class MessagePage(BasePage):
|
||||
def on_loaded(self):
|
||||
pass
|
||||
|
||||
class ChangePasswordPage(BasePage):
|
||||
def change_password(self, current, new):
|
||||
|
|
@ -92,12 +78,7 @@ class ChangePasswordPage(BasePage):
|
|||
|
||||
data = {'ch1': code_current,
|
||||
'ch2': code_new,
|
||||
'ch3': code_new,
|
||||
'radiobutton3': 'radiobutton',
|
||||
'x': 12,
|
||||
'y': 9,
|
||||
'ch3': code_new
|
||||
}
|
||||
|
||||
headers = {'Referer': self.url}
|
||||
request = self.browser.request_class('https://www.secure.bnpparibas.net/SAF_CHM_VALID', urllib.urlencode(data), headers)
|
||||
self.browser.location(request)
|
||||
self.browser.location('/SAF_CHM_VALID', urllib.urlencode(data))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue