We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cce0c9 commit 24c2c4fCopy full SHA for 24c2c4f
py/conftest.py
@@ -92,10 +92,8 @@ def pytest_ignore_collect(path, config):
92
def driver(request):
93
kwargs = {}
94
95
- try:
96
- driver_class = request.param.capitalize()
97
- except AttributeError:
98
- raise Exception("This test requires a --driver to be specified.")
+ # browser can be changed with `--driver=firefox` as an argument or in pytest.ini
+ driver_class = request.param.capitalize() if request.param else "Chrome"
99
100
# skip tests if not available on the platform
101
_platform = platform.system()
0 commit comments