ledirect title is good now closes #510
This commit is contained in:
parent
b449bdc521
commit
3f9cfc1029
4 changed files with 10 additions and 1 deletions
0
test
0
test
|
|
@ -38,3 +38,10 @@ class ArticlePage(SimplePage):
|
|||
except NoAuthorElement:
|
||||
pass
|
||||
return self.browser.parser.tostring(element_body)
|
||||
|
||||
def on_loaded(self):
|
||||
self.main_div = self.document.getroot()
|
||||
self.element_author_selector = "div.mna-signature"
|
||||
self.element_body_selector = "div.mna-body"
|
||||
self.element_title_selector = "h1"
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class Article(object):
|
|||
class GenericNewsPage(BasePage):
|
||||
__element_body = NotImplementedError
|
||||
__article = Article
|
||||
element_title_selector = "h1"
|
||||
element_title_selector = NotImplementedError
|
||||
main_div = NotImplementedError
|
||||
element_body_selector = NotImplementedError
|
||||
element_author_selector = NotImplementedError
|
||||
|
|
|
|||
|
|
@ -24,4 +24,6 @@ class SimplePage(GenericNewsPage):
|
|||
self.main_div = self.document.getroot()
|
||||
self.element_author_selector = "div.mna-signature"
|
||||
self.element_body_selector = "div.mna-body"
|
||||
self.element_title_selector = "div.mn-left>h1"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue