0
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
import datetime
import time
import os
import keyword


class meet_bot:
    def __init__(self):
        self.bot = webdriver.Chrome("chromedriver.exe")
    def login(self,email,pas):
         bot=self.bot
         bot.get("https://accounts.google.com/ServiceLogin/identifier?ltmpl=meet&continue=https%3A%2F%2Fmeet.google.com%3Fhs%3D193&&o_ref=https%3A%2F%2Fwww.google.com%2F&_ga=2.26776703.37544310.1621196502-1890362195.1621196502&flowName=GlifWebSignIn&flowEntry=ServiceLogin")
    obj = meet_bot()
    obj.login("abc","etc")

Whenever I launch it opens the chrome tab for a second and then instantly closes. I've tried downloading different versions of chrome driver and nothing has worked. Any help is appreciated, thanks.

vitaliis
  • 2,865
  • 1
  • 7
  • 24
Mensch
  • 5
  • 2
  • Try putting `input()` on the very last line as a test. Your program might just be ending. You call `.get` in `login`, then no code comes after that, so the program will terminate (and potentially take the browser with it). – Carcigenicate May 16 '21 at 20:39
  • @Carcigenicate That worked, thank you! – Mensch May 16 '21 at 20:41

0 Answers0