title: Not able to open the webpage through selenium python
body: <p>I am new to selenium python and I am trying to scrape the data from a website. Below is the code, where I have taken all the necessary precautions to not get blocked.</p>
  <pre><code>from random import randrange
  from selenium import webdriver
  from selenium.webdriver.chrome.options import Options
  
  #Function to generate random useragent.
  def generate_user_agent():
      user_agents_file = open(&quot;user_agents.txt&quot;, &quot;r&quot;)
      user_agents = user_agents_file.read().split(&quot;\n&quot;)
      i = randrange(len(user_agents))
      userAgent = user_agents[i]
      user_agents_file.close()
      return userAgent
  
  #Function to generate random IP address.
  def generate_ip_address():
      proxies_file = open(&quot;proxyscrape_premium_http_proxies.txt&quot;, &quot;r&quot;)
      proxies = proxies_file.read().split(&quot;\n&quot;)
      i = randrange(len(proxies))
      proxy = proxies[i]
      proxies_file.close()
      return proxy
  
  #Function to create and set chrome options.
  def set_chrome_options():
      proxy = generate_ip_address()
      options = webdriver.ChromeOptions()
      options.add_argument(&quot;start-maximized&quot;)
      options.add_argument(&quot;--incognito&quot;)
      options.add_argument(f'--proxy-server={proxy}')
      options.add_experimental_option(&quot;excludeSwitches&quot;, [&quot;enable-automation&quot;])
      options.add_experimental_option('useAutomationExtension', False)
      return options, proxy
  
  #Function to create a webdriver object and set its properties.
  def create_webdriver():
      options, proxy = set_chrome_options()
      userAgent = generate_user_agent()
      webdriver.DesiredCapabilities.CHROME['proxy'] = {
      &quot;httpProxy&quot;: proxy,
      &quot;ftpProxy&quot;: proxy,
      &quot;sslProxy&quot;: proxy,
      &quot;proxyType&quot;: &quot;MANUAL&quot;,}
      webdriver.DesiredCapabilities.CHROME['acceptSslCerts']=True
      driver = webdriver.Chrome(options=options, executable_path=r'chromedriver.exe')
      driver.execute_script(&quot;Object.defineProperty(navigator, 'webdriver', {get: () =&gt; undefined})&quot;)
      driver.execute_cdp_cmd('Network.setUserAgentOverride', {&quot;userAgent&quot;: userAgent})
      return driver
  
  url = 'http://www.doctolib.de/impfung-covid-19-corona/berlin'
  driver = create_webdriver()
  driver.get(url)
  </code></pre>
  <p>The webpage is not opened via selenium web driver(but can be opened normally). Below is the screenshot of how the browser is opened when I run the code.</p>
  <p>Please let me know If I am missing something. Any help would be highly appreciated</p>
  <p>PS: I am using the premium proxies for IP rotation.</p>
  <p><a href="https://i.stack.imgur.com/VZBgS.png" rel="nofollow noreferrer">Browser_output</a></p>