Fix a bug in selenium

Job ID: 33911317

Budget: €250 – €750 EUR

I need a code fixed in order to work correctly and as expected.
What the code does:
It uses selenium it goes to a website, logins and after successfull login it clicks buttons(bets).
I made an algorithm that goes to the website logins and then tries to click a button. Whenever I click a bet the page reloads and logs me out of the page.

I have tested that spesific scenario:
Login to the webpage and after successfull login, click nothing. When I click a button, bet by myself the action goes as expected and it does not log me out.

Please contact me if someone is expert in python selenium automations.
I need this done as soon as possible.