mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
add body property
This commit is contained in:
parent
f9dd7c16e7
commit
c9a850492d
@ -18,6 +18,11 @@ class Notebook:
|
||||
|
||||
def __init__(self, browser):
|
||||
self.browser = browser
|
||||
|
||||
@property
|
||||
def body(self):
|
||||
return self.browser.find_element_by_tag_name("body")
|
||||
|
||||
@property
|
||||
def cells(self):
|
||||
return self.browser.find_elements_by_class_name("cell")
|
||||
|
Loading…
Reference in New Issue
Block a user