##// END OF EJS Templates
Added get_cell_text
Jonathan Frederic -
Show More
@@ -153,6 +153,14 b' casper.set_cell_text = function(index, text){'
153 }, index, text);
153 }, index, text);
154 };
154 };
155
155
156 // Get the text content of a cell.
157 casper.get_cell_text = function(index){
158 return this.evaluate(function (index) {
159 var cell = IPython.notebook.get_cell(index);
160 return cell.get_text();
161 }, index);
162 };
163
156 // Inserts a cell at the bottom of the notebook
164 // Inserts a cell at the bottom of the notebook
157 // Returns the new cell's index.
165 // Returns the new cell's index.
158 casper.insert_cell_at_bottom = function(cell_type){
166 casper.insert_cell_at_bottom = function(cell_type){
General Comments 0
You need to be logged in to leave comments. Login now