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)




[(5, 'core.file_handling.website_reader', 'file_h.website_reader', True, 'from core import file_handling as file_h, driver_handling as driver_h\n'), (6, 'core.driver_handling.webdriver_setup', 'driver_h.webdriver_setup', True, 'from core import file_handling as file_h, driver_handling as driver_h\n'), (21, 'core.driver_handling.webdriver_setup', 'driver_h.webdriver_setup', True, 'from core import file_handling as file_h, driver_handling as driver_h\n'), (30, 'cookie_handling.cookie_compare.compare', 'cookie_compare.compare', False, 'from cookie_handling import cookie_compare\n'), (13, 'website_handling.website_check.load_with_addon', 'wc.load_with_addon', True, 'from website_handling import website_check as wc\n'), (17, 'website_handling.website_check.close_driver_session', 'wc.close_driver_session', True, 'from website_handling import website_check as wc\n'), (24, 'website_handling.website_check.load_without_addon', 'wc.load_without_addon', True, 'from website_handling import website_check as wc\n'), (28, 'website_handling.website_check.close_driver_session', 'wc.close_driver_session', True, 'from website_handling import website_check as wc\n')]