@@ -688,8 +688,7 @@ def implicitly_wait(self, time_to_wait):
688
688
"""
689
689
if self .w3c :
690
690
self .execute (Command .SET_TIMEOUTS , {
691
- 'ms' : float (time_to_wait ) * 1000 ,
692
- 'type' : 'implicit' })
691
+ 'implicit' : int (float (time_to_wait ) * 1000 )})
693
692
else :
694
693
self .execute (Command .IMPLICIT_WAIT , {
695
694
'ms' : float (time_to_wait ) * 1000 })
@@ -707,8 +706,7 @@ def set_script_timeout(self, time_to_wait):
707
706
"""
708
707
if self .w3c :
709
708
self .execute (Command .SET_TIMEOUTS , {
710
- 'ms' : float (time_to_wait ) * 1000 ,
711
- 'type' : 'script' })
709
+ 'script' : int (float (time_to_wait ) * 1000 )})
712
710
else :
713
711
self .execute (Command .SET_SCRIPT_TIMEOUT , {
714
712
'ms' : float (time_to_wait ) * 1000 })
@@ -725,8 +723,7 @@ def set_page_load_timeout(self, time_to_wait):
725
723
driver.set_page_load_timeout(30)
726
724
"""
727
725
self .execute (Command .SET_TIMEOUTS , {
728
- 'ms' : float (time_to_wait ) * 1000 ,
729
- 'type' : 'page load' })
726
+ 'page load' : int (float (time_to_wait ) * 1000 )})
730
727
731
728
def find_element (self , by = By .ID , value = None ):
732
729
"""
0 commit comments