Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
weboob
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
177
Issues
177
List
Boards
Labels
Milestones
Merge Requests
49
Merge Requests
49
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
weboob
weboob
Commits
5dc37e3f
Commit
5dc37e3f
authored
Feb 26, 2019
by
Maxime Gasselin
Committed by
Romain Bignon
Feb 27, 2019
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bp] Handle new history url case
In some case the url is inside the span tag. Closes: 37311@sibi
parent
6861cd24
Pipeline
#2051
passed with stages
in 17 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
modules/bp/pages/accountlist.py
modules/bp/pages/accountlist.py
+3
-1
No files found.
modules/bp/pages/accountlist.py
View file @
5dc37e3f
...
...
@@ -29,7 +29,7 @@ from weboob.capabilities.contact import Advisor
from
weboob.capabilities.profile
import
Person
from
weboob.browser.elements
import
ListElement
,
ItemElement
,
method
,
TableElement
from
weboob.browser.pages
import
LoggedPage
,
RawPage
,
PartialHTMLPage
,
HTMLPage
from
weboob.browser.filters.html
import
Link
,
TableCell
from
weboob.browser.filters.html
import
Link
,
TableCell
,
Attr
from
weboob.browser.filters.standard
import
CleanText
,
CleanDecimal
,
Regexp
,
Env
,
Field
,
Currency
,
Async
,
Date
,
Format
from
weboob.exceptions
import
BrowserUnavailable
from
weboob.tools.compat
import
urljoin
,
unicode
...
...
@@ -57,6 +57,8 @@ class item_account_generic(ItemElement):
def
obj_url
(
self
):
url
=
Link
(
u'./a'
,
default
=
NotAvailable
)(
self
)
if
not
url
:
url
=
Regexp
(
Attr
(
u'.//span'
,
'onclick'
,
default
=
''
),
r'\'(https.*)\''
,
default
=
NotAvailable
)(
self
)
if
url
:
if
'CreditRenouvelable'
in
url
:
url
=
Link
(
u'.//a[contains(text(), "espace de gestion crédit renouvelable")]'
)(
self
.
el
)
...
...
JaXX
@jaxx
mentioned in issue
#239 (closed)
·
Mar 12, 2019
mentioned in issue
#239 (closed)
mentioned in issue #239
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment