Added a work-around for weird "is not clickable" errors when running tests in Chrome.

master
Pacman Ghost 6 years ago
parent 8fdcd4fcb8
commit 7211c721bd
  1. 5
      vasl_templates/webapp/tests/utils.py

@ -98,7 +98,10 @@ def select_menu_option( menu_id ):
elem.click()
elem = find_child( "a.PopMenu-Link[data-name='{}']".format( menu_id ) )
elem.click()
wait_for( 5, lambda: find_child("#menu .PopMenu-Container") is None ) # nb: wait for the menu to go away
wait_for( 2, lambda: find_child("#menu .PopMenu-Container") is None ) # nb: wait for the menu to go away
if pytest.config.option.webdriver == "chrome": #pylint: disable=no-member
# FUDGE! Work-around weird "is not clickable" errors because the PopMenu is still around :-/
time.sleep( 0.25 )
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Loading…
Cancel
Save