Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/326.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 谷歌一直在迅速关闭,但无法找出原因,_Python_Selenium_Google Meet - Fatal编程技术网

Python 谷歌一直在迅速关闭,但无法找出原因,

Python 谷歌一直在迅速关闭,但无法找出原因,,python,selenium,google-meet,Python,Selenium,Google Meet,无论何时启动,它都会打开chrome选项卡一秒钟,然后立即关闭。我试过下载不同版本的chrome驱动程序,但没有任何效果。 非常感谢您的帮助。尝试将input()放在最后一行作为测试。您的程序可能即将结束。您在login中调用.get,之后将不会出现任何代码,因此程序将终止(并可能带上浏览器)。@Carcigenicate成功了,谢谢! from selenium.webdriver.chrome.options import Options from selenium.webdriver.co

无论何时启动,它都会打开chrome选项卡一秒钟,然后立即关闭。我试过下载不同版本的chrome驱动程序,但没有任何效果。
非常感谢您的帮助。

尝试将
input()
放在最后一行作为测试。您的程序可能即将结束。您在
login
中调用
.get
,之后将不会出现任何代码,因此程序将终止(并可能带上浏览器)。@Carcigenicate成功了,谢谢!
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")