[py] Only give deprecation warning if Profile is being used in options
@@ -107,6 +107,7 @@ class Options(ArgOptions):
"""
:Returns: The Firefox profile to use.
"""
+ if self._profile:
warnings.warn(
"Getting a profile has been deprecated.",
DeprecationWarning,
