#CONSTANT ELEMENTS FROM apit212
URL = 'https://www.trading212.com/'
LOGIN_BUTTON = '//*[@id="__next"]/header/div/div/div[2]/div[1]/div[2]/p'
COOKIE_POPUP = '//*[@id="__next"]/main/div[2]/div/div[2]/div[2]/div[2]/div[1]'
SUBMIT_BUTTON = '//*[@id="__next"]/main/div[2]/div/div[2]/div/div[2]/div/form/div[5]/input'
POPUP_CLOSE = '//*[@id="app"]/div[6]/div/div[2]/div/div/div/div[2]/div/div[1]/div[3]/div/span/div'
REMEBER_ME_TOGGLE = '//*[@id="__next"]/main/div[2]/div/div[2]/div/div[2]/div/form/div[4]/div[2]/input'
USER_NAME = '//*[@id="app"]/div[5]/div[1]/div/div[2]/div[3]/div/div[1]/div[1]'

#GET COOKIES
COOKIE_KEYS = ('TRADING212_SESSION_LIVE', 'TRADING212_SESSION_DEMO','LOGIN_TOKEN')

#ACCOUNT STATUS
ACCOUNT_VALUE = '//*[@id="app"]/div[3]/div[1]/div/div[2]/div[1]/div/span[2]'
FREE_FUNDS = '//*[@id="app"]/div[3]/div[2]/div[2]/div/div[2]/div[2]/div[4]/div[2]/div[2]'
LIVE_RESULTS = '//*[@id="app"]/div[3]/div[2]/div[2]/div/div[2]/div[2]/div[4]/div[1]/div[2]'
BLOCKED_FUNDS = '//*[@id="app"]/div[3]/div[2]/div[2]/div/div[2]/div[2]/div[4]/div[3]/div[2]'
MARGIN_INDICATORS = '//*[@id="app"]/div[5]/div[2]/div[2]/div/div[2]/div[2]/div[4]/div[4]/div/div/div/div'

APP = '//*[@id="app"]'

SETUP_ERR = 'FAILED TO SETUP PROFILE'
