code: def get_url(self, path=None, query=None):
          
          if urlparse(path).netloc:
              return path
  
          if isinstance(query, dict):
              query = urlencode(query)
  
          url_parts = urlparse(self.current_url)
          new_url_parts = (
              url_parts.scheme,
              url_parts.netloc,
              path or url_parts.path,
              None,  # params
              query,
              None,  # fragment
          )
          url = urlunparse(new_url_parts)
  
          return url
docs: You have to pass absolute URL to method
          :py:meth:`~selenium.webdriver.remote.webdriver.WebDriver.get`. This
          method help you to pass only relative ``path`` and/or ``query``. Scheme
          and domains is append to URL from
          :py:attr:`~selenium.webdriver.remote.webdriver.WebDriver.current_url`.
  
          ``query`` can be final string or dictionary. On dictionary it calls
          :py:func:`urllib.urlencode`.
  
          .. versionadded:: 2.0