old_contents: """
  @package base
  
  WebDriver Factory class implementation
  It creates a webdriver instance based on browser configurations
  
  Example:
      wdf = WebDriverFactory(browser)
      wdf.getWebDriverInstance()
  """
  import traceback
  from selenium import webdriver
  import os
  
  class WebDriverFactory():
  
      def __init__(self, browser):
          """
          Inits WebDriverFactory class
  
          Returns:
              None
          """
          self.browser = browser
      """
          Set chrome driver and iexplorer environment based on OS
  
          chromedriver = "C:/.../chromedriver.exe"
          os.environ["webdriver.chrome.driver"] = chromedriver
          self.driver = webdriver.Chrome(chromedriver)
  
          PREFERRED: Set the path on the machine where browser will be executed
      """
  
      def getWebDriverInstance(self):
          """
         Get WebDriver Instance based on the browser configuration
  
          Returns:
              'WebDriver Instance'
          """
          baseURL = "https://letskodeit.teachable.com/"
          if self.browser == "iexplorer":
              # Set ie driver
              driver = webdriver.Ie()
          elif self.browser == "firefox":
              driver = webdriver.Firefox()
          elif self.browser == "chrome":
              # Set chrome driver
              driver = webdriver.Chrome()
          else:
              driver = webdriver.Firefox()
          # Setting Driver Implicit Time out for An Element
          driver.implicitly_wait(3)
          # Maximize the window
          driver.maximize_window()
          return driver
new_contents: """
  @package base
  
  WebDriver Factory class implementation
  It creates a webdriver instance based on browser configurations
  
  Example:
      wdf = WebDriverFactory(browser)
      wdf.getWebDriverInstance()
  """
  import traceback
  from selenium import webdriver
  import os
  
  class WebDriverFactory():
  
      def __init__(self, browser):
          """
          Inits WebDriverFactory class
  
          Returns:
              None
          """
          self.browser = browser
  
      def getWebDriverInstance(self):
          """
         Get WebDriver Instance based on the browser configuration
  
          Returns:
              'WebDriver Instance'
          """
          if self.browser == "iexplorer":
              # Set ie driver
              driver = webdriver.Ie()
          elif self.browser == "firefox":
              driver = webdriver.Firefox()
          elif self.browser == "chrome":
              # Set chrome driver
              driver = webdriver.Chrome()
          else:
              driver = webdriver.Firefox()
          # Setting Driver Implicit Time out for An Element
          driver.implicitly_wait(3)
          # Maximize the window
          driver.maximize_window()
          return driver
subject: delete comments