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, 11, 5, 34), '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, 9, 6, 35), '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, 9, 21, 35), '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, 0, 30, 32), 'cookie_handling.cookie_compare.compare', 'cookie_compare.compare', ({(30, 23, 30, 31): 'websites'}, {}), '(websites)', False, 'from cookie_handling import cookie_compare\n'), ((13, 4, 13, 40), 'website_handling.website_check.load_with_addon', 'wc.load_with_addon', ({(13, 23, 13, 29): 'driver', (13, 31, 13, 39): 'websites'}, {}), '(driver, websites)', True, 'from website_handling import website_check as wc\n'), ((17, 4, 17, 35), 'website_handling.website_check.close_driver_session', 'wc.close_driver_session', ({(17, 28, 17, 34): 'driver'}, {}), '(driver)', True, 'from website_handling import website_check as wc\n'), ((24, 4, 24, 43), 'website_handling.website_check.load_without_addon', 'wc.load_without_addon', ({(24, 26, 24, 32): 'driver', (24, 34, 24, 42): 'websites'}, {}), '(driver, websites)', True, 'from website_handling import website_check as wc\n'), ((28, 4, 28, 35), 'website_handling.website_check.close_driver_session', 'wc.close_driver_session', ({(28, 28, 28, 34): 'driver'}, {}), '(driver)', True, 'from website_handling import website_check as wc\n')]