Skip to content

Commit 08d0b56

Browse files
committed
Fix waiting for dialog to close before clicking menu again
1 parent 934c7dd commit 08d0b56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

notebook/tests/selenium/test_kernel_menu.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ def test_menu_items(notebook):
4949
# Restart
5050
# Selenium can't click the menu while a modal dialog is fading out
5151
WebDriverWait(browser, 3).until(
52-
EC.element_to_be_clickable((By.ID, 'kernellink'))).click()
52+
EC.invisibility_of_element((By.CSS_SELECTOR, '.modal-backdrop'))
53+
)
54+
kernel_menu.click()
5355

5456
wait_for_selector(browser, menu_item, visible=True, single=True).click()
5557
WebDriverWait(browser, 10).until(

0 commit comments

Comments
 (0)