@@ -879,7 +879,7 @@ def create_sketch(self, privacy, name, description):
879
879
"""Creates a sketch with a given name"""
880
880
createSketchBtn = self .get_element (By .ID , 'create_sketch_btn' )
881
881
createSketchBtn .click ()
882
- WebDriverWait (self .driver , VERIFY_TIMEOUT ).until (
882
+ WebDriverWait (self .driver , TIMEOUT [ 'LOCATE_ELEMENT' ] ).until (
883
883
expected_conditions .visibility_of_element_located (
884
884
(By .CSS_SELECTOR , "#create-sketch-modal" )
885
885
)
@@ -893,12 +893,18 @@ def create_sketch(self, privacy, name, description):
893
893
894
894
createBtn = self .get_element (By .ID , 'create-sketch-modal-action-button' )
895
895
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" )
900
900
)
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 (
902
908
expected_conditions .element_to_be_clickable (
903
909
(By .CSS_SELECTOR , "#editor_heading_project_name" )
904
910
)
0 commit comments