diff --git a/appium/options/ios/xcuitest/other/other_options.py b/appium/options/ios/xcuitest/other/other_options.py index fdcacb7f..1044acc1 100644 --- a/appium/options/ios/xcuitest/other/other_options.py +++ b/appium/options/ios/xcuitest/other/other_options.py @@ -40,9 +40,9 @@ def __get__(self, obj: C, cls: type[C]) -> Any: def __set__(self, obj: C, value: Any) -> C: if self.name == 'COMMAND_TIMEOUTS': if isinstance(value, dict): - getattr(obj, 'set_capability')(self.name, {k: int(v.total_seconds() * 1000) for k, v in value.items()}) + return getattr(obj, 'set_capability')(self.name, {k: int(v.total_seconds() * 1000) for k, v in value.items()}) elif isinstance(value, timedelta): - getattr(obj, 'set_capability')(self.name, f'{int(value.total_seconds() * 1000)}') + return getattr(obj, 'set_capability')(self.name, f'{int(value.total_seconds() * 1000)}') else: return getattr(obj, 'set_capability')(self.name, value) return getattr(obj, 'set_capability')(self.name, value)