File tree 1 file changed +11
-3
lines changed
py/selenium/webdriver/remote
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -641,7 +641,11 @@ def implicitly_wait(self, time_to_wait):
641
641
:Usage:
642
642
driver.implicitly_wait(30)
643
643
"""
644
- self .execute (Command .IMPLICIT_WAIT , {'ms' : float (time_to_wait ) * 1000 })
644
+ if self .capabilities ["marionette" ] == True :
645
+ self .execute (Command .SET_TIMEOUTS ,
646
+ {'ms' : float (time_to_wait ) * 1000 , 'type' :'implicit' })
647
+ else :
648
+ self .execute (Command .IMPLICIT_WAIT , {'ms' : float (time_to_wait ) * 1000 })
645
649
646
650
def set_script_timeout (self , time_to_wait ):
647
651
"""
@@ -654,8 +658,12 @@ def set_script_timeout(self, time_to_wait):
654
658
:Usage:
655
659
driver.set_script_timeout(30)
656
660
"""
657
- self .execute (Command .SET_SCRIPT_TIMEOUT ,
658
- {'ms' : float (time_to_wait ) * 1000 })
661
+ if self .capabilities ["marionette" ] == True :
662
+ self .execute (Command .SET_TIMEOUTS ,
663
+ {'ms' : float (time_to_wait ) * 1000 , 'type' :'script' })
664
+ else :
665
+ self .execute (Command .SET_SCRIPT_TIMEOUT ,
666
+ {'ms' : float (time_to_wait ) * 1000 })
659
667
660
668
def set_page_load_timeout (self , time_to_wait ):
661
669
"""
You can’t perform that action at this time.
0 commit comments