Skip to content

Commit d8120e5

Browse files
committed
Rename ctrl method to cmdtrl which covers the mains OS
1 parent 35a19e9 commit d8120e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notebook/tests/selenium/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def edit_cell(self, cell=None, index=0, content="", render=False):
239239

240240
# Select & delete anything already in the cell
241241
self.current_cell.send_keys(Keys.ENTER)
242-
ctrl(self.browser, 'a')
242+
cmdtrl(self.browser, 'a')
243243
self.current_cell.send_keys(Keys.DELETE)
244244

245245
for line_no, line in enumerate(content.splitlines()):
@@ -355,7 +355,7 @@ def shift(browser, k):
355355
"""Send key combination Shift+(k)"""
356356
trigger_keystrokes(browser, "shift-%s"%k)
357357

358-
def ctrl(browser, k):
358+
def cmdtrl(browser, k):
359359
"""Send key combination Ctrl+(k) or Command+(k) for MacOS"""
360360
trigger_keystrokes(browser, "command-%s"%k) if os.uname()[0] == "Darwin" else trigger_keystrokes(browser, "control-%s"%k)
361361

0 commit comments

Comments
 (0)