diff --git a/IPython/html/tests/widgets/widget.js b/IPython/html/tests/widgets/widget.js
index dce37a2..787b0f2 100644
--- a/IPython/html/tests/widgets/widget.js
+++ b/IPython/html/tests/widgets/widget.js
@@ -149,7 +149,7 @@ casper.notebook_test(function () {
'import time\n' +
'textbox = widgets.TextWidget()\n' +
'display(textbox)\n' +
- 'textbox.add_class("my-throttle-textbox")\n' +
+ 'textbox.add_class("my-throttle-textbox", selector="input")\n' +
'def handle_change(name, old, new):\n' +
' display(len(new))\n' +
' time.sleep(0.5)\n' +
diff --git a/IPython/html/tests/widgets/widget_float.js b/IPython/html/tests/widgets/widget_float.js
index 5b6f85d..a26c42d 100644
--- a/IPython/html/tests/widgets/widget_float.js
+++ b/IPython/html/tests/widgets/widget_float.js
@@ -11,7 +11,7 @@ casper.notebook_test(function () {
float_text.index = this.append_cell(
'float_widget = widgets.FloatTextWidget()\n' +
'display(float_widget)\n' +
- 'float_widget.add_class("my-second-float-text")\n' +
+ 'float_widget.add_class("my-second-float-text", selector="input")\n' +
'print(float_widget.model_id)\n');
this.execute_cell_then(float_text.index, function(index){
float_text.model_id = this.get_output_cell(index).text.trim();
diff --git a/IPython/html/tests/widgets/widget_int.js b/IPython/html/tests/widgets/widget_int.js
index 038fcbe..4393664 100644
--- a/IPython/html/tests/widgets/widget_int.js
+++ b/IPython/html/tests/widgets/widget_int.js
@@ -6,12 +6,12 @@ casper.notebook_test(function () {
'print("Success")');
this.execute_cell_then(index);
- var int_text = {}
+ var int_text = {};
int_text.query = '.widget-area .widget-subarea .widget-hbox-single .my-second-int-text';
int_text.index = this.append_cell(
'int_widget = widgets.IntTextWidget()\n' +
'display(int_widget)\n' +
- 'int_widget.add_class("my-second-int-text")\n' +
+ 'int_widget.add_class("my-second-int-text", selector="input")\n' +
'print(int_widget.model_id)\n');
this.execute_cell_then(int_text.index, function(index){
int_text.model_id = this.get_output_cell(index).text.trim();
@@ -69,7 +69,7 @@ casper.notebook_test(function () {
'intrange = [widgets.BoundedIntTextWidget(),\n' +
' widgets.IntSliderWidget()]\n' +
'[display(intrange[i]) for i in range(2)]\n' +
- 'intrange[0].add_class("my-second-num-test-text")\n' +
+ 'intrange[0].add_class("my-second-num-test-text", selector="input")\n' +
'print(intrange[0].model_id)\n');
this.execute_cell_then(int_text2.index, function(index){
int_text2.model_id = this.get_output_cell(index).text.trim();