Skip to content

Commit d7b724a

Browse files
committed
refactor: update Safari options documentation for clarity and consistency
1 parent 70b8390 commit d7b724a

File tree

1 file changed

+6
-40
lines changed

1 file changed

+6
-40
lines changed

py/selenium/webdriver/safari/options.py

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -66,48 +66,14 @@ class Options(ArgOptions):
6666
SAFARI_TECH_PREVIEW = "Safari Technology Preview"
6767

6868
# creating descriptor objects
69-
automatic_inspection = _SafariOptionsDescriptor(AUTOMATIC_INSPECTION, bool)
70-
"""Get or Set Automatic Inspection value:
69+
automatic_inspection : bool = _SafariOptionsDescriptor(AUTOMATIC_INSPECTION, bool)
70+
"""Whether to enable automatic inspection."""
7171

72-
Usage:
73-
------
74-
- Get
75-
- `self.automatic_inspection`
76-
- Set
77-
- `self.automatic_inspection` = `value`
72+
automatic_profiling : bool = _SafariOptionsDescriptor(AUTOMATIC_PROFILING, bool)
73+
"""Whether to enable automatic profiling."""
7874

79-
Parameters:
80-
-----------
81-
`value`: `bool`
82-
"""
83-
automatic_profiling = _SafariOptionsDescriptor(AUTOMATIC_PROFILING, bool)
84-
"""Get or Set Automatic Profiling value:
85-
86-
Usage:
87-
------
88-
- Get
89-
- `self.automatic_profiling`
90-
- Set
91-
- `self.automatic_profiling` = `value`
92-
93-
Parameters:
94-
-----------
95-
`value`: `bool`
96-
"""
97-
use_technology_preview = _SafariOptionsDescriptor(SAFARI_TECH_PREVIEW, bool)
98-
"""Get and Set Technology Preview:
99-
100-
Usage:
101-
------
102-
- Get
103-
- `self.use_technology_preview`
104-
- Set
105-
- `self.use_technology_preview` = `value`
106-
107-
Parameters:
108-
-----------
109-
`value`: `bool`
110-
"""
75+
use_technology_preview : bool = _SafariOptionsDescriptor(SAFARI_TECH_PREVIEW, bool)
76+
"""Whether to use Safari Technology Preview."""
11177

11278
@property
11379
def default_capabilities(self) -> dict[str, str]:

0 commit comments

Comments
 (0)