title: Control Vivaldi browser
body: <p>I want to manage the tabs of Vivaldi (Windows) using Python: get URLs, focus a specific tab, open, close, reload...<br>
  <a href="https://stackoverflow.com/questions/59644818/how-to-initiate-a-chromium-based-vivaldi-browser-session-using-selenium-and-pyth">This post</a> asks how to open Vivaldi, and my script does it, but not when/how it's supposed to do it:</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.chrome.service import Service
  import os
  
  current_user = os.getlogin()
  s = Service(rf&quot;C:\Users\{current_user}\AppData\Local\Vivaldi\Application\vivaldi.exe&quot;)
  driver = webdriver.Chrome(service=s)
  </code></pre>
  <p>The last line opens a new (unwanted) window of Vivaldi, which baffles me because I thought it should only declare a variable, and then nothing happens for some minutes. Finally I get this error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Users\Negozio\Dropbox\D.Apps\Negozio\Conta\test.py&quot;, line 7, in &lt;module&gt;
      driver = webdriver.Chrome(service=s)
    File &quot;C:\Program Files\Python310\lib\site-packages\selenium\webdriver\chrome\webdriver.py&quot;, line 70, in __init__
      super(WebDriver, self).__init__(DesiredCapabilities.CHROME['browserName'], &quot;goog&quot;,
    File &quot;C:\Program Files\Python310\lib\site-packages\selenium\webdriver\chromium\webdriver.py&quot;, line 90, in __init__
      self.service.start()
    File &quot;C:\Program Files\Python310\lib\site-packages\selenium\webdriver\common\service.py&quot;, line 105, in start
      raise WebDriverException(&quot;Can not connect to the Service %s&quot; % self.path)
  selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service C:\Users\Negozio\AppData\Local\Vivaldi\Application\vivaldi.exe
  </code></pre>
  <p>I thought that Vivaldi should open with <code>driver.get(&quot;http://url.com&quot;)</code>, am I wrong? What's happening here, and above all how can I manage Vivaldi with Python?</p>