MCPcopy
hub / github.com/microsoft/playwright-python / to_milliseconds

Function to_milliseconds

playwright/_impl/_helper.py:582–589  ·  view source on GitHub ↗
(
    value: Union[float, datetime.timedelta, None],
)

Source from the content-addressed store, hash-verified

580
581
582def to_milliseconds(
583 value: Union[float, datetime.timedelta, None],
584) -> Optional[float]:
585 if value is None:
586 return None
587 if isinstance(value, datetime.timedelta):
588 return value / datetime.timedelta(milliseconds=1)
589 return value

Callers 15

fetchMethod · 0.90
expect_eventMethod · 0.90
wait_for_eventMethod · 0.90
hoverMethod · 0.90
clickMethod · 0.90
dblclickMethod · 0.90
select_optionMethod · 0.90
tapMethod · 0.90
fillMethod · 0.90
select_textMethod · 0.90
input_valueMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected