Skip to content

Commit 5434dd8

Browse files
resolved merge conflicts
1 parent 1126a38 commit 5434dd8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

py/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,10 @@ def driver(request):
304304
if not selenium_driver.is_platform_valid:
305305
pytest.skip(f"{driver_class} tests can only run on {selenium_driver.exe_platform}")
306306

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+
307311
# skip tests for drivers that don't support BiDi when --bidi is enabled
308312
if selenium_driver.bidi:
309313
if driver_class.lower() not in selenium_driver.supported_bidi_drivers:

0 commit comments

Comments
 (0)