Login to Gitlab via Okta using Personal Access Token Through Python

I’ve a task to login using python program to my organisation Gitlab which is sitting behind Okta and post login, I need to take screenshots of specific pages on Gitlab
Can you please suggest me any possible solution?
And please comment on my below questions also.

  1. Using Personal Access Token(PAT) can I login to Gitlab on Browser, will that initiate a browser session?
  2. How can I instantly generate Okta Token using API and login to Gitlab on browser and take screenshot of specific pages?
  3. Is there a way I can login to my organisation Gitlab using App Password?