Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.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 Selenium-WebDriverException:browsingContextFn()。currentWindowGlobal为空_Python_Selenium_Webdriver_Instagram - Fatal编程技术网

Python Selenium-WebDriverException:browsingContextFn()。currentWindowGlobal为空

Python Selenium-WebDriverException:browsingContextFn()。currentWindowGlobal为空,python,selenium,webdriver,instagram,Python,Selenium,Webdriver,Instagram,我用Python和Selenium编写了一个Instagram bot,效果很好。大多数时候 有时,在“保存数据”中,当它应该单击“不保存”时,它会随机抛出以下错误: WebDriverException: browsingContextFn() .currentWindowGlobal is null 当我重新启动程序时,它工作正常 我的问题是:这个错误意味着什么?我如何修复它?我试图搜索这个,但什么也没找到 如果真的需要,我可以发布我的代码,但我不太擅长编码,而且有点凌乱。欢迎使用堆栈溢出

我用Python和Selenium编写了一个Instagram bot,效果很好。大多数时候

有时,在“保存数据”中,当它应该单击“不保存”时,它会随机抛出以下错误:

WebDriverException: browsingContextFn() .currentWindowGlobal is null
当我重新启动程序时,它工作正常

我的问题是:这个错误意味着什么?我如何修复它?我试图搜索这个,但什么也没找到

如果真的需要,我可以发布我的代码,但我不太擅长编码,而且有点凌乱。

欢迎使用堆栈溢出!