from selenium import webdriver as wd
from selenium.webdriver.chrome.options import Options

class Webdriver():
    def get_webdriver(self, headless):
        chrome_options = Options()
        if headless == True:
            chrome_options.add_argument("--headless")
            #chrome_options.headless = True # also works
        wd_path = r"D:\geckodriver\chromedriver.exe"
        driver = wd.Chrome(wd_path, options=chrome_options)
        driver.implicitly_wait(10)
        return driver
b00d1e285fc586a91256d5b6c6c1c3bdb7ff0cdd
<mask token>

<mask token>


class Webdriver:
    <mask token>

<mask token>


class Webdriver:

    def get_webdriver(self, headless):
        chrome_options = Options()
        if headless == True:
            chrome_options.add_argument('--headless')
        wd_path = 'D:\\geckodriver\\chromedriver.exe'
        driver = wd.Chrome(wd_path, options=chrome_options)
        driver.implicitly_wait(10)
        return driver

from selenium import webdriver as wd
from selenium.webdriver.chrome.options import Options


class Webdriver:

    def get_webdriver(self, headless):
        chrome_options = Options()
        if headless == True:
            chrome_options.add_argument('--headless')
        wd_path = 'D:\\geckodriver\\chromedriver.exe'
        driver = wd.Chrome(wd_path, options=chrome_options)
        driver.implicitly_wait(10)
        return driver

from selenium import webdriver as wd
from selenium.webdriver.chrome.options import Options

class Webdriver():
    def get_webdriver(self, headless):
        chrome_options = Options()
        if headless == True:
            chrome_options.add_argument("--headless")
            #chrome_options.headless = True # also works
        wd_path = r"D:\geckodriver\chromedriver.exe"
        driver = wd.Chrome(wd_path, options=chrome_options)
        driver.implicitly_wait(10)
        return driver