Skip to content

cannot move past login #39

@kalabharath

Description

@kalabharath

while it does show the login screen, moves past it and shows my main page with CFDs, I cannot move past the CFD object initialization. this is what I see on the screen

"""
config = configparser.ConfigParser()
config.read('./config.ini')
print (config['ACCOUNT']['email'])
driver = webdriver.Chrome(service=Service())
cfd = CFD(email=config['ACCOUNT']['email'], password=config['ACCOUNT']['password'], driver=driver, mode=Mode.LIVE)

15:13:44] Starting PyTrading212 v0.2.8 console.py:12
Trading: CFD
Mode: LIVE
[15:13:45] Closing 'Cookies Popup' console.py:12
Authenticating console.py:12
ERROR:main:An error occurred: Message:
Stacktrace:
#0 0x61ec2bcddc7a
#1 0x61ec2b9c0e2c
#2 0x61ec2ba0d661
#3 0x61ec2ba0d751
#4 0x61ec2ba51f64
#5 0x61ec2ba305ed
#6 0x61ec2ba4f303
#7 0x61ec2ba30363
#8 0x61ec2ba00247
#9 0x61ec2ba00b9e
#10 0x61ec2bca424b
#11 0x61ec2bca82f1
#12 0x61ec2bc8fafe
#13 0x61ec2bca8e52
#14 0x61ec2bc7479f
#15 0x61ec2bccd638
#16 0x61ec2bccd810
#17 0x61ec2bcdcdac
#18 0x7ed989c9ca94
#19 0x7ed989d29c3c

ERROR:main:Traceback:
Traceback (most recent call last):
File "debug-script.py", line 25, in
cfd = CFD(
File "/home/kalabharath/anaconda3/envs/mljar/lib/python3.8/site-packages/pytrading212/trading212.py", line 491, in init
super().init(email, password, driver, mode, constants.Trading.CFD)
File "/home/kalabharath/anaconda3/envs/mljar/lib/python3.8/site-packages/pytrading212/trading212.py", line 72, in init
WebDriverWait(self.driver, 120).until(EC.presence_of_element_located((By.CLASS_NAME, "company-logo")))
File "/home/kalabharath/anaconda3/envs/mljar/lib/python3.8/site-packages/selenium/webdriver/support/wait.py", line 105, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
Stacktrace:
#0 0x61ec2bcddc7a
#1 0x61ec2b9c0e2c
#2 0x61ec2ba0d661
#3 0x61ec2ba0d751
#4 0x61ec2ba51f64
#5 0x61ec2ba305ed
#6 0x61ec2ba4f303
#7 0x61ec2ba30363
#8 0x61ec2ba00247
#9 0x61ec2ba00b9e
#10 0x61ec2bca424b
#11 0x61ec2bca82f1
#12 0x61ec2bc8fafe
#13 0x61ec2bca8e52
#14 0x61ec2bc7479f
#15 0x61ec2bccd638
#16 0x61ec2bccd810
#17 0x61ec2bcdcdac
#18 0x7ed989c9ca94
#19 0x7ed989d29c3c

INFO:main:Current URL: https://app.trading212.com/

I am running ubuntu 24.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions