diff --git a/notebook/tests/selenium/test_dualmode_cellmode.py b/notebook/tests/selenium/test_dualmode_cellmode.py index 50e7f7c84..c89d6acd9 100644 --- a/notebook/tests/selenium/test_dualmode_cellmode.py +++ b/notebook/tests/selenium/test_dualmode_cellmode.py @@ -1,10 +1,9 @@ """Test keyboard shortcuts that change the cell's mode.""" -from selenium.webdriver.common.keys import Keys def test_dualmode_cellmode(notebook): def get_cell_cm_mode(index): code_mirror_mode = notebook.browser.execute_script( - "return Jupyter.notebook.get_cell("+str(index)+").code_mirror.getMode().name;") + "return Jupyter.notebook.get_cell(%s).code_mirror.getMode().name;"%index) return code_mirror_mode