From 6caf8fe3d09b24c095ff88daea001ae1312aac5a Mon Sep 17 00:00:00 2001 From: Leon Date: Tue, 29 Nov 2022 11:16:45 +0100 Subject: [PATCH] add additional search path for x32 and updated 'port' description --- undetected_chromedriver/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/undetected_chromedriver/__init__.py b/undetected_chromedriver/__init__.py index 66214e1..7ab24be 100644 --- a/undetected_chromedriver/__init__.py +++ b/undetected_chromedriver/__init__.py @@ -152,8 +152,10 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver): If not specified, make sure the executable's folder is in $PATH port: int, optional, default: 0 - port you would like the service to run, if left as 0, a free port will be found. - + port to be used by the chromedriver executable, this is NOT the debugger port. + leave it at 0 unless you know what you are doing. + the default value of 0 automatically picks an available port. + enable_cdp_events: bool, default: False :: currently for chrome only this enables the handling of wire messages @@ -805,7 +807,7 @@ def find_chrome_executable(): ) else: for item in map( - os.environ.get, ("PROGRAMFILES", "PROGRAMFILES(X86)", "LOCALAPPDATA") + os.environ.get, ("PROGRAMFILES", "PROGRAMFILES(X86)", "LOCALAPPDATA", "PROGRAMW6432") ): if item is not None: for subitem in (