Add RawPage to Browser2
This commit is contained in:
parent
e321da495a
commit
d768de6638
1 changed files with 7 additions and 0 deletions
|
|
@ -421,6 +421,13 @@ class JsonPage(BasePage):
|
||||||
super(JsonPage, self).__init__(browser, response, *args, **kwargs)
|
super(JsonPage, self).__init__(browser, response, *args, **kwargs)
|
||||||
self.doc = json.loads(response.text)
|
self.doc = json.loads(response.text)
|
||||||
|
|
||||||
|
|
||||||
|
class RawPage(BasePage):
|
||||||
|
def __init__(self, browser, response, *args, **kwargs):
|
||||||
|
super(RawPage, self).__init__(browser, response, *args, **kwargs)
|
||||||
|
self.doc = response.content
|
||||||
|
|
||||||
|
|
||||||
class HTMLPage(BasePage):
|
class HTMLPage(BasePage):
|
||||||
"""
|
"""
|
||||||
HTML page.
|
HTML page.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue