Run the sample code that is taken directly from the README:
C:\scripts\venv\Scripts\ipython
Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.18.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: from selenium import webdriver
In [2]: options = webdriver.ChromeOptions()
In [3]: driver = webdriver.Chrome('yandexdriver.exe', options=options)
[7468:6988:1009/141441.187:ERROR:isolated_origin_util.cc(72)] Ignoring port number in isolated origin: chrome://custo
DevTools listening on ws://127.0.0.1:50791/devtools/browser/0710be4b-8f30-438b-99d0-bb39bed79c89
[7468:6988:1009/141441.537:ERROR:custo_page_model_base.cc(2440)] NTP: WallpaperPageView::SetVisible 0
[7468:6988:1009/141441.545:ERROR:custo_page_model_base.cc(2440)] NTP: TabloView::SetVisible 0 0
[7468:6988:1009/141441.545:ERROR:custo_page_model_base.cc(2440)] NTP: ExternalZenPageView::SetVisible
[7468:6988:1009/141441.547:ERROR:custo_page_model_base.cc(2440)] NTP: TabloView::SetVisible 1 0
[7468:6988:1009/141441.605:ERROR:custo_page_model_base.cc(2440)] NTP: CustoPageModelImpl::TopContainerOverlapChanged
[7468:6988:1009/141441.647:ERROR:custo_page_model_base.cc(2440)] NTP: ExternalZenPageView::OnBoundsChanged
[7468:6988:1009/141441.666:ERROR:custo_page_model_base.cc(2440)] NTP: CustoPageModelImpl::ResetDefaultBackgroundState
[7468:6988:1009/141441.740:ERROR:custo_page_model_base.cc(2440)] NTP: WallpaperPageView::SetVisible 0
[7468:6988:1009/141441.771:ERROR:custo_page_model_base.cc(2440)] NTP: ExternalZenPageView::OnBoundsChanged
[7468:6988:1009/141441.789:ERROR:custo_page_model_base.cc(2440)] NTP: CustoPageModelImpl::ResetDefaultBackgroundState
---------------------------------------------------------------------------
SessionNotCreatedException Traceback (most recent call last)
<ipython-input-3-034be38e5f20> in <module>
----> 1 driver = webdriver.Chrome('yandexdriver.exe', options=options)
c:\scripts\venv\lib\site-packages\selenium\webdriver\chrome\webdriver.py in __init__(self, executable_path, port, options, service_args, desired_capabilities, service_log_path, chrome_options, keep_alive)
79 remote_server_addr=self.service.service_url,
80 keep_alive=keep_alive),
---> 81 desired_capabilities=desired_capabilities)
82 except Exception:
83 self.quit()
c:\scripts\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py in __init__(self, command_executor, desired_capabilities, browser_profile, proxy, keep_alive, file_detector, options)
155 warnings.warn("Please use FirefoxOptions to set browser profile",
156 DeprecationWarning, stacklevel=2)
--> 157 self.start_session(capabilities, browser_profile)
158 self._switch_to = SwitchTo(self)
159 self._mobile = Mobile(self)
c:\scripts\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py in start_session(self, capabilities, browser_profile)
250 parameters = {"capabilities": w3c_caps,
251 "desiredCapabilities": capabilities}
--> 252 response = self.execute(Command.NEW_SESSION, parameters)
253 if 'sessionId' not in response:
254 response = response['value']
c:\scripts\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py in execute(self, driver_command, params)
319 response = self.command_executor.execute(driver_command, params)
320 if response:
--> 321 self.error_handler.check_response(response)
322 response['value'] = self._unwrap_value(
323 response.get('value', None))
c:\scripts\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py in check_response(self, response)
240 alert_text = value['alert'].get('text')
241 raise exception_class(message, screen, stacktrace, alert_text)
--> 242 raise exception_class(message, screen, stacktrace)
243
244 def _value_or_default(self, obj, key, default):
SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 75
In [4]: import selenium
In [5]: selenium.__version__
Out[6]: '3.141.0'
Could you please provide some hints on how to obtain matching Yandex Browser and YandexDriver versions? I was unable to find an official Yandex Browser download archive with older versions...
Could you please provide some hints on how to obtain matching Yandex Browser and YandexDriver versions? I was unable to find an official Yandex Browser download archive with older versions...