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 1126a38 commit 5434dd8Copy full SHA for 5434dd8
py/conftest.py
@@ -304,6 +304,10 @@ def driver(request):
304
if not selenium_driver.is_platform_valid:
305
pytest.skip(f"{driver_class} tests can only run on {selenium_driver.exe_platform}")
306
307
+ # skip tests in the 'remote' directory if run with a local driver
308
+ if request.node.path.parts[-2] == "remote" and selenium_driver.driver_class != "Remote":
309
+ pytest.skip(f"Remote tests can't be run with driver '{selenium_driver.driver_class}'")
310
+
311
# skip tests for drivers that don't support BiDi when --bidi is enabled
312
if selenium_driver.bidi:
313
if driver_class.lower() not in selenium_driver.supported_bidi_drivers:
0 commit comments