def facebook_process(logger): driver = webdriver.Chrome("./chromedriver") f = Facebook(driver, logger) f.random_play()