from core import file_handling as file_h, driver_handling as driver_h
from website_handling import website_check as wc
from cookie_handling import cookie_compare

websites = file_h.website_reader()
driver = driver_h.webdriver_setup()





try:
    wc.load_with_addon(driver, websites)
except:
    print('ERROR: IN FIREFOX USAGE WITH ADDONS')
finally:
    wc.close_driver_session(driver)


# driver need to be reloaded because we need a new session without addons
driver = driver_h.webdriver_setup()

try:
    wc.load_without_addon(driver, websites)
except:
    print('ERROR: IN VANILLA FIREFOX VERSION')
finally:
    wc.close_driver_session(driver)

cookie_compare.compare(websites)




[((174, 197), 'core.file_handling.website_reader', 'file_h.website_reader', ([], {}), '()\n', (195, 197), True, 'from core import file_handling as file_h, driver_handling as driver_h\n'), ((207, 233), 'core.driver_handling.webdriver_setup', 'driver_h.webdriver_setup', ([], {}), '()\n', (231, 233), True, 'from core import file_handling as file_h, driver_handling as driver_h\n'), ((472, 498), 'core.driver_handling.webdriver_setup', 'driver_h.webdriver_setup', ([], {}), '()\n', (496, 498), True, 'from core import file_handling as file_h, driver_handling as driver_h\n'), ((650, 682), 'cookie_handling.cookie_compare.compare', 'cookie_compare.compare', (['websites'], {}), '(websites)\n', (672, 682), False, 'from cookie_handling import cookie_compare\n'), ((248, 284), 'website_handling.website_check.load_with_addon', 'wc.load_with_addon', (['driver', 'websites'], {}), '(driver, websites)\n', (266, 284), True, 'from website_handling import website_check as wc\n'), ((355, 386), 'website_handling.website_check.close_driver_session', 'wc.close_driver_session', (['driver'], {}), '(driver)\n', (378, 386), True, 'from website_handling import website_check as wc\n'), ((509, 548), 'website_handling.website_check.load_without_addon', 'wc.load_without_addon', (['driver', 'websites'], {}), '(driver, websites)\n', (530, 548), True, 'from website_handling import website_check as wc\n'), ((617, 648), 'website_handling.website_check.close_driver_session', 'wc.close_driver_session', (['driver'], {}), '(driver)\n', (640, 648), True, 'from website_handling import website_check as wc\n')]