@@ -879,7 +879,7 @@ def create_sketch(self, privacy, name, description):
879879 """Creates a sketch with a given name"""
880880 createSketchBtn = self .get_element (By .ID , 'create_sketch_btn' )
881881 createSketchBtn .click ()
882- WebDriverWait (self .driver , VERIFY_TIMEOUT ).until (
882+ WebDriverWait (self .driver , TIMEOUT [ 'LOCATE_ELEMENT' ] ).until (
883883 expected_conditions .visibility_of_element_located (
884884 (By .CSS_SELECTOR , "#create-sketch-modal" )
885885 )
@@ -893,12 +893,18 @@ def create_sketch(self, privacy, name, description):
893893
894894 createBtn = self .get_element (By .ID , 'create-sketch-modal-action-button' )
895895 createBtn .click ()
896- WebDriverWait ( self . driver , VERIFY_TIMEOUT ). until (
897- expected_conditions . invisibility_of_element_located (
898- ( By . CSS_SELECTOR , "#editor-loading-screen" )
899- )
896+
897+ WebDriverWait ( self . driver , TIMEOUT [ 'LOCATE_ELEMENT' ]). until (
898+ expected_conditions . visibility_of_element_located (
899+ ( By . CSS_SELECTOR , "#editor-loading-screen" )
900900 )
901- WebDriverWait (self .driver , VERIFY_TIMEOUT ).until (
901+ )
902+ WebDriverWait (self .driver , TIMEOUT ['LOCATE_ELEMENT' ]).until (
903+ expected_conditions .invisibility_of_element_located (
904+ (By .CSS_SELECTOR , "#editor-loading-screen" )
905+ )
906+ )
907+ WebDriverWait (self .driver , TIMEOUT ['LOCATE_ELEMENT' ]).until (
902908 expected_conditions .element_to_be_clickable (
903909 (By .CSS_SELECTOR , "#editor_heading_project_name" )
904910 )
0 commit comments