'Starts local session for a selenium server. Default case scenario.'

def set_selenium_local_session(self):

    if self.aborting:
        return self
    if self.use_firefox:
        if (self.firefox_profile_path is not None):
            firefox_profile = webdriver.FirefoxProfile(self.firefox_profile_path)
        else:
            firefox_profile = webdriver.FirefoxProfile()
        firefox_profile.set_preference('permissions.default.image', 2)
        self.browser = webdriver.Firefox(firefox_profile=firefox_profile)
    else:
        chromedriver_location = './assets/chromedriver'
        chrome_options = Options()
        chrome_options.add_argument('--dns-prefetch-disable')
        chrome_options.add_argument('--no-sandbox')
        chrome_options.add_argument('--lang=en-US')
        chrome_prefs = {'intl.accept_languages': 'en-US'}
        chrome_options.add_experimental_option('prefs', chrome_prefs)
        self.browser = webdriver.Chrome(chromedriver_location, chrome_options=chrome_options)
    self.browser.implicitly_wait(self.page_delay)
    self.logFile.write(('Session    started    -    %s\n' % datetime.now().strftime('%Y-%m-%d    %H:%M:%S')))
    return self
