Show More
@@ -108,8 +108,11 b' casper.notebook_test(function () {' | |||||
108 |
|
108 | |||
109 | // Clear the int textbox value and then set it to 1 by emulating |
|
109 | // Clear the int textbox value and then set it to 1 by emulating | |
110 | // keyboard presses. |
|
110 | // keyboard presses. | |
111 | this.cell_element_function(int_text2.index, int_text2.query, 'val', ['']); |
|
111 | this.evaluate(function(q){ | |
112 | this.sendKeys(int_text2.query, '1'); |
|
112 | var textbox = IPython.notebook.element.find(q); | |
|
113 | textbox.val('1'); | |||
|
114 | textbox.trigger('keyup'); | |||
|
115 | }, {q: int_text2.query}); | |||
113 | }); |
|
116 | }); | |
114 |
|
117 | |||
115 | this.wait_for_widget(int_text2); |
|
118 | this.wait_for_widget(int_text2); | |
@@ -121,8 +124,11 b' casper.notebook_test(function () {' | |||||
121 |
|
124 | |||
122 | // Clear the int textbox value and then set it to 120 by emulating |
|
125 | // Clear the int textbox value and then set it to 120 by emulating | |
123 | // keyboard presses. |
|
126 | // keyboard presses. | |
124 | this.cell_element_function(int_text2.index, int_text2.query, 'val', ['']); |
|
127 | this.evaluate(function(q){ | |
125 | this.sendKeys(int_text2.query, '120'); |
|
128 | var textbox = IPython.notebook.element.find(q); | |
|
129 | textbox.val('120'); | |||
|
130 | textbox.trigger('keyup'); | |||
|
131 | }, {q: int_text2.query}); | |||
126 | }); |
|
132 | }); | |
127 |
|
133 | |||
128 | this.wait_for_widget(int_text2); |
|
134 | this.wait_for_widget(int_text2); | |
@@ -134,8 +140,11 b' casper.notebook_test(function () {' | |||||
134 |
|
140 | |||
135 | // Clear the int textbox value and then set it to 'hello world' by |
|
141 | // Clear the int textbox value and then set it to 'hello world' by | |
136 | // emulating keyboard presses. 'hello world' should get filtered... |
|
142 | // emulating keyboard presses. 'hello world' should get filtered... | |
137 | this.cell_element_function(int_text2.index, int_text2.query, 'val', ['']); |
|
143 | this.evaluate(function(q){ | |
138 | this.sendKeys(int_text2.query, 'hello world'); |
|
144 | var textbox = IPython.notebook.element.find(q); | |
|
145 | textbox.val('hello world'); | |||
|
146 | textbox.trigger('keyup'); | |||
|
147 | }, {q: int_text2.query}); | |||
139 | }); |
|
148 | }); | |
140 |
|
149 | |||
141 | this.wait_for_widget(int_text2); |
|
150 | this.wait_for_widget(int_text2); |
General Comments 0
You need to be logged in to leave comments.
Login now