Skip to content

Commit

Permalink
Merge 83c2eb7 into 15541eb
Browse files Browse the repository at this point in the history
  • Loading branch information
stevetracvc authored Aug 14, 2023
2 parents 15541eb + 83c2eb7 commit 54485db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions py/selenium/webdriver/common/selenium_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# under the License.
import json
import logging
import os
import subprocess
import sys
from pathlib import Path
Expand Down Expand Up @@ -53,6 +54,10 @@ def get_binary() -> Path:

path = Path(__file__).parent.joinpath(directory, file)

if not path.is_file() and os.environ['CONDA_PREFIX']:
# conda has a separate package selenium-manager, installs in bin
path = Path(os.path.join(os.environ['CONDA_PREFIX'], 'bin', file))
logger.debug(f"Conda environment detected, using `{path}`")
if not path.is_file():
raise WebDriverException(f"Unable to obtain working Selenium Manager binary; {path}")

Expand Down

0 comments on commit 54485db

Please sign in to comment.