Modified the Options class in src/selenium_driverless/types/options.py to postpone the execution of find_chrome_executable() until binary_location is accessed for the first time, unless it has been explicitly set earlier. This adjustment aims to eliminate unneeded file system checks.
Updated the find_chrome_executable() function in src/selenium_driverless/utils/utils.py to include validations ensuring that PATH is not None before processing it. This enhancement helps avert possible AttributeError on POSIX systems where PATH might be unset.
Modified the Options class in
src/selenium_driverless/types/options.py
to postpone the execution offind_chrome_executable()
untilbinary_location
is accessed for the first time, unless it has been explicitly set earlier. This adjustment aims to eliminate unneeded file system checks.Updated the
find_chrome_executable()
function insrc/selenium_driverless/utils/utils.py
to include validations ensuring that PATH is not None before processing it. This enhancement helps avert possible AttributeError on POSIX systems where PATH might be unset.