MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / pytest_addoption

Function pytest_addoption

py/conftest.py:117–175  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

115
116
117def pytest_addoption(parser):
118 parser.addoption(
119 "--driver",
120 action="append",
121 choices=drivers,
122 dest="drivers",
123 metavar="DRIVER",
124 help="Driver to run tests against ({})".format(", ".join(drivers)),
125 )
126 parser.addoption(
127 "--browser",
128 action="append",
129 choices=drivers,
130 dest="drivers",
131 metavar="BROWSER",
132 help="Browser to run tests against (alias for --driver)",
133 )
134 parser.addoption(
135 "--browser-binary",
136 action="store",
137 dest="binary",
138 help="Location of the browser binary",
139 )
140 parser.addoption(
141 "--driver-binary",
142 action="store",
143 dest="executable",
144 help="Location of the service executable binary",
145 )
146 parser.addoption(
147 "--browser-args",
148 action="store",
149 dest="args",
150 help="Arguments to start the browser with",
151 )
152 parser.addoption(
153 "--headless",
154 action="store_true",
155 dest="headless",
156 help="Run tests in headless mode",
157 )
158 parser.addoption(
159 "--use-lan-ip",
160 action="store_true",
161 dest="use_lan_ip",
162 help="Start test server with lan ip instead of localhost",
163 )
164 parser.addoption(
165 "--bidi",
166 action="store_true",
167 dest="bidi",
168 help="Enable BiDi support",
169 )
170 parser.addoption(
171 "--remote",
172 action="store_true",
173 dest="remote",
174 help="Run tests against a remote Grid server",

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected