I have seen the first topic, and then I saw the second. While reading the first topic, I noticed some errors and just asked you about them. That's all.
If you want to automate browsers in Gologin, you should use their API. The automation goes through a driver for headless browser like selenium or puppeter. You can find libraries for python and nodejs on official page.