webdriver_manager icon indicating copy to clipboard operation
webdriver_manager copied to clipboard

Use with Vivaldi chrometype

Open Ashark opened this issue 3 years ago • 4 comments

The readme misses description for Vivaldi browser, which I use. In ChromeType object I see CHROMIUM, BRAVE, MSEDGE, GOOGLE, but no VIVALDI.

I tried to use webdriver_manager with vivaldi as chrome_type=ChromeType.CHROMIUM, and it worked until now. I made a system upgrade (I use Arch by the way), and chromium package was updated to version to 101.0.4951.41. While vivaldi-snapshot stayed at 5.3.2656.3 (uses version 100.0.4896.133 internally).

Now when I run my script, I get error:

from session not created: This version of ChromeDriver only supports Chrome version 101
Current browser version is 100.0.4896.133

Uninstalling chromium made webdriver_manager confused, because it could not find its binary: Could not get version for chromium.Is chromium installed?

workaround 1

You can use version parameter. As said in drivers download page:

If you are using Chrome version 100, please download ChromeDriver 100.0.4896.60

So I can use

driver = webdriver.Chrome(service=Service(ChromeDriverManager(chrome_type=ChromeType.CHROMIUM, version="100.0.4896.60").install()), options=chrome_options)

workaround 2

Downgrade chromium/vivaldi and keep an eye that vivaldi's internal version and chromium version matches.

Ashark avatar Apr 28 '22 04:04 Ashark

There was a similar commit for brave browser: https://github.com/SergeyPirogov/webdriver_manager/pull/331/commits/a28e1bb3baa1b7c50d523930b052455ccbec3cf9

Ashark avatar Apr 29 '22 10:04 Ashark

Please provide more details if you can. I can not understand the source of the problem

SergeyPirogov avatar May 22 '22 17:05 SergeyPirogov

The task is to add support of a new browser type called Vivaldi. It is based on Chromium. Vivaldi uses the usual chromium web driver. But vivaldi has their own versioning.

The task is to make webdriver manager to understand which chromium driver version is needed for the vivaldi browser.

Ashark avatar Aug 10 '22 00:08 Ashark

Can you please reopen?

Ashark avatar Aug 15 '22 02:08 Ashark

It is probably easier to fix than I think. Because as I said, webdriver manager can determine the internal chromium version of vivaldi. The error message is the following:

selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:9222
from session not created: This version of ChromeDriver only supports Chrome version 107
Current browser version is 106.0.5249.169  # <--- It can determine the current version!

Ashark avatar Nov 18 '22 22:11 Ashark

It is probably easier to fix than I think. Because as I said, webdriver manager can determine the internal chromium version of vivaldi. The error message is the following:

selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:9222
from session not created: This version of ChromeDriver only supports Chrome version 107
Current browser version is 106.0.5249.169  # <--- It can determine the current version!

@Ashark No, It's selenium which determines the underhood version in your message.

But you are right need the same commit as BRAVE and don't forget about updating README.md

There was a similar commit for brave browser: https://github.com/SergeyPirogov/webdriver_manager/commit/a28e1bb3baa1b7c50d523930b052455ccbec3cf9

You can try to make a PR 😉

aleksandr-kotlyar avatar Feb 05 '23 16:02 aleksandr-kotlyar

The Vivaldi is not added in ChromeType. Can you please reopen?

Ashark avatar Oct 26 '23 17:10 Ashark