|
18 | 18 | from .utils import CaseInsensitiveDict |
19 | 19 | from . import drivers |
20 | 20 |
|
21 | | -import warnings |
22 | 21 |
|
23 | 22 | LOGGER = logging.getLogger(__name__) |
24 | 23 |
|
@@ -228,22 +227,6 @@ def selenium(driver): |
228 | 227 |
|
229 | 228 | @pytest.hookimpl(trylast=True) |
230 | 229 | def pytest_configure(config): |
231 | | - if config.getoption("host"): |
232 | | - warnings.warn( |
233 | | - "--host has been deprecated and will be removed in a " |
234 | | - "future release. Please use --selenium-host instead.", |
235 | | - DeprecationWarning, |
236 | | - ) |
237 | | - config.option.selenium_host = config.getoption("host") |
238 | | - |
239 | | - if config.getoption("port"): |
240 | | - warnings.warn( |
241 | | - "--port has been deprecated and will be removed in a " |
242 | | - "future release. Please use --selenium-port instead.", |
243 | | - DeprecationWarning, |
244 | | - ) |
245 | | - config.option.selenium_port = config.getoption("port") |
246 | | - |
247 | 230 | capabilities = config._variables.get("capabilities", {}) |
248 | 231 | capabilities.update({k: v for k, v in config.getoption("capabilities")}) |
249 | 232 | config.addinivalue_line( |
@@ -479,21 +462,6 @@ def pytest_addoption(parser): |
479 | 462 | help="selenium eventlistener class, e.g. " |
480 | 463 | "package.module.EventListenerClassName.", |
481 | 464 | ) |
482 | | - group._addoption( |
483 | | - "--host", |
484 | | - metavar="str", |
485 | | - help="DEPRECATED host that the selenium server is listening on, " |
486 | | - "which will default to the cloud provider default " |
487 | | - "or localhost.", |
488 | | - ) |
489 | | - group._addoption( |
490 | | - "--port", |
491 | | - type=int, |
492 | | - metavar="num", |
493 | | - help="DEPRECATED port that the selenium server is listening on, " |
494 | | - "which will default to the cloud provider default " |
495 | | - "or localhost.", |
496 | | - ) |
497 | 465 | group._addoption( |
498 | 466 | "--selenium-host", |
499 | 467 | metavar="str", |
|
0 commit comments